{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.Forecast.ListForecastExportJobs
(
ListForecastExportJobs (..),
newListForecastExportJobs,
listForecastExportJobs_filters,
listForecastExportJobs_nextToken,
listForecastExportJobs_maxResults,
ListForecastExportJobsResponse (..),
newListForecastExportJobsResponse,
listForecastExportJobsResponse_nextToken,
listForecastExportJobsResponse_forecastExportJobs,
listForecastExportJobsResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.Forecast.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data ListForecastExportJobs = ListForecastExportJobs'
{
ListForecastExportJobs -> Maybe [Filter]
filters :: Prelude.Maybe [Filter],
ListForecastExportJobs -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListForecastExportJobs -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
}
deriving (ListForecastExportJobs -> ListForecastExportJobs -> Bool
(ListForecastExportJobs -> ListForecastExportJobs -> Bool)
-> (ListForecastExportJobs -> ListForecastExportJobs -> Bool)
-> Eq ListForecastExportJobs
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListForecastExportJobs -> ListForecastExportJobs -> Bool
$c/= :: ListForecastExportJobs -> ListForecastExportJobs -> Bool
== :: ListForecastExportJobs -> ListForecastExportJobs -> Bool
$c== :: ListForecastExportJobs -> ListForecastExportJobs -> Bool
Prelude.Eq, ReadPrec [ListForecastExportJobs]
ReadPrec ListForecastExportJobs
Int -> ReadS ListForecastExportJobs
ReadS [ListForecastExportJobs]
(Int -> ReadS ListForecastExportJobs)
-> ReadS [ListForecastExportJobs]
-> ReadPrec ListForecastExportJobs
-> ReadPrec [ListForecastExportJobs]
-> Read ListForecastExportJobs
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListForecastExportJobs]
$creadListPrec :: ReadPrec [ListForecastExportJobs]
readPrec :: ReadPrec ListForecastExportJobs
$creadPrec :: ReadPrec ListForecastExportJobs
readList :: ReadS [ListForecastExportJobs]
$creadList :: ReadS [ListForecastExportJobs]
readsPrec :: Int -> ReadS ListForecastExportJobs
$creadsPrec :: Int -> ReadS ListForecastExportJobs
Prelude.Read, Int -> ListForecastExportJobs -> ShowS
[ListForecastExportJobs] -> ShowS
ListForecastExportJobs -> String
(Int -> ListForecastExportJobs -> ShowS)
-> (ListForecastExportJobs -> String)
-> ([ListForecastExportJobs] -> ShowS)
-> Show ListForecastExportJobs
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListForecastExportJobs] -> ShowS
$cshowList :: [ListForecastExportJobs] -> ShowS
show :: ListForecastExportJobs -> String
$cshow :: ListForecastExportJobs -> String
showsPrec :: Int -> ListForecastExportJobs -> ShowS
$cshowsPrec :: Int -> ListForecastExportJobs -> ShowS
Prelude.Show, (forall x. ListForecastExportJobs -> Rep ListForecastExportJobs x)
-> (forall x.
Rep ListForecastExportJobs x -> ListForecastExportJobs)
-> Generic ListForecastExportJobs
forall x. Rep ListForecastExportJobs x -> ListForecastExportJobs
forall x. ListForecastExportJobs -> Rep ListForecastExportJobs x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListForecastExportJobs x -> ListForecastExportJobs
$cfrom :: forall x. ListForecastExportJobs -> Rep ListForecastExportJobs x
Prelude.Generic)
newListForecastExportJobs ::
ListForecastExportJobs
newListForecastExportJobs :: ListForecastExportJobs
newListForecastExportJobs =
ListForecastExportJobs' :: Maybe [Filter]
-> Maybe Text -> Maybe Natural -> ListForecastExportJobs
ListForecastExportJobs'
{ $sel:filters:ListForecastExportJobs' :: Maybe [Filter]
filters = Maybe [Filter]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListForecastExportJobs' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListForecastExportJobs' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
listForecastExportJobs_filters :: Lens.Lens' ListForecastExportJobs (Prelude.Maybe [Filter])
listForecastExportJobs_filters :: (Maybe [Filter] -> f (Maybe [Filter]))
-> ListForecastExportJobs -> f ListForecastExportJobs
listForecastExportJobs_filters = (ListForecastExportJobs -> Maybe [Filter])
-> (ListForecastExportJobs
-> Maybe [Filter] -> ListForecastExportJobs)
-> Lens
ListForecastExportJobs
ListForecastExportJobs
(Maybe [Filter])
(Maybe [Filter])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListForecastExportJobs' {Maybe [Filter]
filters :: Maybe [Filter]
$sel:filters:ListForecastExportJobs' :: ListForecastExportJobs -> Maybe [Filter]
filters} -> Maybe [Filter]
filters) (\s :: ListForecastExportJobs
s@ListForecastExportJobs' {} Maybe [Filter]
a -> ListForecastExportJobs
s {$sel:filters:ListForecastExportJobs' :: Maybe [Filter]
filters = Maybe [Filter]
a} :: ListForecastExportJobs) ((Maybe [Filter] -> f (Maybe [Filter]))
-> ListForecastExportJobs -> f ListForecastExportJobs)
-> ((Maybe [Filter] -> f (Maybe [Filter]))
-> Maybe [Filter] -> f (Maybe [Filter]))
-> (Maybe [Filter] -> f (Maybe [Filter]))
-> ListForecastExportJobs
-> f ListForecastExportJobs
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Filter] [Filter] [Filter] [Filter]
-> Iso
(Maybe [Filter]) (Maybe [Filter]) (Maybe [Filter]) (Maybe [Filter])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [Filter] [Filter] [Filter] [Filter]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listForecastExportJobs_nextToken :: Lens.Lens' ListForecastExportJobs (Prelude.Maybe Prelude.Text)
listForecastExportJobs_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListForecastExportJobs -> f ListForecastExportJobs
listForecastExportJobs_nextToken = (ListForecastExportJobs -> Maybe Text)
-> (ListForecastExportJobs -> Maybe Text -> ListForecastExportJobs)
-> Lens
ListForecastExportJobs
ListForecastExportJobs
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListForecastExportJobs' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListForecastExportJobs' :: ListForecastExportJobs -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListForecastExportJobs
s@ListForecastExportJobs' {} Maybe Text
a -> ListForecastExportJobs
s {$sel:nextToken:ListForecastExportJobs' :: Maybe Text
nextToken = Maybe Text
a} :: ListForecastExportJobs)
listForecastExportJobs_maxResults :: Lens.Lens' ListForecastExportJobs (Prelude.Maybe Prelude.Natural)
listForecastExportJobs_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListForecastExportJobs -> f ListForecastExportJobs
listForecastExportJobs_maxResults = (ListForecastExportJobs -> Maybe Natural)
-> (ListForecastExportJobs
-> Maybe Natural -> ListForecastExportJobs)
-> Lens
ListForecastExportJobs
ListForecastExportJobs
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListForecastExportJobs' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListForecastExportJobs' :: ListForecastExportJobs -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListForecastExportJobs
s@ListForecastExportJobs' {} Maybe Natural
a -> ListForecastExportJobs
s {$sel:maxResults:ListForecastExportJobs' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListForecastExportJobs)
instance Core.AWSPager ListForecastExportJobs where
page :: ListForecastExportJobs
-> AWSResponse ListForecastExportJobs
-> Maybe ListForecastExportJobs
page ListForecastExportJobs
rq AWSResponse ListForecastExportJobs
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListForecastExportJobs
ListForecastExportJobsResponse
rs
ListForecastExportJobsResponse
-> Getting (First Text) ListForecastExportJobsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListForecastExportJobsResponse
-> Const (First Text) ListForecastExportJobsResponse
Lens' ListForecastExportJobsResponse (Maybe Text)
listForecastExportJobsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListForecastExportJobsResponse
-> Const (First Text) ListForecastExportJobsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListForecastExportJobsResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListForecastExportJobs
forall a. Maybe a
Prelude.Nothing
| Maybe [ForecastExportJobSummary] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListForecastExportJobs
ListForecastExportJobsResponse
rs
ListForecastExportJobsResponse
-> Getting
(First [ForecastExportJobSummary])
ListForecastExportJobsResponse
[ForecastExportJobSummary]
-> Maybe [ForecastExportJobSummary]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [ForecastExportJobSummary]
-> Const
(First [ForecastExportJobSummary])
(Maybe [ForecastExportJobSummary]))
-> ListForecastExportJobsResponse
-> Const
(First [ForecastExportJobSummary]) ListForecastExportJobsResponse
Lens'
ListForecastExportJobsResponse (Maybe [ForecastExportJobSummary])
listForecastExportJobsResponse_forecastExportJobs
((Maybe [ForecastExportJobSummary]
-> Const
(First [ForecastExportJobSummary])
(Maybe [ForecastExportJobSummary]))
-> ListForecastExportJobsResponse
-> Const
(First [ForecastExportJobSummary]) ListForecastExportJobsResponse)
-> (([ForecastExportJobSummary]
-> Const
(First [ForecastExportJobSummary]) [ForecastExportJobSummary])
-> Maybe [ForecastExportJobSummary]
-> Const
(First [ForecastExportJobSummary])
(Maybe [ForecastExportJobSummary]))
-> Getting
(First [ForecastExportJobSummary])
ListForecastExportJobsResponse
[ForecastExportJobSummary]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([ForecastExportJobSummary]
-> Const
(First [ForecastExportJobSummary]) [ForecastExportJobSummary])
-> Maybe [ForecastExportJobSummary]
-> Const
(First [ForecastExportJobSummary])
(Maybe [ForecastExportJobSummary])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListForecastExportJobs
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListForecastExportJobs -> Maybe ListForecastExportJobs
forall a. a -> Maybe a
Prelude.Just (ListForecastExportJobs -> Maybe ListForecastExportJobs)
-> ListForecastExportJobs -> Maybe ListForecastExportJobs
forall a b. (a -> b) -> a -> b
Prelude.$
ListForecastExportJobs
rq
ListForecastExportJobs
-> (ListForecastExportJobs -> ListForecastExportJobs)
-> ListForecastExportJobs
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListForecastExportJobs -> Identity ListForecastExportJobs
Lens
ListForecastExportJobs
ListForecastExportJobs
(Maybe Text)
(Maybe Text)
listForecastExportJobs_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListForecastExportJobs -> Identity ListForecastExportJobs)
-> Maybe Text -> ListForecastExportJobs -> ListForecastExportJobs
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListForecastExportJobs
ListForecastExportJobsResponse
rs
ListForecastExportJobsResponse
-> Getting (First Text) ListForecastExportJobsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListForecastExportJobsResponse
-> Const (First Text) ListForecastExportJobsResponse
Lens' ListForecastExportJobsResponse (Maybe Text)
listForecastExportJobsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListForecastExportJobsResponse
-> Const (First Text) ListForecastExportJobsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListForecastExportJobsResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
instance Core.AWSRequest ListForecastExportJobs where
type
AWSResponse ListForecastExportJobs =
ListForecastExportJobsResponse
request :: ListForecastExportJobs -> Request ListForecastExportJobs
request = Service -> ListForecastExportJobs -> Request ListForecastExportJobs
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListForecastExportJobs
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListForecastExportJobs)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListForecastExportJobs))
-> Logger
-> Service
-> Proxy ListForecastExportJobs
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListForecastExportJobs)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe Text
-> Maybe [ForecastExportJobSummary]
-> Int
-> ListForecastExportJobsResponse
ListForecastExportJobsResponse'
(Maybe Text
-> Maybe [ForecastExportJobSummary]
-> Int
-> ListForecastExportJobsResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [ForecastExportJobSummary]
-> Int -> ListForecastExportJobsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"NextToken")
Either
String
(Maybe [ForecastExportJobSummary]
-> Int -> ListForecastExportJobsResponse)
-> Either String (Maybe [ForecastExportJobSummary])
-> Either String (Int -> ListForecastExportJobsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text -> Either String (Maybe (Maybe [ForecastExportJobSummary]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ForecastExportJobs"
Either String (Maybe (Maybe [ForecastExportJobSummary]))
-> Maybe [ForecastExportJobSummary]
-> Either String (Maybe [ForecastExportJobSummary])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [ForecastExportJobSummary]
forall a. Monoid a => a
Prelude.mempty
)
Either String (Int -> ListForecastExportJobsResponse)
-> Either String Int
-> Either String ListForecastExportJobsResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable ListForecastExportJobs
instance Prelude.NFData ListForecastExportJobs
instance Core.ToHeaders ListForecastExportJobs where
toHeaders :: ListForecastExportJobs -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListForecastExportJobs -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"AmazonForecast.ListForecastExportJobs" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON ListForecastExportJobs where
toJSON :: ListForecastExportJobs -> Value
toJSON ListForecastExportJobs' {Maybe Natural
Maybe [Filter]
Maybe Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
filters :: Maybe [Filter]
$sel:maxResults:ListForecastExportJobs' :: ListForecastExportJobs -> Maybe Natural
$sel:nextToken:ListForecastExportJobs' :: ListForecastExportJobs -> Maybe Text
$sel:filters:ListForecastExportJobs' :: ListForecastExportJobs -> Maybe [Filter]
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"Filters" Text -> [Filter] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([Filter] -> Pair) -> Maybe [Filter] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Filter]
filters,
(Text
"NextToken" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken,
(Text
"MaxResults" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults
]
)
instance Core.ToPath ListForecastExportJobs where
toPath :: ListForecastExportJobs -> ByteString
toPath = ByteString -> ListForecastExportJobs -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListForecastExportJobs where
toQuery :: ListForecastExportJobs -> QueryString
toQuery = QueryString -> ListForecastExportJobs -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListForecastExportJobsResponse = ListForecastExportJobsResponse'
{
ListForecastExportJobsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListForecastExportJobsResponse -> Maybe [ForecastExportJobSummary]
forecastExportJobs :: Prelude.Maybe [ForecastExportJobSummary],
ListForecastExportJobsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListForecastExportJobsResponse
-> ListForecastExportJobsResponse -> Bool
(ListForecastExportJobsResponse
-> ListForecastExportJobsResponse -> Bool)
-> (ListForecastExportJobsResponse
-> ListForecastExportJobsResponse -> Bool)
-> Eq ListForecastExportJobsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListForecastExportJobsResponse
-> ListForecastExportJobsResponse -> Bool
$c/= :: ListForecastExportJobsResponse
-> ListForecastExportJobsResponse -> Bool
== :: ListForecastExportJobsResponse
-> ListForecastExportJobsResponse -> Bool
$c== :: ListForecastExportJobsResponse
-> ListForecastExportJobsResponse -> Bool
Prelude.Eq, ReadPrec [ListForecastExportJobsResponse]
ReadPrec ListForecastExportJobsResponse
Int -> ReadS ListForecastExportJobsResponse
ReadS [ListForecastExportJobsResponse]
(Int -> ReadS ListForecastExportJobsResponse)
-> ReadS [ListForecastExportJobsResponse]
-> ReadPrec ListForecastExportJobsResponse
-> ReadPrec [ListForecastExportJobsResponse]
-> Read ListForecastExportJobsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListForecastExportJobsResponse]
$creadListPrec :: ReadPrec [ListForecastExportJobsResponse]
readPrec :: ReadPrec ListForecastExportJobsResponse
$creadPrec :: ReadPrec ListForecastExportJobsResponse
readList :: ReadS [ListForecastExportJobsResponse]
$creadList :: ReadS [ListForecastExportJobsResponse]
readsPrec :: Int -> ReadS ListForecastExportJobsResponse
$creadsPrec :: Int -> ReadS ListForecastExportJobsResponse
Prelude.Read, Int -> ListForecastExportJobsResponse -> ShowS
[ListForecastExportJobsResponse] -> ShowS
ListForecastExportJobsResponse -> String
(Int -> ListForecastExportJobsResponse -> ShowS)
-> (ListForecastExportJobsResponse -> String)
-> ([ListForecastExportJobsResponse] -> ShowS)
-> Show ListForecastExportJobsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListForecastExportJobsResponse] -> ShowS
$cshowList :: [ListForecastExportJobsResponse] -> ShowS
show :: ListForecastExportJobsResponse -> String
$cshow :: ListForecastExportJobsResponse -> String
showsPrec :: Int -> ListForecastExportJobsResponse -> ShowS
$cshowsPrec :: Int -> ListForecastExportJobsResponse -> ShowS
Prelude.Show, (forall x.
ListForecastExportJobsResponse
-> Rep ListForecastExportJobsResponse x)
-> (forall x.
Rep ListForecastExportJobsResponse x
-> ListForecastExportJobsResponse)
-> Generic ListForecastExportJobsResponse
forall x.
Rep ListForecastExportJobsResponse x
-> ListForecastExportJobsResponse
forall x.
ListForecastExportJobsResponse
-> Rep ListForecastExportJobsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListForecastExportJobsResponse x
-> ListForecastExportJobsResponse
$cfrom :: forall x.
ListForecastExportJobsResponse
-> Rep ListForecastExportJobsResponse x
Prelude.Generic)
newListForecastExportJobsResponse ::
Prelude.Int ->
ListForecastExportJobsResponse
newListForecastExportJobsResponse :: Int -> ListForecastExportJobsResponse
newListForecastExportJobsResponse Int
pHttpStatus_ =
ListForecastExportJobsResponse' :: Maybe Text
-> Maybe [ForecastExportJobSummary]
-> Int
-> ListForecastExportJobsResponse
ListForecastExportJobsResponse'
{ $sel:nextToken:ListForecastExportJobsResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:forecastExportJobs:ListForecastExportJobsResponse' :: Maybe [ForecastExportJobSummary]
forecastExportJobs = Maybe [ForecastExportJobSummary]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListForecastExportJobsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listForecastExportJobsResponse_nextToken :: Lens.Lens' ListForecastExportJobsResponse (Prelude.Maybe Prelude.Text)
listForecastExportJobsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListForecastExportJobsResponse
-> f ListForecastExportJobsResponse
listForecastExportJobsResponse_nextToken = (ListForecastExportJobsResponse -> Maybe Text)
-> (ListForecastExportJobsResponse
-> Maybe Text -> ListForecastExportJobsResponse)
-> Lens' ListForecastExportJobsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListForecastExportJobsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListForecastExportJobsResponse' :: ListForecastExportJobsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListForecastExportJobsResponse
s@ListForecastExportJobsResponse' {} Maybe Text
a -> ListForecastExportJobsResponse
s {$sel:nextToken:ListForecastExportJobsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListForecastExportJobsResponse)
listForecastExportJobsResponse_forecastExportJobs :: Lens.Lens' ListForecastExportJobsResponse (Prelude.Maybe [ForecastExportJobSummary])
listForecastExportJobsResponse_forecastExportJobs :: (Maybe [ForecastExportJobSummary]
-> f (Maybe [ForecastExportJobSummary]))
-> ListForecastExportJobsResponse
-> f ListForecastExportJobsResponse
listForecastExportJobsResponse_forecastExportJobs = (ListForecastExportJobsResponse
-> Maybe [ForecastExportJobSummary])
-> (ListForecastExportJobsResponse
-> Maybe [ForecastExportJobSummary]
-> ListForecastExportJobsResponse)
-> Lens'
ListForecastExportJobsResponse (Maybe [ForecastExportJobSummary])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListForecastExportJobsResponse' {Maybe [ForecastExportJobSummary]
forecastExportJobs :: Maybe [ForecastExportJobSummary]
$sel:forecastExportJobs:ListForecastExportJobsResponse' :: ListForecastExportJobsResponse -> Maybe [ForecastExportJobSummary]
forecastExportJobs} -> Maybe [ForecastExportJobSummary]
forecastExportJobs) (\s :: ListForecastExportJobsResponse
s@ListForecastExportJobsResponse' {} Maybe [ForecastExportJobSummary]
a -> ListForecastExportJobsResponse
s {$sel:forecastExportJobs:ListForecastExportJobsResponse' :: Maybe [ForecastExportJobSummary]
forecastExportJobs = Maybe [ForecastExportJobSummary]
a} :: ListForecastExportJobsResponse) ((Maybe [ForecastExportJobSummary]
-> f (Maybe [ForecastExportJobSummary]))
-> ListForecastExportJobsResponse
-> f ListForecastExportJobsResponse)
-> ((Maybe [ForecastExportJobSummary]
-> f (Maybe [ForecastExportJobSummary]))
-> Maybe [ForecastExportJobSummary]
-> f (Maybe [ForecastExportJobSummary]))
-> (Maybe [ForecastExportJobSummary]
-> f (Maybe [ForecastExportJobSummary]))
-> ListForecastExportJobsResponse
-> f ListForecastExportJobsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[ForecastExportJobSummary]
[ForecastExportJobSummary]
[ForecastExportJobSummary]
[ForecastExportJobSummary]
-> Iso
(Maybe [ForecastExportJobSummary])
(Maybe [ForecastExportJobSummary])
(Maybe [ForecastExportJobSummary])
(Maybe [ForecastExportJobSummary])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
[ForecastExportJobSummary]
[ForecastExportJobSummary]
[ForecastExportJobSummary]
[ForecastExportJobSummary]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listForecastExportJobsResponse_httpStatus :: Lens.Lens' ListForecastExportJobsResponse Prelude.Int
listForecastExportJobsResponse_httpStatus :: (Int -> f Int)
-> ListForecastExportJobsResponse
-> f ListForecastExportJobsResponse
listForecastExportJobsResponse_httpStatus = (ListForecastExportJobsResponse -> Int)
-> (ListForecastExportJobsResponse
-> Int -> ListForecastExportJobsResponse)
-> Lens
ListForecastExportJobsResponse
ListForecastExportJobsResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListForecastExportJobsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListForecastExportJobsResponse' :: ListForecastExportJobsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListForecastExportJobsResponse
s@ListForecastExportJobsResponse' {} Int
a -> ListForecastExportJobsResponse
s {$sel:httpStatus:ListForecastExportJobsResponse' :: Int
httpStatus = Int
a} :: ListForecastExportJobsResponse)
instance
Prelude.NFData
ListForecastExportJobsResponse