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