{-# 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.ComputeOptimizer.DescribeRecommendationExportJobs
(
DescribeRecommendationExportJobs (..),
newDescribeRecommendationExportJobs,
describeRecommendationExportJobs_filters,
describeRecommendationExportJobs_nextToken,
describeRecommendationExportJobs_maxResults,
describeRecommendationExportJobs_jobIds,
DescribeRecommendationExportJobsResponse (..),
newDescribeRecommendationExportJobsResponse,
describeRecommendationExportJobsResponse_recommendationExportJobs,
describeRecommendationExportJobsResponse_nextToken,
describeRecommendationExportJobsResponse_httpStatus,
)
where
import Amazonka.ComputeOptimizer.Types
import qualified Amazonka.Core as Core
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 DescribeRecommendationExportJobs = DescribeRecommendationExportJobs'
{
DescribeRecommendationExportJobs -> Maybe [JobFilter]
filters :: Prelude.Maybe [JobFilter],
DescribeRecommendationExportJobs -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
DescribeRecommendationExportJobs -> Maybe Int
maxResults :: Prelude.Maybe Prelude.Int,
DescribeRecommendationExportJobs -> Maybe [Text]
jobIds :: Prelude.Maybe [Prelude.Text]
}
deriving (DescribeRecommendationExportJobs
-> DescribeRecommendationExportJobs -> Bool
(DescribeRecommendationExportJobs
-> DescribeRecommendationExportJobs -> Bool)
-> (DescribeRecommendationExportJobs
-> DescribeRecommendationExportJobs -> Bool)
-> Eq DescribeRecommendationExportJobs
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeRecommendationExportJobs
-> DescribeRecommendationExportJobs -> Bool
$c/= :: DescribeRecommendationExportJobs
-> DescribeRecommendationExportJobs -> Bool
== :: DescribeRecommendationExportJobs
-> DescribeRecommendationExportJobs -> Bool
$c== :: DescribeRecommendationExportJobs
-> DescribeRecommendationExportJobs -> Bool
Prelude.Eq, ReadPrec [DescribeRecommendationExportJobs]
ReadPrec DescribeRecommendationExportJobs
Int -> ReadS DescribeRecommendationExportJobs
ReadS [DescribeRecommendationExportJobs]
(Int -> ReadS DescribeRecommendationExportJobs)
-> ReadS [DescribeRecommendationExportJobs]
-> ReadPrec DescribeRecommendationExportJobs
-> ReadPrec [DescribeRecommendationExportJobs]
-> Read DescribeRecommendationExportJobs
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeRecommendationExportJobs]
$creadListPrec :: ReadPrec [DescribeRecommendationExportJobs]
readPrec :: ReadPrec DescribeRecommendationExportJobs
$creadPrec :: ReadPrec DescribeRecommendationExportJobs
readList :: ReadS [DescribeRecommendationExportJobs]
$creadList :: ReadS [DescribeRecommendationExportJobs]
readsPrec :: Int -> ReadS DescribeRecommendationExportJobs
$creadsPrec :: Int -> ReadS DescribeRecommendationExportJobs
Prelude.Read, Int -> DescribeRecommendationExportJobs -> ShowS
[DescribeRecommendationExportJobs] -> ShowS
DescribeRecommendationExportJobs -> String
(Int -> DescribeRecommendationExportJobs -> ShowS)
-> (DescribeRecommendationExportJobs -> String)
-> ([DescribeRecommendationExportJobs] -> ShowS)
-> Show DescribeRecommendationExportJobs
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeRecommendationExportJobs] -> ShowS
$cshowList :: [DescribeRecommendationExportJobs] -> ShowS
show :: DescribeRecommendationExportJobs -> String
$cshow :: DescribeRecommendationExportJobs -> String
showsPrec :: Int -> DescribeRecommendationExportJobs -> ShowS
$cshowsPrec :: Int -> DescribeRecommendationExportJobs -> ShowS
Prelude.Show, (forall x.
DescribeRecommendationExportJobs
-> Rep DescribeRecommendationExportJobs x)
-> (forall x.
Rep DescribeRecommendationExportJobs x
-> DescribeRecommendationExportJobs)
-> Generic DescribeRecommendationExportJobs
forall x.
Rep DescribeRecommendationExportJobs x
-> DescribeRecommendationExportJobs
forall x.
DescribeRecommendationExportJobs
-> Rep DescribeRecommendationExportJobs x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeRecommendationExportJobs x
-> DescribeRecommendationExportJobs
$cfrom :: forall x.
DescribeRecommendationExportJobs
-> Rep DescribeRecommendationExportJobs x
Prelude.Generic)
newDescribeRecommendationExportJobs ::
DescribeRecommendationExportJobs
newDescribeRecommendationExportJobs :: DescribeRecommendationExportJobs
newDescribeRecommendationExportJobs =
DescribeRecommendationExportJobs' :: Maybe [JobFilter]
-> Maybe Text
-> Maybe Int
-> Maybe [Text]
-> DescribeRecommendationExportJobs
DescribeRecommendationExportJobs'
{ $sel:filters:DescribeRecommendationExportJobs' :: Maybe [JobFilter]
filters =
Maybe [JobFilter]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:DescribeRecommendationExportJobs' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:DescribeRecommendationExportJobs' :: Maybe Int
maxResults = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:jobIds:DescribeRecommendationExportJobs' :: Maybe [Text]
jobIds = Maybe [Text]
forall a. Maybe a
Prelude.Nothing
}
describeRecommendationExportJobs_filters :: Lens.Lens' DescribeRecommendationExportJobs (Prelude.Maybe [JobFilter])
describeRecommendationExportJobs_filters :: (Maybe [JobFilter] -> f (Maybe [JobFilter]))
-> DescribeRecommendationExportJobs
-> f DescribeRecommendationExportJobs
describeRecommendationExportJobs_filters = (DescribeRecommendationExportJobs -> Maybe [JobFilter])
-> (DescribeRecommendationExportJobs
-> Maybe [JobFilter] -> DescribeRecommendationExportJobs)
-> Lens
DescribeRecommendationExportJobs
DescribeRecommendationExportJobs
(Maybe [JobFilter])
(Maybe [JobFilter])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRecommendationExportJobs' {Maybe [JobFilter]
filters :: Maybe [JobFilter]
$sel:filters:DescribeRecommendationExportJobs' :: DescribeRecommendationExportJobs -> Maybe [JobFilter]
filters} -> Maybe [JobFilter]
filters) (\s :: DescribeRecommendationExportJobs
s@DescribeRecommendationExportJobs' {} Maybe [JobFilter]
a -> DescribeRecommendationExportJobs
s {$sel:filters:DescribeRecommendationExportJobs' :: Maybe [JobFilter]
filters = Maybe [JobFilter]
a} :: DescribeRecommendationExportJobs) ((Maybe [JobFilter] -> f (Maybe [JobFilter]))
-> DescribeRecommendationExportJobs
-> f DescribeRecommendationExportJobs)
-> ((Maybe [JobFilter] -> f (Maybe [JobFilter]))
-> Maybe [JobFilter] -> f (Maybe [JobFilter]))
-> (Maybe [JobFilter] -> f (Maybe [JobFilter]))
-> DescribeRecommendationExportJobs
-> f DescribeRecommendationExportJobs
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [JobFilter] [JobFilter] [JobFilter] [JobFilter]
-> Iso
(Maybe [JobFilter])
(Maybe [JobFilter])
(Maybe [JobFilter])
(Maybe [JobFilter])
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 [JobFilter] [JobFilter] [JobFilter] [JobFilter]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeRecommendationExportJobs_nextToken :: Lens.Lens' DescribeRecommendationExportJobs (Prelude.Maybe Prelude.Text)
describeRecommendationExportJobs_nextToken :: (Maybe Text -> f (Maybe Text))
-> DescribeRecommendationExportJobs
-> f DescribeRecommendationExportJobs
describeRecommendationExportJobs_nextToken = (DescribeRecommendationExportJobs -> Maybe Text)
-> (DescribeRecommendationExportJobs
-> Maybe Text -> DescribeRecommendationExportJobs)
-> Lens
DescribeRecommendationExportJobs
DescribeRecommendationExportJobs
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRecommendationExportJobs' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeRecommendationExportJobs' :: DescribeRecommendationExportJobs -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeRecommendationExportJobs
s@DescribeRecommendationExportJobs' {} Maybe Text
a -> DescribeRecommendationExportJobs
s {$sel:nextToken:DescribeRecommendationExportJobs' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeRecommendationExportJobs)
describeRecommendationExportJobs_maxResults :: Lens.Lens' DescribeRecommendationExportJobs (Prelude.Maybe Prelude.Int)
describeRecommendationExportJobs_maxResults :: (Maybe Int -> f (Maybe Int))
-> DescribeRecommendationExportJobs
-> f DescribeRecommendationExportJobs
describeRecommendationExportJobs_maxResults = (DescribeRecommendationExportJobs -> Maybe Int)
-> (DescribeRecommendationExportJobs
-> Maybe Int -> DescribeRecommendationExportJobs)
-> Lens
DescribeRecommendationExportJobs
DescribeRecommendationExportJobs
(Maybe Int)
(Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRecommendationExportJobs' {Maybe Int
maxResults :: Maybe Int
$sel:maxResults:DescribeRecommendationExportJobs' :: DescribeRecommendationExportJobs -> Maybe Int
maxResults} -> Maybe Int
maxResults) (\s :: DescribeRecommendationExportJobs
s@DescribeRecommendationExportJobs' {} Maybe Int
a -> DescribeRecommendationExportJobs
s {$sel:maxResults:DescribeRecommendationExportJobs' :: Maybe Int
maxResults = Maybe Int
a} :: DescribeRecommendationExportJobs)
describeRecommendationExportJobs_jobIds :: Lens.Lens' DescribeRecommendationExportJobs (Prelude.Maybe [Prelude.Text])
describeRecommendationExportJobs_jobIds :: (Maybe [Text] -> f (Maybe [Text]))
-> DescribeRecommendationExportJobs
-> f DescribeRecommendationExportJobs
describeRecommendationExportJobs_jobIds = (DescribeRecommendationExportJobs -> Maybe [Text])
-> (DescribeRecommendationExportJobs
-> Maybe [Text] -> DescribeRecommendationExportJobs)
-> Lens
DescribeRecommendationExportJobs
DescribeRecommendationExportJobs
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRecommendationExportJobs' {Maybe [Text]
jobIds :: Maybe [Text]
$sel:jobIds:DescribeRecommendationExportJobs' :: DescribeRecommendationExportJobs -> Maybe [Text]
jobIds} -> Maybe [Text]
jobIds) (\s :: DescribeRecommendationExportJobs
s@DescribeRecommendationExportJobs' {} Maybe [Text]
a -> DescribeRecommendationExportJobs
s {$sel:jobIds:DescribeRecommendationExportJobs' :: Maybe [Text]
jobIds = Maybe [Text]
a} :: DescribeRecommendationExportJobs) ((Maybe [Text] -> f (Maybe [Text]))
-> DescribeRecommendationExportJobs
-> f DescribeRecommendationExportJobs)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> DescribeRecommendationExportJobs
-> f DescribeRecommendationExportJobs
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance
Core.AWSRequest
DescribeRecommendationExportJobs
where
type
AWSResponse DescribeRecommendationExportJobs =
DescribeRecommendationExportJobsResponse
request :: DescribeRecommendationExportJobs
-> Request DescribeRecommendationExportJobs
request = Service
-> DescribeRecommendationExportJobs
-> Request DescribeRecommendationExportJobs
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeRecommendationExportJobs
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse DescribeRecommendationExportJobs)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeRecommendationExportJobs))
-> Logger
-> Service
-> Proxy DescribeRecommendationExportJobs
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse DescribeRecommendationExportJobs)))
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 [RecommendationExportJob]
-> Maybe Text -> Int -> DescribeRecommendationExportJobsResponse
DescribeRecommendationExportJobsResponse'
(Maybe [RecommendationExportJob]
-> Maybe Text -> Int -> DescribeRecommendationExportJobsResponse)
-> Either String (Maybe [RecommendationExportJob])
-> Either
String
(Maybe Text -> Int -> DescribeRecommendationExportJobsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object
-> Text -> Either String (Maybe (Maybe [RecommendationExportJob]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"recommendationExportJobs"
Either String (Maybe (Maybe [RecommendationExportJob]))
-> Maybe [RecommendationExportJob]
-> Either String (Maybe [RecommendationExportJob])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [RecommendationExportJob]
forall a. Monoid a => a
Prelude.mempty
)
Either
String
(Maybe Text -> Int -> DescribeRecommendationExportJobsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> DescribeRecommendationExportJobsResponse)
forall (f :: * -> *) a b. Applicative f => 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 (Int -> DescribeRecommendationExportJobsResponse)
-> Either String Int
-> Either String DescribeRecommendationExportJobsResponse
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
DescribeRecommendationExportJobs
instance
Prelude.NFData
DescribeRecommendationExportJobs
instance
Core.ToHeaders
DescribeRecommendationExportJobs
where
toHeaders :: DescribeRecommendationExportJobs -> ResponseHeaders
toHeaders =
ResponseHeaders
-> DescribeRecommendationExportJobs -> 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
"ComputeOptimizerService.DescribeRecommendationExportJobs" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.0" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON DescribeRecommendationExportJobs where
toJSON :: DescribeRecommendationExportJobs -> Value
toJSON DescribeRecommendationExportJobs' {Maybe Int
Maybe [Text]
Maybe [JobFilter]
Maybe Text
jobIds :: Maybe [Text]
maxResults :: Maybe Int
nextToken :: Maybe Text
filters :: Maybe [JobFilter]
$sel:jobIds:DescribeRecommendationExportJobs' :: DescribeRecommendationExportJobs -> Maybe [Text]
$sel:maxResults:DescribeRecommendationExportJobs' :: DescribeRecommendationExportJobs -> Maybe Int
$sel:nextToken:DescribeRecommendationExportJobs' :: DescribeRecommendationExportJobs -> Maybe Text
$sel:filters:DescribeRecommendationExportJobs' :: DescribeRecommendationExportJobs -> Maybe [JobFilter]
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"filters" Text -> [JobFilter] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([JobFilter] -> Pair) -> Maybe [JobFilter] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [JobFilter]
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 -> Int -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Int -> Pair) -> Maybe Int -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Int
maxResults,
(Text
"jobIds" 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]
jobIds
]
)
instance Core.ToPath DescribeRecommendationExportJobs where
toPath :: DescribeRecommendationExportJobs -> ByteString
toPath = ByteString -> DescribeRecommendationExportJobs -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance
Core.ToQuery
DescribeRecommendationExportJobs
where
toQuery :: DescribeRecommendationExportJobs -> QueryString
toQuery = QueryString -> DescribeRecommendationExportJobs -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeRecommendationExportJobsResponse = DescribeRecommendationExportJobsResponse'
{
DescribeRecommendationExportJobsResponse
-> Maybe [RecommendationExportJob]
recommendationExportJobs :: Prelude.Maybe [RecommendationExportJob],
DescribeRecommendationExportJobsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
DescribeRecommendationExportJobsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeRecommendationExportJobsResponse
-> DescribeRecommendationExportJobsResponse -> Bool
(DescribeRecommendationExportJobsResponse
-> DescribeRecommendationExportJobsResponse -> Bool)
-> (DescribeRecommendationExportJobsResponse
-> DescribeRecommendationExportJobsResponse -> Bool)
-> Eq DescribeRecommendationExportJobsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeRecommendationExportJobsResponse
-> DescribeRecommendationExportJobsResponse -> Bool
$c/= :: DescribeRecommendationExportJobsResponse
-> DescribeRecommendationExportJobsResponse -> Bool
== :: DescribeRecommendationExportJobsResponse
-> DescribeRecommendationExportJobsResponse -> Bool
$c== :: DescribeRecommendationExportJobsResponse
-> DescribeRecommendationExportJobsResponse -> Bool
Prelude.Eq, ReadPrec [DescribeRecommendationExportJobsResponse]
ReadPrec DescribeRecommendationExportJobsResponse
Int -> ReadS DescribeRecommendationExportJobsResponse
ReadS [DescribeRecommendationExportJobsResponse]
(Int -> ReadS DescribeRecommendationExportJobsResponse)
-> ReadS [DescribeRecommendationExportJobsResponse]
-> ReadPrec DescribeRecommendationExportJobsResponse
-> ReadPrec [DescribeRecommendationExportJobsResponse]
-> Read DescribeRecommendationExportJobsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeRecommendationExportJobsResponse]
$creadListPrec :: ReadPrec [DescribeRecommendationExportJobsResponse]
readPrec :: ReadPrec DescribeRecommendationExportJobsResponse
$creadPrec :: ReadPrec DescribeRecommendationExportJobsResponse
readList :: ReadS [DescribeRecommendationExportJobsResponse]
$creadList :: ReadS [DescribeRecommendationExportJobsResponse]
readsPrec :: Int -> ReadS DescribeRecommendationExportJobsResponse
$creadsPrec :: Int -> ReadS DescribeRecommendationExportJobsResponse
Prelude.Read, Int -> DescribeRecommendationExportJobsResponse -> ShowS
[DescribeRecommendationExportJobsResponse] -> ShowS
DescribeRecommendationExportJobsResponse -> String
(Int -> DescribeRecommendationExportJobsResponse -> ShowS)
-> (DescribeRecommendationExportJobsResponse -> String)
-> ([DescribeRecommendationExportJobsResponse] -> ShowS)
-> Show DescribeRecommendationExportJobsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeRecommendationExportJobsResponse] -> ShowS
$cshowList :: [DescribeRecommendationExportJobsResponse] -> ShowS
show :: DescribeRecommendationExportJobsResponse -> String
$cshow :: DescribeRecommendationExportJobsResponse -> String
showsPrec :: Int -> DescribeRecommendationExportJobsResponse -> ShowS
$cshowsPrec :: Int -> DescribeRecommendationExportJobsResponse -> ShowS
Prelude.Show, (forall x.
DescribeRecommendationExportJobsResponse
-> Rep DescribeRecommendationExportJobsResponse x)
-> (forall x.
Rep DescribeRecommendationExportJobsResponse x
-> DescribeRecommendationExportJobsResponse)
-> Generic DescribeRecommendationExportJobsResponse
forall x.
Rep DescribeRecommendationExportJobsResponse x
-> DescribeRecommendationExportJobsResponse
forall x.
DescribeRecommendationExportJobsResponse
-> Rep DescribeRecommendationExportJobsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeRecommendationExportJobsResponse x
-> DescribeRecommendationExportJobsResponse
$cfrom :: forall x.
DescribeRecommendationExportJobsResponse
-> Rep DescribeRecommendationExportJobsResponse x
Prelude.Generic)
newDescribeRecommendationExportJobsResponse ::
Prelude.Int ->
DescribeRecommendationExportJobsResponse
newDescribeRecommendationExportJobsResponse :: Int -> DescribeRecommendationExportJobsResponse
newDescribeRecommendationExportJobsResponse
Int
pHttpStatus_ =
DescribeRecommendationExportJobsResponse' :: Maybe [RecommendationExportJob]
-> Maybe Text -> Int -> DescribeRecommendationExportJobsResponse
DescribeRecommendationExportJobsResponse'
{ $sel:recommendationExportJobs:DescribeRecommendationExportJobsResponse' :: Maybe [RecommendationExportJob]
recommendationExportJobs =
Maybe [RecommendationExportJob]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:DescribeRecommendationExportJobsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeRecommendationExportJobsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeRecommendationExportJobsResponse_recommendationExportJobs :: Lens.Lens' DescribeRecommendationExportJobsResponse (Prelude.Maybe [RecommendationExportJob])
describeRecommendationExportJobsResponse_recommendationExportJobs :: (Maybe [RecommendationExportJob]
-> f (Maybe [RecommendationExportJob]))
-> DescribeRecommendationExportJobsResponse
-> f DescribeRecommendationExportJobsResponse
describeRecommendationExportJobsResponse_recommendationExportJobs = (DescribeRecommendationExportJobsResponse
-> Maybe [RecommendationExportJob])
-> (DescribeRecommendationExportJobsResponse
-> Maybe [RecommendationExportJob]
-> DescribeRecommendationExportJobsResponse)
-> Lens
DescribeRecommendationExportJobsResponse
DescribeRecommendationExportJobsResponse
(Maybe [RecommendationExportJob])
(Maybe [RecommendationExportJob])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRecommendationExportJobsResponse' {Maybe [RecommendationExportJob]
recommendationExportJobs :: Maybe [RecommendationExportJob]
$sel:recommendationExportJobs:DescribeRecommendationExportJobsResponse' :: DescribeRecommendationExportJobsResponse
-> Maybe [RecommendationExportJob]
recommendationExportJobs} -> Maybe [RecommendationExportJob]
recommendationExportJobs) (\s :: DescribeRecommendationExportJobsResponse
s@DescribeRecommendationExportJobsResponse' {} Maybe [RecommendationExportJob]
a -> DescribeRecommendationExportJobsResponse
s {$sel:recommendationExportJobs:DescribeRecommendationExportJobsResponse' :: Maybe [RecommendationExportJob]
recommendationExportJobs = Maybe [RecommendationExportJob]
a} :: DescribeRecommendationExportJobsResponse) ((Maybe [RecommendationExportJob]
-> f (Maybe [RecommendationExportJob]))
-> DescribeRecommendationExportJobsResponse
-> f DescribeRecommendationExportJobsResponse)
-> ((Maybe [RecommendationExportJob]
-> f (Maybe [RecommendationExportJob]))
-> Maybe [RecommendationExportJob]
-> f (Maybe [RecommendationExportJob]))
-> (Maybe [RecommendationExportJob]
-> f (Maybe [RecommendationExportJob]))
-> DescribeRecommendationExportJobsResponse
-> f DescribeRecommendationExportJobsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[RecommendationExportJob]
[RecommendationExportJob]
[RecommendationExportJob]
[RecommendationExportJob]
-> Iso
(Maybe [RecommendationExportJob])
(Maybe [RecommendationExportJob])
(Maybe [RecommendationExportJob])
(Maybe [RecommendationExportJob])
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
[RecommendationExportJob]
[RecommendationExportJob]
[RecommendationExportJob]
[RecommendationExportJob]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeRecommendationExportJobsResponse_nextToken :: Lens.Lens' DescribeRecommendationExportJobsResponse (Prelude.Maybe Prelude.Text)
describeRecommendationExportJobsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> DescribeRecommendationExportJobsResponse
-> f DescribeRecommendationExportJobsResponse
describeRecommendationExportJobsResponse_nextToken = (DescribeRecommendationExportJobsResponse -> Maybe Text)
-> (DescribeRecommendationExportJobsResponse
-> Maybe Text -> DescribeRecommendationExportJobsResponse)
-> Lens
DescribeRecommendationExportJobsResponse
DescribeRecommendationExportJobsResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRecommendationExportJobsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeRecommendationExportJobsResponse' :: DescribeRecommendationExportJobsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeRecommendationExportJobsResponse
s@DescribeRecommendationExportJobsResponse' {} Maybe Text
a -> DescribeRecommendationExportJobsResponse
s {$sel:nextToken:DescribeRecommendationExportJobsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeRecommendationExportJobsResponse)
describeRecommendationExportJobsResponse_httpStatus :: Lens.Lens' DescribeRecommendationExportJobsResponse Prelude.Int
describeRecommendationExportJobsResponse_httpStatus :: (Int -> f Int)
-> DescribeRecommendationExportJobsResponse
-> f DescribeRecommendationExportJobsResponse
describeRecommendationExportJobsResponse_httpStatus = (DescribeRecommendationExportJobsResponse -> Int)
-> (DescribeRecommendationExportJobsResponse
-> Int -> DescribeRecommendationExportJobsResponse)
-> Lens
DescribeRecommendationExportJobsResponse
DescribeRecommendationExportJobsResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRecommendationExportJobsResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeRecommendationExportJobsResponse' :: DescribeRecommendationExportJobsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeRecommendationExportJobsResponse
s@DescribeRecommendationExportJobsResponse' {} Int
a -> DescribeRecommendationExportJobsResponse
s {$sel:httpStatus:DescribeRecommendationExportJobsResponse' :: Int
httpStatus = Int
a} :: DescribeRecommendationExportJobsResponse)
instance
Prelude.NFData
DescribeRecommendationExportJobsResponse