{-# 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.ListPredictorBacktestExportJobs
(
ListPredictorBacktestExportJobs (..),
newListPredictorBacktestExportJobs,
listPredictorBacktestExportJobs_filters,
listPredictorBacktestExportJobs_nextToken,
listPredictorBacktestExportJobs_maxResults,
ListPredictorBacktestExportJobsResponse (..),
newListPredictorBacktestExportJobsResponse,
listPredictorBacktestExportJobsResponse_nextToken,
listPredictorBacktestExportJobsResponse_predictorBacktestExportJobs,
listPredictorBacktestExportJobsResponse_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 ListPredictorBacktestExportJobs = ListPredictorBacktestExportJobs'
{
ListPredictorBacktestExportJobs -> Maybe [Filter]
filters :: Prelude.Maybe [Filter],
ListPredictorBacktestExportJobs -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListPredictorBacktestExportJobs -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
}
deriving (ListPredictorBacktestExportJobs
-> ListPredictorBacktestExportJobs -> Bool
(ListPredictorBacktestExportJobs
-> ListPredictorBacktestExportJobs -> Bool)
-> (ListPredictorBacktestExportJobs
-> ListPredictorBacktestExportJobs -> Bool)
-> Eq ListPredictorBacktestExportJobs
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListPredictorBacktestExportJobs
-> ListPredictorBacktestExportJobs -> Bool
$c/= :: ListPredictorBacktestExportJobs
-> ListPredictorBacktestExportJobs -> Bool
== :: ListPredictorBacktestExportJobs
-> ListPredictorBacktestExportJobs -> Bool
$c== :: ListPredictorBacktestExportJobs
-> ListPredictorBacktestExportJobs -> Bool
Prelude.Eq, ReadPrec [ListPredictorBacktestExportJobs]
ReadPrec ListPredictorBacktestExportJobs
Int -> ReadS ListPredictorBacktestExportJobs
ReadS [ListPredictorBacktestExportJobs]
(Int -> ReadS ListPredictorBacktestExportJobs)
-> ReadS [ListPredictorBacktestExportJobs]
-> ReadPrec ListPredictorBacktestExportJobs
-> ReadPrec [ListPredictorBacktestExportJobs]
-> Read ListPredictorBacktestExportJobs
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListPredictorBacktestExportJobs]
$creadListPrec :: ReadPrec [ListPredictorBacktestExportJobs]
readPrec :: ReadPrec ListPredictorBacktestExportJobs
$creadPrec :: ReadPrec ListPredictorBacktestExportJobs
readList :: ReadS [ListPredictorBacktestExportJobs]
$creadList :: ReadS [ListPredictorBacktestExportJobs]
readsPrec :: Int -> ReadS ListPredictorBacktestExportJobs
$creadsPrec :: Int -> ReadS ListPredictorBacktestExportJobs
Prelude.Read, Int -> ListPredictorBacktestExportJobs -> ShowS
[ListPredictorBacktestExportJobs] -> ShowS
ListPredictorBacktestExportJobs -> String
(Int -> ListPredictorBacktestExportJobs -> ShowS)
-> (ListPredictorBacktestExportJobs -> String)
-> ([ListPredictorBacktestExportJobs] -> ShowS)
-> Show ListPredictorBacktestExportJobs
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListPredictorBacktestExportJobs] -> ShowS
$cshowList :: [ListPredictorBacktestExportJobs] -> ShowS
show :: ListPredictorBacktestExportJobs -> String
$cshow :: ListPredictorBacktestExportJobs -> String
showsPrec :: Int -> ListPredictorBacktestExportJobs -> ShowS
$cshowsPrec :: Int -> ListPredictorBacktestExportJobs -> ShowS
Prelude.Show, (forall x.
ListPredictorBacktestExportJobs
-> Rep ListPredictorBacktestExportJobs x)
-> (forall x.
Rep ListPredictorBacktestExportJobs x
-> ListPredictorBacktestExportJobs)
-> Generic ListPredictorBacktestExportJobs
forall x.
Rep ListPredictorBacktestExportJobs x
-> ListPredictorBacktestExportJobs
forall x.
ListPredictorBacktestExportJobs
-> Rep ListPredictorBacktestExportJobs x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListPredictorBacktestExportJobs x
-> ListPredictorBacktestExportJobs
$cfrom :: forall x.
ListPredictorBacktestExportJobs
-> Rep ListPredictorBacktestExportJobs x
Prelude.Generic)
newListPredictorBacktestExportJobs ::
ListPredictorBacktestExportJobs
newListPredictorBacktestExportJobs :: ListPredictorBacktestExportJobs
newListPredictorBacktestExportJobs =
ListPredictorBacktestExportJobs' :: Maybe [Filter]
-> Maybe Text -> Maybe Natural -> ListPredictorBacktestExportJobs
ListPredictorBacktestExportJobs'
{ $sel:filters:ListPredictorBacktestExportJobs' :: Maybe [Filter]
filters =
Maybe [Filter]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListPredictorBacktestExportJobs' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListPredictorBacktestExportJobs' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
listPredictorBacktestExportJobs_filters :: Lens.Lens' ListPredictorBacktestExportJobs (Prelude.Maybe [Filter])
listPredictorBacktestExportJobs_filters :: (Maybe [Filter] -> f (Maybe [Filter]))
-> ListPredictorBacktestExportJobs
-> f ListPredictorBacktestExportJobs
listPredictorBacktestExportJobs_filters = (ListPredictorBacktestExportJobs -> Maybe [Filter])
-> (ListPredictorBacktestExportJobs
-> Maybe [Filter] -> ListPredictorBacktestExportJobs)
-> Lens
ListPredictorBacktestExportJobs
ListPredictorBacktestExportJobs
(Maybe [Filter])
(Maybe [Filter])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPredictorBacktestExportJobs' {Maybe [Filter]
filters :: Maybe [Filter]
$sel:filters:ListPredictorBacktestExportJobs' :: ListPredictorBacktestExportJobs -> Maybe [Filter]
filters} -> Maybe [Filter]
filters) (\s :: ListPredictorBacktestExportJobs
s@ListPredictorBacktestExportJobs' {} Maybe [Filter]
a -> ListPredictorBacktestExportJobs
s {$sel:filters:ListPredictorBacktestExportJobs' :: Maybe [Filter]
filters = Maybe [Filter]
a} :: ListPredictorBacktestExportJobs) ((Maybe [Filter] -> f (Maybe [Filter]))
-> ListPredictorBacktestExportJobs
-> f ListPredictorBacktestExportJobs)
-> ((Maybe [Filter] -> f (Maybe [Filter]))
-> Maybe [Filter] -> f (Maybe [Filter]))
-> (Maybe [Filter] -> f (Maybe [Filter]))
-> ListPredictorBacktestExportJobs
-> f ListPredictorBacktestExportJobs
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
listPredictorBacktestExportJobs_nextToken :: Lens.Lens' ListPredictorBacktestExportJobs (Prelude.Maybe Prelude.Text)
listPredictorBacktestExportJobs_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListPredictorBacktestExportJobs
-> f ListPredictorBacktestExportJobs
listPredictorBacktestExportJobs_nextToken = (ListPredictorBacktestExportJobs -> Maybe Text)
-> (ListPredictorBacktestExportJobs
-> Maybe Text -> ListPredictorBacktestExportJobs)
-> Lens
ListPredictorBacktestExportJobs
ListPredictorBacktestExportJobs
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPredictorBacktestExportJobs' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListPredictorBacktestExportJobs' :: ListPredictorBacktestExportJobs -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListPredictorBacktestExportJobs
s@ListPredictorBacktestExportJobs' {} Maybe Text
a -> ListPredictorBacktestExportJobs
s {$sel:nextToken:ListPredictorBacktestExportJobs' :: Maybe Text
nextToken = Maybe Text
a} :: ListPredictorBacktestExportJobs)
listPredictorBacktestExportJobs_maxResults :: Lens.Lens' ListPredictorBacktestExportJobs (Prelude.Maybe Prelude.Natural)
listPredictorBacktestExportJobs_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListPredictorBacktestExportJobs
-> f ListPredictorBacktestExportJobs
listPredictorBacktestExportJobs_maxResults = (ListPredictorBacktestExportJobs -> Maybe Natural)
-> (ListPredictorBacktestExportJobs
-> Maybe Natural -> ListPredictorBacktestExportJobs)
-> Lens
ListPredictorBacktestExportJobs
ListPredictorBacktestExportJobs
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPredictorBacktestExportJobs' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListPredictorBacktestExportJobs' :: ListPredictorBacktestExportJobs -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListPredictorBacktestExportJobs
s@ListPredictorBacktestExportJobs' {} Maybe Natural
a -> ListPredictorBacktestExportJobs
s {$sel:maxResults:ListPredictorBacktestExportJobs' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListPredictorBacktestExportJobs)
instance
Core.AWSPager
ListPredictorBacktestExportJobs
where
page :: ListPredictorBacktestExportJobs
-> AWSResponse ListPredictorBacktestExportJobs
-> Maybe ListPredictorBacktestExportJobs
page ListPredictorBacktestExportJobs
rq AWSResponse ListPredictorBacktestExportJobs
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListPredictorBacktestExportJobs
ListPredictorBacktestExportJobsResponse
rs
ListPredictorBacktestExportJobsResponse
-> Getting
(First Text) ListPredictorBacktestExportJobsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListPredictorBacktestExportJobsResponse
-> Const (First Text) ListPredictorBacktestExportJobsResponse
Lens' ListPredictorBacktestExportJobsResponse (Maybe Text)
listPredictorBacktestExportJobsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListPredictorBacktestExportJobsResponse
-> Const (First Text) ListPredictorBacktestExportJobsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting
(First Text) ListPredictorBacktestExportJobsResponse 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 ListPredictorBacktestExportJobs
forall a. Maybe a
Prelude.Nothing
| Maybe [PredictorBacktestExportJobSummary] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListPredictorBacktestExportJobs
ListPredictorBacktestExportJobsResponse
rs
ListPredictorBacktestExportJobsResponse
-> Getting
(First [PredictorBacktestExportJobSummary])
ListPredictorBacktestExportJobsResponse
[PredictorBacktestExportJobSummary]
-> Maybe [PredictorBacktestExportJobSummary]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [PredictorBacktestExportJobSummary]
-> Const
(First [PredictorBacktestExportJobSummary])
(Maybe [PredictorBacktestExportJobSummary]))
-> ListPredictorBacktestExportJobsResponse
-> Const
(First [PredictorBacktestExportJobSummary])
ListPredictorBacktestExportJobsResponse
Lens'
ListPredictorBacktestExportJobsResponse
(Maybe [PredictorBacktestExportJobSummary])
listPredictorBacktestExportJobsResponse_predictorBacktestExportJobs
((Maybe [PredictorBacktestExportJobSummary]
-> Const
(First [PredictorBacktestExportJobSummary])
(Maybe [PredictorBacktestExportJobSummary]))
-> ListPredictorBacktestExportJobsResponse
-> Const
(First [PredictorBacktestExportJobSummary])
ListPredictorBacktestExportJobsResponse)
-> (([PredictorBacktestExportJobSummary]
-> Const
(First [PredictorBacktestExportJobSummary])
[PredictorBacktestExportJobSummary])
-> Maybe [PredictorBacktestExportJobSummary]
-> Const
(First [PredictorBacktestExportJobSummary])
(Maybe [PredictorBacktestExportJobSummary]))
-> Getting
(First [PredictorBacktestExportJobSummary])
ListPredictorBacktestExportJobsResponse
[PredictorBacktestExportJobSummary]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([PredictorBacktestExportJobSummary]
-> Const
(First [PredictorBacktestExportJobSummary])
[PredictorBacktestExportJobSummary])
-> Maybe [PredictorBacktestExportJobSummary]
-> Const
(First [PredictorBacktestExportJobSummary])
(Maybe [PredictorBacktestExportJobSummary])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListPredictorBacktestExportJobs
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListPredictorBacktestExportJobs
-> Maybe ListPredictorBacktestExportJobs
forall a. a -> Maybe a
Prelude.Just (ListPredictorBacktestExportJobs
-> Maybe ListPredictorBacktestExportJobs)
-> ListPredictorBacktestExportJobs
-> Maybe ListPredictorBacktestExportJobs
forall a b. (a -> b) -> a -> b
Prelude.$
ListPredictorBacktestExportJobs
rq
ListPredictorBacktestExportJobs
-> (ListPredictorBacktestExportJobs
-> ListPredictorBacktestExportJobs)
-> ListPredictorBacktestExportJobs
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListPredictorBacktestExportJobs
-> Identity ListPredictorBacktestExportJobs
Lens
ListPredictorBacktestExportJobs
ListPredictorBacktestExportJobs
(Maybe Text)
(Maybe Text)
listPredictorBacktestExportJobs_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListPredictorBacktestExportJobs
-> Identity ListPredictorBacktestExportJobs)
-> Maybe Text
-> ListPredictorBacktestExportJobs
-> ListPredictorBacktestExportJobs
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListPredictorBacktestExportJobs
ListPredictorBacktestExportJobsResponse
rs
ListPredictorBacktestExportJobsResponse
-> Getting
(First Text) ListPredictorBacktestExportJobsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListPredictorBacktestExportJobsResponse
-> Const (First Text) ListPredictorBacktestExportJobsResponse
Lens' ListPredictorBacktestExportJobsResponse (Maybe Text)
listPredictorBacktestExportJobsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListPredictorBacktestExportJobsResponse
-> Const (First Text) ListPredictorBacktestExportJobsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting
(First Text) ListPredictorBacktestExportJobsResponse 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
ListPredictorBacktestExportJobs
where
type
AWSResponse ListPredictorBacktestExportJobs =
ListPredictorBacktestExportJobsResponse
request :: ListPredictorBacktestExportJobs
-> Request ListPredictorBacktestExportJobs
request = Service
-> ListPredictorBacktestExportJobs
-> Request ListPredictorBacktestExportJobs
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListPredictorBacktestExportJobs
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse ListPredictorBacktestExportJobs)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListPredictorBacktestExportJobs))
-> Logger
-> Service
-> Proxy ListPredictorBacktestExportJobs
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse ListPredictorBacktestExportJobs)))
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 [PredictorBacktestExportJobSummary]
-> Int
-> ListPredictorBacktestExportJobsResponse
ListPredictorBacktestExportJobsResponse'
(Maybe Text
-> Maybe [PredictorBacktestExportJobSummary]
-> Int
-> ListPredictorBacktestExportJobsResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [PredictorBacktestExportJobSummary]
-> Int -> ListPredictorBacktestExportJobsResponse)
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 [PredictorBacktestExportJobSummary]
-> Int -> ListPredictorBacktestExportJobsResponse)
-> Either String (Maybe [PredictorBacktestExportJobSummary])
-> Either String (Int -> ListPredictorBacktestExportJobsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text
-> Either
String (Maybe (Maybe [PredictorBacktestExportJobSummary]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"PredictorBacktestExportJobs"
Either String (Maybe (Maybe [PredictorBacktestExportJobSummary]))
-> Maybe [PredictorBacktestExportJobSummary]
-> Either String (Maybe [PredictorBacktestExportJobSummary])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [PredictorBacktestExportJobSummary]
forall a. Monoid a => a
Prelude.mempty
)
Either String (Int -> ListPredictorBacktestExportJobsResponse)
-> Either String Int
-> Either String ListPredictorBacktestExportJobsResponse
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
ListPredictorBacktestExportJobs
instance
Prelude.NFData
ListPredictorBacktestExportJobs
instance
Core.ToHeaders
ListPredictorBacktestExportJobs
where
toHeaders :: ListPredictorBacktestExportJobs -> ResponseHeaders
toHeaders =
ResponseHeaders
-> ListPredictorBacktestExportJobs -> 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.ListPredictorBacktestExportJobs" ::
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 ListPredictorBacktestExportJobs where
toJSON :: ListPredictorBacktestExportJobs -> Value
toJSON ListPredictorBacktestExportJobs' {Maybe Natural
Maybe [Filter]
Maybe Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
filters :: Maybe [Filter]
$sel:maxResults:ListPredictorBacktestExportJobs' :: ListPredictorBacktestExportJobs -> Maybe Natural
$sel:nextToken:ListPredictorBacktestExportJobs' :: ListPredictorBacktestExportJobs -> Maybe Text
$sel:filters:ListPredictorBacktestExportJobs' :: ListPredictorBacktestExportJobs -> 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 ListPredictorBacktestExportJobs where
toPath :: ListPredictorBacktestExportJobs -> ByteString
toPath = ByteString -> ListPredictorBacktestExportJobs -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListPredictorBacktestExportJobs where
toQuery :: ListPredictorBacktestExportJobs -> QueryString
toQuery = QueryString -> ListPredictorBacktestExportJobs -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListPredictorBacktestExportJobsResponse = ListPredictorBacktestExportJobsResponse'
{
ListPredictorBacktestExportJobsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListPredictorBacktestExportJobsResponse
-> Maybe [PredictorBacktestExportJobSummary]
predictorBacktestExportJobs :: Prelude.Maybe [PredictorBacktestExportJobSummary],
ListPredictorBacktestExportJobsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListPredictorBacktestExportJobsResponse
-> ListPredictorBacktestExportJobsResponse -> Bool
(ListPredictorBacktestExportJobsResponse
-> ListPredictorBacktestExportJobsResponse -> Bool)
-> (ListPredictorBacktestExportJobsResponse
-> ListPredictorBacktestExportJobsResponse -> Bool)
-> Eq ListPredictorBacktestExportJobsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListPredictorBacktestExportJobsResponse
-> ListPredictorBacktestExportJobsResponse -> Bool
$c/= :: ListPredictorBacktestExportJobsResponse
-> ListPredictorBacktestExportJobsResponse -> Bool
== :: ListPredictorBacktestExportJobsResponse
-> ListPredictorBacktestExportJobsResponse -> Bool
$c== :: ListPredictorBacktestExportJobsResponse
-> ListPredictorBacktestExportJobsResponse -> Bool
Prelude.Eq, ReadPrec [ListPredictorBacktestExportJobsResponse]
ReadPrec ListPredictorBacktestExportJobsResponse
Int -> ReadS ListPredictorBacktestExportJobsResponse
ReadS [ListPredictorBacktestExportJobsResponse]
(Int -> ReadS ListPredictorBacktestExportJobsResponse)
-> ReadS [ListPredictorBacktestExportJobsResponse]
-> ReadPrec ListPredictorBacktestExportJobsResponse
-> ReadPrec [ListPredictorBacktestExportJobsResponse]
-> Read ListPredictorBacktestExportJobsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListPredictorBacktestExportJobsResponse]
$creadListPrec :: ReadPrec [ListPredictorBacktestExportJobsResponse]
readPrec :: ReadPrec ListPredictorBacktestExportJobsResponse
$creadPrec :: ReadPrec ListPredictorBacktestExportJobsResponse
readList :: ReadS [ListPredictorBacktestExportJobsResponse]
$creadList :: ReadS [ListPredictorBacktestExportJobsResponse]
readsPrec :: Int -> ReadS ListPredictorBacktestExportJobsResponse
$creadsPrec :: Int -> ReadS ListPredictorBacktestExportJobsResponse
Prelude.Read, Int -> ListPredictorBacktestExportJobsResponse -> ShowS
[ListPredictorBacktestExportJobsResponse] -> ShowS
ListPredictorBacktestExportJobsResponse -> String
(Int -> ListPredictorBacktestExportJobsResponse -> ShowS)
-> (ListPredictorBacktestExportJobsResponse -> String)
-> ([ListPredictorBacktestExportJobsResponse] -> ShowS)
-> Show ListPredictorBacktestExportJobsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListPredictorBacktestExportJobsResponse] -> ShowS
$cshowList :: [ListPredictorBacktestExportJobsResponse] -> ShowS
show :: ListPredictorBacktestExportJobsResponse -> String
$cshow :: ListPredictorBacktestExportJobsResponse -> String
showsPrec :: Int -> ListPredictorBacktestExportJobsResponse -> ShowS
$cshowsPrec :: Int -> ListPredictorBacktestExportJobsResponse -> ShowS
Prelude.Show, (forall x.
ListPredictorBacktestExportJobsResponse
-> Rep ListPredictorBacktestExportJobsResponse x)
-> (forall x.
Rep ListPredictorBacktestExportJobsResponse x
-> ListPredictorBacktestExportJobsResponse)
-> Generic ListPredictorBacktestExportJobsResponse
forall x.
Rep ListPredictorBacktestExportJobsResponse x
-> ListPredictorBacktestExportJobsResponse
forall x.
ListPredictorBacktestExportJobsResponse
-> Rep ListPredictorBacktestExportJobsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListPredictorBacktestExportJobsResponse x
-> ListPredictorBacktestExportJobsResponse
$cfrom :: forall x.
ListPredictorBacktestExportJobsResponse
-> Rep ListPredictorBacktestExportJobsResponse x
Prelude.Generic)
newListPredictorBacktestExportJobsResponse ::
Prelude.Int ->
ListPredictorBacktestExportJobsResponse
newListPredictorBacktestExportJobsResponse :: Int -> ListPredictorBacktestExportJobsResponse
newListPredictorBacktestExportJobsResponse
Int
pHttpStatus_ =
ListPredictorBacktestExportJobsResponse' :: Maybe Text
-> Maybe [PredictorBacktestExportJobSummary]
-> Int
-> ListPredictorBacktestExportJobsResponse
ListPredictorBacktestExportJobsResponse'
{ $sel:nextToken:ListPredictorBacktestExportJobsResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:predictorBacktestExportJobs:ListPredictorBacktestExportJobsResponse' :: Maybe [PredictorBacktestExportJobSummary]
predictorBacktestExportJobs =
Maybe [PredictorBacktestExportJobSummary]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListPredictorBacktestExportJobsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listPredictorBacktestExportJobsResponse_nextToken :: Lens.Lens' ListPredictorBacktestExportJobsResponse (Prelude.Maybe Prelude.Text)
listPredictorBacktestExportJobsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListPredictorBacktestExportJobsResponse
-> f ListPredictorBacktestExportJobsResponse
listPredictorBacktestExportJobsResponse_nextToken = (ListPredictorBacktestExportJobsResponse -> Maybe Text)
-> (ListPredictorBacktestExportJobsResponse
-> Maybe Text -> ListPredictorBacktestExportJobsResponse)
-> Lens' ListPredictorBacktestExportJobsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPredictorBacktestExportJobsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListPredictorBacktestExportJobsResponse' :: ListPredictorBacktestExportJobsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListPredictorBacktestExportJobsResponse
s@ListPredictorBacktestExportJobsResponse' {} Maybe Text
a -> ListPredictorBacktestExportJobsResponse
s {$sel:nextToken:ListPredictorBacktestExportJobsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListPredictorBacktestExportJobsResponse)
listPredictorBacktestExportJobsResponse_predictorBacktestExportJobs :: Lens.Lens' ListPredictorBacktestExportJobsResponse (Prelude.Maybe [PredictorBacktestExportJobSummary])
listPredictorBacktestExportJobsResponse_predictorBacktestExportJobs :: (Maybe [PredictorBacktestExportJobSummary]
-> f (Maybe [PredictorBacktestExportJobSummary]))
-> ListPredictorBacktestExportJobsResponse
-> f ListPredictorBacktestExportJobsResponse
listPredictorBacktestExportJobsResponse_predictorBacktestExportJobs = (ListPredictorBacktestExportJobsResponse
-> Maybe [PredictorBacktestExportJobSummary])
-> (ListPredictorBacktestExportJobsResponse
-> Maybe [PredictorBacktestExportJobSummary]
-> ListPredictorBacktestExportJobsResponse)
-> Lens'
ListPredictorBacktestExportJobsResponse
(Maybe [PredictorBacktestExportJobSummary])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPredictorBacktestExportJobsResponse' {Maybe [PredictorBacktestExportJobSummary]
predictorBacktestExportJobs :: Maybe [PredictorBacktestExportJobSummary]
$sel:predictorBacktestExportJobs:ListPredictorBacktestExportJobsResponse' :: ListPredictorBacktestExportJobsResponse
-> Maybe [PredictorBacktestExportJobSummary]
predictorBacktestExportJobs} -> Maybe [PredictorBacktestExportJobSummary]
predictorBacktestExportJobs) (\s :: ListPredictorBacktestExportJobsResponse
s@ListPredictorBacktestExportJobsResponse' {} Maybe [PredictorBacktestExportJobSummary]
a -> ListPredictorBacktestExportJobsResponse
s {$sel:predictorBacktestExportJobs:ListPredictorBacktestExportJobsResponse' :: Maybe [PredictorBacktestExportJobSummary]
predictorBacktestExportJobs = Maybe [PredictorBacktestExportJobSummary]
a} :: ListPredictorBacktestExportJobsResponse) ((Maybe [PredictorBacktestExportJobSummary]
-> f (Maybe [PredictorBacktestExportJobSummary]))
-> ListPredictorBacktestExportJobsResponse
-> f ListPredictorBacktestExportJobsResponse)
-> ((Maybe [PredictorBacktestExportJobSummary]
-> f (Maybe [PredictorBacktestExportJobSummary]))
-> Maybe [PredictorBacktestExportJobSummary]
-> f (Maybe [PredictorBacktestExportJobSummary]))
-> (Maybe [PredictorBacktestExportJobSummary]
-> f (Maybe [PredictorBacktestExportJobSummary]))
-> ListPredictorBacktestExportJobsResponse
-> f ListPredictorBacktestExportJobsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[PredictorBacktestExportJobSummary]
[PredictorBacktestExportJobSummary]
[PredictorBacktestExportJobSummary]
[PredictorBacktestExportJobSummary]
-> Iso
(Maybe [PredictorBacktestExportJobSummary])
(Maybe [PredictorBacktestExportJobSummary])
(Maybe [PredictorBacktestExportJobSummary])
(Maybe [PredictorBacktestExportJobSummary])
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
[PredictorBacktestExportJobSummary]
[PredictorBacktestExportJobSummary]
[PredictorBacktestExportJobSummary]
[PredictorBacktestExportJobSummary]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listPredictorBacktestExportJobsResponse_httpStatus :: Lens.Lens' ListPredictorBacktestExportJobsResponse Prelude.Int
listPredictorBacktestExportJobsResponse_httpStatus :: (Int -> f Int)
-> ListPredictorBacktestExportJobsResponse
-> f ListPredictorBacktestExportJobsResponse
listPredictorBacktestExportJobsResponse_httpStatus = (ListPredictorBacktestExportJobsResponse -> Int)
-> (ListPredictorBacktestExportJobsResponse
-> Int -> ListPredictorBacktestExportJobsResponse)
-> Lens
ListPredictorBacktestExportJobsResponse
ListPredictorBacktestExportJobsResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPredictorBacktestExportJobsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListPredictorBacktestExportJobsResponse' :: ListPredictorBacktestExportJobsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListPredictorBacktestExportJobsResponse
s@ListPredictorBacktestExportJobsResponse' {} Int
a -> ListPredictorBacktestExportJobsResponse
s {$sel:httpStatus:ListPredictorBacktestExportJobsResponse' :: Int
httpStatus = Int
a} :: ListPredictorBacktestExportJobsResponse)
instance
Prelude.NFData
ListPredictorBacktestExportJobsResponse