{-# 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.RobOMaker.ListWorldGenerationJobs
(
ListWorldGenerationJobs (..),
newListWorldGenerationJobs,
listWorldGenerationJobs_filters,
listWorldGenerationJobs_nextToken,
listWorldGenerationJobs_maxResults,
ListWorldGenerationJobsResponse (..),
newListWorldGenerationJobsResponse,
listWorldGenerationJobsResponse_nextToken,
listWorldGenerationJobsResponse_httpStatus,
listWorldGenerationJobsResponse_worldGenerationJobSummaries,
)
where
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
import Amazonka.RobOMaker.Types
data ListWorldGenerationJobs = ListWorldGenerationJobs'
{
ListWorldGenerationJobs -> Maybe (NonEmpty Filter)
filters :: Prelude.Maybe (Prelude.NonEmpty Filter),
ListWorldGenerationJobs -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListWorldGenerationJobs -> Maybe Int
maxResults :: Prelude.Maybe Prelude.Int
}
deriving (ListWorldGenerationJobs -> ListWorldGenerationJobs -> Bool
(ListWorldGenerationJobs -> ListWorldGenerationJobs -> Bool)
-> (ListWorldGenerationJobs -> ListWorldGenerationJobs -> Bool)
-> Eq ListWorldGenerationJobs
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListWorldGenerationJobs -> ListWorldGenerationJobs -> Bool
$c/= :: ListWorldGenerationJobs -> ListWorldGenerationJobs -> Bool
== :: ListWorldGenerationJobs -> ListWorldGenerationJobs -> Bool
$c== :: ListWorldGenerationJobs -> ListWorldGenerationJobs -> Bool
Prelude.Eq, ReadPrec [ListWorldGenerationJobs]
ReadPrec ListWorldGenerationJobs
Int -> ReadS ListWorldGenerationJobs
ReadS [ListWorldGenerationJobs]
(Int -> ReadS ListWorldGenerationJobs)
-> ReadS [ListWorldGenerationJobs]
-> ReadPrec ListWorldGenerationJobs
-> ReadPrec [ListWorldGenerationJobs]
-> Read ListWorldGenerationJobs
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListWorldGenerationJobs]
$creadListPrec :: ReadPrec [ListWorldGenerationJobs]
readPrec :: ReadPrec ListWorldGenerationJobs
$creadPrec :: ReadPrec ListWorldGenerationJobs
readList :: ReadS [ListWorldGenerationJobs]
$creadList :: ReadS [ListWorldGenerationJobs]
readsPrec :: Int -> ReadS ListWorldGenerationJobs
$creadsPrec :: Int -> ReadS ListWorldGenerationJobs
Prelude.Read, Int -> ListWorldGenerationJobs -> ShowS
[ListWorldGenerationJobs] -> ShowS
ListWorldGenerationJobs -> String
(Int -> ListWorldGenerationJobs -> ShowS)
-> (ListWorldGenerationJobs -> String)
-> ([ListWorldGenerationJobs] -> ShowS)
-> Show ListWorldGenerationJobs
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListWorldGenerationJobs] -> ShowS
$cshowList :: [ListWorldGenerationJobs] -> ShowS
show :: ListWorldGenerationJobs -> String
$cshow :: ListWorldGenerationJobs -> String
showsPrec :: Int -> ListWorldGenerationJobs -> ShowS
$cshowsPrec :: Int -> ListWorldGenerationJobs -> ShowS
Prelude.Show, (forall x.
ListWorldGenerationJobs -> Rep ListWorldGenerationJobs x)
-> (forall x.
Rep ListWorldGenerationJobs x -> ListWorldGenerationJobs)
-> Generic ListWorldGenerationJobs
forall x. Rep ListWorldGenerationJobs x -> ListWorldGenerationJobs
forall x. ListWorldGenerationJobs -> Rep ListWorldGenerationJobs x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListWorldGenerationJobs x -> ListWorldGenerationJobs
$cfrom :: forall x. ListWorldGenerationJobs -> Rep ListWorldGenerationJobs x
Prelude.Generic)
newListWorldGenerationJobs ::
ListWorldGenerationJobs
newListWorldGenerationJobs :: ListWorldGenerationJobs
newListWorldGenerationJobs =
ListWorldGenerationJobs' :: Maybe (NonEmpty Filter)
-> Maybe Text -> Maybe Int -> ListWorldGenerationJobs
ListWorldGenerationJobs'
{ $sel:filters:ListWorldGenerationJobs' :: Maybe (NonEmpty Filter)
filters = Maybe (NonEmpty Filter)
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListWorldGenerationJobs' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListWorldGenerationJobs' :: Maybe Int
maxResults = Maybe Int
forall a. Maybe a
Prelude.Nothing
}
listWorldGenerationJobs_filters :: Lens.Lens' ListWorldGenerationJobs (Prelude.Maybe (Prelude.NonEmpty Filter))
listWorldGenerationJobs_filters :: (Maybe (NonEmpty Filter) -> f (Maybe (NonEmpty Filter)))
-> ListWorldGenerationJobs -> f ListWorldGenerationJobs
listWorldGenerationJobs_filters = (ListWorldGenerationJobs -> Maybe (NonEmpty Filter))
-> (ListWorldGenerationJobs
-> Maybe (NonEmpty Filter) -> ListWorldGenerationJobs)
-> Lens
ListWorldGenerationJobs
ListWorldGenerationJobs
(Maybe (NonEmpty Filter))
(Maybe (NonEmpty Filter))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListWorldGenerationJobs' {Maybe (NonEmpty Filter)
filters :: Maybe (NonEmpty Filter)
$sel:filters:ListWorldGenerationJobs' :: ListWorldGenerationJobs -> Maybe (NonEmpty Filter)
filters} -> Maybe (NonEmpty Filter)
filters) (\s :: ListWorldGenerationJobs
s@ListWorldGenerationJobs' {} Maybe (NonEmpty Filter)
a -> ListWorldGenerationJobs
s {$sel:filters:ListWorldGenerationJobs' :: Maybe (NonEmpty Filter)
filters = Maybe (NonEmpty Filter)
a} :: ListWorldGenerationJobs) ((Maybe (NonEmpty Filter) -> f (Maybe (NonEmpty Filter)))
-> ListWorldGenerationJobs -> f ListWorldGenerationJobs)
-> ((Maybe (NonEmpty Filter) -> f (Maybe (NonEmpty Filter)))
-> Maybe (NonEmpty Filter) -> f (Maybe (NonEmpty Filter)))
-> (Maybe (NonEmpty Filter) -> f (Maybe (NonEmpty Filter)))
-> ListWorldGenerationJobs
-> f ListWorldGenerationJobs
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(NonEmpty Filter)
(NonEmpty Filter)
(NonEmpty Filter)
(NonEmpty Filter)
-> Iso
(Maybe (NonEmpty Filter))
(Maybe (NonEmpty Filter))
(Maybe (NonEmpty Filter))
(Maybe (NonEmpty 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
(NonEmpty Filter)
(NonEmpty Filter)
(NonEmpty Filter)
(NonEmpty Filter)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listWorldGenerationJobs_nextToken :: Lens.Lens' ListWorldGenerationJobs (Prelude.Maybe Prelude.Text)
listWorldGenerationJobs_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListWorldGenerationJobs -> f ListWorldGenerationJobs
listWorldGenerationJobs_nextToken = (ListWorldGenerationJobs -> Maybe Text)
-> (ListWorldGenerationJobs
-> Maybe Text -> ListWorldGenerationJobs)
-> Lens
ListWorldGenerationJobs
ListWorldGenerationJobs
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListWorldGenerationJobs' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListWorldGenerationJobs' :: ListWorldGenerationJobs -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListWorldGenerationJobs
s@ListWorldGenerationJobs' {} Maybe Text
a -> ListWorldGenerationJobs
s {$sel:nextToken:ListWorldGenerationJobs' :: Maybe Text
nextToken = Maybe Text
a} :: ListWorldGenerationJobs)
listWorldGenerationJobs_maxResults :: Lens.Lens' ListWorldGenerationJobs (Prelude.Maybe Prelude.Int)
listWorldGenerationJobs_maxResults :: (Maybe Int -> f (Maybe Int))
-> ListWorldGenerationJobs -> f ListWorldGenerationJobs
listWorldGenerationJobs_maxResults = (ListWorldGenerationJobs -> Maybe Int)
-> (ListWorldGenerationJobs
-> Maybe Int -> ListWorldGenerationJobs)
-> Lens
ListWorldGenerationJobs
ListWorldGenerationJobs
(Maybe Int)
(Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListWorldGenerationJobs' {Maybe Int
maxResults :: Maybe Int
$sel:maxResults:ListWorldGenerationJobs' :: ListWorldGenerationJobs -> Maybe Int
maxResults} -> Maybe Int
maxResults) (\s :: ListWorldGenerationJobs
s@ListWorldGenerationJobs' {} Maybe Int
a -> ListWorldGenerationJobs
s {$sel:maxResults:ListWorldGenerationJobs' :: Maybe Int
maxResults = Maybe Int
a} :: ListWorldGenerationJobs)
instance Core.AWSPager ListWorldGenerationJobs where
page :: ListWorldGenerationJobs
-> AWSResponse ListWorldGenerationJobs
-> Maybe ListWorldGenerationJobs
page ListWorldGenerationJobs
rq AWSResponse ListWorldGenerationJobs
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListWorldGenerationJobs
ListWorldGenerationJobsResponse
rs
ListWorldGenerationJobsResponse
-> Getting (First Text) ListWorldGenerationJobsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListWorldGenerationJobsResponse
-> Const (First Text) ListWorldGenerationJobsResponse
Lens' ListWorldGenerationJobsResponse (Maybe Text)
listWorldGenerationJobsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListWorldGenerationJobsResponse
-> Const (First Text) ListWorldGenerationJobsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListWorldGenerationJobsResponse 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 ListWorldGenerationJobs
forall a. Maybe a
Prelude.Nothing
| [WorldGenerationJobSummary] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListWorldGenerationJobs
ListWorldGenerationJobsResponse
rs
ListWorldGenerationJobsResponse
-> Getting
[WorldGenerationJobSummary]
ListWorldGenerationJobsResponse
[WorldGenerationJobSummary]
-> [WorldGenerationJobSummary]
forall s a. s -> Getting a s a -> a
Lens.^. Getting
[WorldGenerationJobSummary]
ListWorldGenerationJobsResponse
[WorldGenerationJobSummary]
Lens' ListWorldGenerationJobsResponse [WorldGenerationJobSummary]
listWorldGenerationJobsResponse_worldGenerationJobSummaries
) =
Maybe ListWorldGenerationJobs
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListWorldGenerationJobs -> Maybe ListWorldGenerationJobs
forall a. a -> Maybe a
Prelude.Just (ListWorldGenerationJobs -> Maybe ListWorldGenerationJobs)
-> ListWorldGenerationJobs -> Maybe ListWorldGenerationJobs
forall a b. (a -> b) -> a -> b
Prelude.$
ListWorldGenerationJobs
rq
ListWorldGenerationJobs
-> (ListWorldGenerationJobs -> ListWorldGenerationJobs)
-> ListWorldGenerationJobs
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListWorldGenerationJobs -> Identity ListWorldGenerationJobs
Lens
ListWorldGenerationJobs
ListWorldGenerationJobs
(Maybe Text)
(Maybe Text)
listWorldGenerationJobs_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListWorldGenerationJobs -> Identity ListWorldGenerationJobs)
-> Maybe Text -> ListWorldGenerationJobs -> ListWorldGenerationJobs
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListWorldGenerationJobs
ListWorldGenerationJobsResponse
rs
ListWorldGenerationJobsResponse
-> Getting (First Text) ListWorldGenerationJobsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListWorldGenerationJobsResponse
-> Const (First Text) ListWorldGenerationJobsResponse
Lens' ListWorldGenerationJobsResponse (Maybe Text)
listWorldGenerationJobsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListWorldGenerationJobsResponse
-> Const (First Text) ListWorldGenerationJobsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListWorldGenerationJobsResponse 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 ListWorldGenerationJobs where
type
AWSResponse ListWorldGenerationJobs =
ListWorldGenerationJobsResponse
request :: ListWorldGenerationJobs -> Request ListWorldGenerationJobs
request = Service
-> ListWorldGenerationJobs -> Request ListWorldGenerationJobs
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListWorldGenerationJobs
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListWorldGenerationJobs)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListWorldGenerationJobs))
-> Logger
-> Service
-> Proxy ListWorldGenerationJobs
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListWorldGenerationJobs)))
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
-> Int
-> [WorldGenerationJobSummary]
-> ListWorldGenerationJobsResponse
ListWorldGenerationJobsResponse'
(Maybe Text
-> Int
-> [WorldGenerationJobSummary]
-> ListWorldGenerationJobsResponse)
-> Either String (Maybe Text)
-> Either
String
(Int
-> [WorldGenerationJobSummary] -> ListWorldGenerationJobsResponse)
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
(Int
-> [WorldGenerationJobSummary] -> ListWorldGenerationJobsResponse)
-> Either String Int
-> Either
String
([WorldGenerationJobSummary] -> ListWorldGenerationJobsResponse)
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))
Either
String
([WorldGenerationJobSummary] -> ListWorldGenerationJobsResponse)
-> Either String [WorldGenerationJobSummary]
-> Either String ListWorldGenerationJobsResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Either String (Maybe [WorldGenerationJobSummary])
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"worldGenerationJobSummaries"
Either String (Maybe [WorldGenerationJobSummary])
-> [WorldGenerationJobSummary]
-> Either String [WorldGenerationJobSummary]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [WorldGenerationJobSummary]
forall a. Monoid a => a
Prelude.mempty
)
)
instance Prelude.Hashable ListWorldGenerationJobs
instance Prelude.NFData ListWorldGenerationJobs
instance Core.ToHeaders ListWorldGenerationJobs where
toHeaders :: ListWorldGenerationJobs -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListWorldGenerationJobs -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ 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 ListWorldGenerationJobs where
toJSON :: ListWorldGenerationJobs -> Value
toJSON ListWorldGenerationJobs' {Maybe Int
Maybe (NonEmpty Filter)
Maybe Text
maxResults :: Maybe Int
nextToken :: Maybe Text
filters :: Maybe (NonEmpty Filter)
$sel:maxResults:ListWorldGenerationJobs' :: ListWorldGenerationJobs -> Maybe Int
$sel:nextToken:ListWorldGenerationJobs' :: ListWorldGenerationJobs -> Maybe Text
$sel:filters:ListWorldGenerationJobs' :: ListWorldGenerationJobs -> Maybe (NonEmpty Filter)
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"filters" Text -> NonEmpty Filter -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (NonEmpty Filter -> Pair) -> Maybe (NonEmpty Filter) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (NonEmpty 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 -> 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
]
)
instance Core.ToPath ListWorldGenerationJobs where
toPath :: ListWorldGenerationJobs -> ByteString
toPath = ByteString -> ListWorldGenerationJobs -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/listWorldGenerationJobs"
instance Core.ToQuery ListWorldGenerationJobs where
toQuery :: ListWorldGenerationJobs -> QueryString
toQuery = QueryString -> ListWorldGenerationJobs -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListWorldGenerationJobsResponse = ListWorldGenerationJobsResponse'
{
ListWorldGenerationJobsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListWorldGenerationJobsResponse -> Int
httpStatus :: Prelude.Int,
ListWorldGenerationJobsResponse -> [WorldGenerationJobSummary]
worldGenerationJobSummaries :: [WorldGenerationJobSummary]
}
deriving (ListWorldGenerationJobsResponse
-> ListWorldGenerationJobsResponse -> Bool
(ListWorldGenerationJobsResponse
-> ListWorldGenerationJobsResponse -> Bool)
-> (ListWorldGenerationJobsResponse
-> ListWorldGenerationJobsResponse -> Bool)
-> Eq ListWorldGenerationJobsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListWorldGenerationJobsResponse
-> ListWorldGenerationJobsResponse -> Bool
$c/= :: ListWorldGenerationJobsResponse
-> ListWorldGenerationJobsResponse -> Bool
== :: ListWorldGenerationJobsResponse
-> ListWorldGenerationJobsResponse -> Bool
$c== :: ListWorldGenerationJobsResponse
-> ListWorldGenerationJobsResponse -> Bool
Prelude.Eq, ReadPrec [ListWorldGenerationJobsResponse]
ReadPrec ListWorldGenerationJobsResponse
Int -> ReadS ListWorldGenerationJobsResponse
ReadS [ListWorldGenerationJobsResponse]
(Int -> ReadS ListWorldGenerationJobsResponse)
-> ReadS [ListWorldGenerationJobsResponse]
-> ReadPrec ListWorldGenerationJobsResponse
-> ReadPrec [ListWorldGenerationJobsResponse]
-> Read ListWorldGenerationJobsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListWorldGenerationJobsResponse]
$creadListPrec :: ReadPrec [ListWorldGenerationJobsResponse]
readPrec :: ReadPrec ListWorldGenerationJobsResponse
$creadPrec :: ReadPrec ListWorldGenerationJobsResponse
readList :: ReadS [ListWorldGenerationJobsResponse]
$creadList :: ReadS [ListWorldGenerationJobsResponse]
readsPrec :: Int -> ReadS ListWorldGenerationJobsResponse
$creadsPrec :: Int -> ReadS ListWorldGenerationJobsResponse
Prelude.Read, Int -> ListWorldGenerationJobsResponse -> ShowS
[ListWorldGenerationJobsResponse] -> ShowS
ListWorldGenerationJobsResponse -> String
(Int -> ListWorldGenerationJobsResponse -> ShowS)
-> (ListWorldGenerationJobsResponse -> String)
-> ([ListWorldGenerationJobsResponse] -> ShowS)
-> Show ListWorldGenerationJobsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListWorldGenerationJobsResponse] -> ShowS
$cshowList :: [ListWorldGenerationJobsResponse] -> ShowS
show :: ListWorldGenerationJobsResponse -> String
$cshow :: ListWorldGenerationJobsResponse -> String
showsPrec :: Int -> ListWorldGenerationJobsResponse -> ShowS
$cshowsPrec :: Int -> ListWorldGenerationJobsResponse -> ShowS
Prelude.Show, (forall x.
ListWorldGenerationJobsResponse
-> Rep ListWorldGenerationJobsResponse x)
-> (forall x.
Rep ListWorldGenerationJobsResponse x
-> ListWorldGenerationJobsResponse)
-> Generic ListWorldGenerationJobsResponse
forall x.
Rep ListWorldGenerationJobsResponse x
-> ListWorldGenerationJobsResponse
forall x.
ListWorldGenerationJobsResponse
-> Rep ListWorldGenerationJobsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListWorldGenerationJobsResponse x
-> ListWorldGenerationJobsResponse
$cfrom :: forall x.
ListWorldGenerationJobsResponse
-> Rep ListWorldGenerationJobsResponse x
Prelude.Generic)
newListWorldGenerationJobsResponse ::
Prelude.Int ->
ListWorldGenerationJobsResponse
newListWorldGenerationJobsResponse :: Int -> ListWorldGenerationJobsResponse
newListWorldGenerationJobsResponse Int
pHttpStatus_ =
ListWorldGenerationJobsResponse' :: Maybe Text
-> Int
-> [WorldGenerationJobSummary]
-> ListWorldGenerationJobsResponse
ListWorldGenerationJobsResponse'
{ $sel:nextToken:ListWorldGenerationJobsResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListWorldGenerationJobsResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:worldGenerationJobSummaries:ListWorldGenerationJobsResponse' :: [WorldGenerationJobSummary]
worldGenerationJobSummaries =
[WorldGenerationJobSummary]
forall a. Monoid a => a
Prelude.mempty
}
listWorldGenerationJobsResponse_nextToken :: Lens.Lens' ListWorldGenerationJobsResponse (Prelude.Maybe Prelude.Text)
listWorldGenerationJobsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListWorldGenerationJobsResponse
-> f ListWorldGenerationJobsResponse
listWorldGenerationJobsResponse_nextToken = (ListWorldGenerationJobsResponse -> Maybe Text)
-> (ListWorldGenerationJobsResponse
-> Maybe Text -> ListWorldGenerationJobsResponse)
-> Lens' ListWorldGenerationJobsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListWorldGenerationJobsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListWorldGenerationJobsResponse' :: ListWorldGenerationJobsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListWorldGenerationJobsResponse
s@ListWorldGenerationJobsResponse' {} Maybe Text
a -> ListWorldGenerationJobsResponse
s {$sel:nextToken:ListWorldGenerationJobsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListWorldGenerationJobsResponse)
listWorldGenerationJobsResponse_httpStatus :: Lens.Lens' ListWorldGenerationJobsResponse Prelude.Int
listWorldGenerationJobsResponse_httpStatus :: (Int -> f Int)
-> ListWorldGenerationJobsResponse
-> f ListWorldGenerationJobsResponse
listWorldGenerationJobsResponse_httpStatus = (ListWorldGenerationJobsResponse -> Int)
-> (ListWorldGenerationJobsResponse
-> Int -> ListWorldGenerationJobsResponse)
-> Lens
ListWorldGenerationJobsResponse
ListWorldGenerationJobsResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListWorldGenerationJobsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListWorldGenerationJobsResponse' :: ListWorldGenerationJobsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListWorldGenerationJobsResponse
s@ListWorldGenerationJobsResponse' {} Int
a -> ListWorldGenerationJobsResponse
s {$sel:httpStatus:ListWorldGenerationJobsResponse' :: Int
httpStatus = Int
a} :: ListWorldGenerationJobsResponse)
listWorldGenerationJobsResponse_worldGenerationJobSummaries :: Lens.Lens' ListWorldGenerationJobsResponse [WorldGenerationJobSummary]
listWorldGenerationJobsResponse_worldGenerationJobSummaries :: ([WorldGenerationJobSummary] -> f [WorldGenerationJobSummary])
-> ListWorldGenerationJobsResponse
-> f ListWorldGenerationJobsResponse
listWorldGenerationJobsResponse_worldGenerationJobSummaries = (ListWorldGenerationJobsResponse -> [WorldGenerationJobSummary])
-> (ListWorldGenerationJobsResponse
-> [WorldGenerationJobSummary] -> ListWorldGenerationJobsResponse)
-> Lens'
ListWorldGenerationJobsResponse [WorldGenerationJobSummary]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListWorldGenerationJobsResponse' {[WorldGenerationJobSummary]
worldGenerationJobSummaries :: [WorldGenerationJobSummary]
$sel:worldGenerationJobSummaries:ListWorldGenerationJobsResponse' :: ListWorldGenerationJobsResponse -> [WorldGenerationJobSummary]
worldGenerationJobSummaries} -> [WorldGenerationJobSummary]
worldGenerationJobSummaries) (\s :: ListWorldGenerationJobsResponse
s@ListWorldGenerationJobsResponse' {} [WorldGenerationJobSummary]
a -> ListWorldGenerationJobsResponse
s {$sel:worldGenerationJobSummaries:ListWorldGenerationJobsResponse' :: [WorldGenerationJobSummary]
worldGenerationJobSummaries = [WorldGenerationJobSummary]
a} :: ListWorldGenerationJobsResponse) (([WorldGenerationJobSummary] -> f [WorldGenerationJobSummary])
-> ListWorldGenerationJobsResponse
-> f ListWorldGenerationJobsResponse)
-> (([WorldGenerationJobSummary] -> f [WorldGenerationJobSummary])
-> [WorldGenerationJobSummary] -> f [WorldGenerationJobSummary])
-> ([WorldGenerationJobSummary] -> f [WorldGenerationJobSummary])
-> ListWorldGenerationJobsResponse
-> f ListWorldGenerationJobsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([WorldGenerationJobSummary] -> f [WorldGenerationJobSummary])
-> [WorldGenerationJobSummary] -> f [WorldGenerationJobSummary]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance
Prelude.NFData
ListWorldGenerationJobsResponse