{-# 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.AppSync.ListTypes
(
ListTypes (..),
newListTypes,
listTypes_nextToken,
listTypes_maxResults,
listTypes_apiId,
listTypes_format,
ListTypesResponse (..),
newListTypesResponse,
listTypesResponse_types,
listTypesResponse_nextToken,
listTypesResponse_httpStatus,
)
where
import Amazonka.AppSync.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 ListTypes = ListTypes'
{
ListTypes -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListTypes -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
ListTypes -> Text
apiId :: Prelude.Text,
ListTypes -> TypeDefinitionFormat
format :: TypeDefinitionFormat
}
deriving (ListTypes -> ListTypes -> Bool
(ListTypes -> ListTypes -> Bool)
-> (ListTypes -> ListTypes -> Bool) -> Eq ListTypes
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListTypes -> ListTypes -> Bool
$c/= :: ListTypes -> ListTypes -> Bool
== :: ListTypes -> ListTypes -> Bool
$c== :: ListTypes -> ListTypes -> Bool
Prelude.Eq, ReadPrec [ListTypes]
ReadPrec ListTypes
Int -> ReadS ListTypes
ReadS [ListTypes]
(Int -> ReadS ListTypes)
-> ReadS [ListTypes]
-> ReadPrec ListTypes
-> ReadPrec [ListTypes]
-> Read ListTypes
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListTypes]
$creadListPrec :: ReadPrec [ListTypes]
readPrec :: ReadPrec ListTypes
$creadPrec :: ReadPrec ListTypes
readList :: ReadS [ListTypes]
$creadList :: ReadS [ListTypes]
readsPrec :: Int -> ReadS ListTypes
$creadsPrec :: Int -> ReadS ListTypes
Prelude.Read, Int -> ListTypes -> ShowS
[ListTypes] -> ShowS
ListTypes -> String
(Int -> ListTypes -> ShowS)
-> (ListTypes -> String)
-> ([ListTypes] -> ShowS)
-> Show ListTypes
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListTypes] -> ShowS
$cshowList :: [ListTypes] -> ShowS
show :: ListTypes -> String
$cshow :: ListTypes -> String
showsPrec :: Int -> ListTypes -> ShowS
$cshowsPrec :: Int -> ListTypes -> ShowS
Prelude.Show, (forall x. ListTypes -> Rep ListTypes x)
-> (forall x. Rep ListTypes x -> ListTypes) -> Generic ListTypes
forall x. Rep ListTypes x -> ListTypes
forall x. ListTypes -> Rep ListTypes x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListTypes x -> ListTypes
$cfrom :: forall x. ListTypes -> Rep ListTypes x
Prelude.Generic)
newListTypes ::
Prelude.Text ->
TypeDefinitionFormat ->
ListTypes
newListTypes :: Text -> TypeDefinitionFormat -> ListTypes
newListTypes Text
pApiId_ TypeDefinitionFormat
pFormat_ =
ListTypes' :: Maybe Text
-> Maybe Natural -> Text -> TypeDefinitionFormat -> ListTypes
ListTypes'
{ $sel:nextToken:ListTypes' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListTypes' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:apiId:ListTypes' :: Text
apiId = Text
pApiId_,
$sel:format:ListTypes' :: TypeDefinitionFormat
format = TypeDefinitionFormat
pFormat_
}
listTypes_nextToken :: Lens.Lens' ListTypes (Prelude.Maybe Prelude.Text)
listTypes_nextToken :: (Maybe Text -> f (Maybe Text)) -> ListTypes -> f ListTypes
listTypes_nextToken = (ListTypes -> Maybe Text)
-> (ListTypes -> Maybe Text -> ListTypes)
-> Lens ListTypes ListTypes (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTypes' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListTypes' :: ListTypes -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListTypes
s@ListTypes' {} Maybe Text
a -> ListTypes
s {$sel:nextToken:ListTypes' :: Maybe Text
nextToken = Maybe Text
a} :: ListTypes)
listTypes_maxResults :: Lens.Lens' ListTypes (Prelude.Maybe Prelude.Natural)
listTypes_maxResults :: (Maybe Natural -> f (Maybe Natural)) -> ListTypes -> f ListTypes
listTypes_maxResults = (ListTypes -> Maybe Natural)
-> (ListTypes -> Maybe Natural -> ListTypes)
-> Lens ListTypes ListTypes (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTypes' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListTypes' :: ListTypes -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListTypes
s@ListTypes' {} Maybe Natural
a -> ListTypes
s {$sel:maxResults:ListTypes' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListTypes)
listTypes_apiId :: Lens.Lens' ListTypes Prelude.Text
listTypes_apiId :: (Text -> f Text) -> ListTypes -> f ListTypes
listTypes_apiId = (ListTypes -> Text)
-> (ListTypes -> Text -> ListTypes)
-> Lens ListTypes ListTypes Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTypes' {Text
apiId :: Text
$sel:apiId:ListTypes' :: ListTypes -> Text
apiId} -> Text
apiId) (\s :: ListTypes
s@ListTypes' {} Text
a -> ListTypes
s {$sel:apiId:ListTypes' :: Text
apiId = Text
a} :: ListTypes)
listTypes_format :: Lens.Lens' ListTypes TypeDefinitionFormat
listTypes_format :: (TypeDefinitionFormat -> f TypeDefinitionFormat)
-> ListTypes -> f ListTypes
listTypes_format = (ListTypes -> TypeDefinitionFormat)
-> (ListTypes -> TypeDefinitionFormat -> ListTypes)
-> Lens
ListTypes ListTypes TypeDefinitionFormat TypeDefinitionFormat
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTypes' {TypeDefinitionFormat
format :: TypeDefinitionFormat
$sel:format:ListTypes' :: ListTypes -> TypeDefinitionFormat
format} -> TypeDefinitionFormat
format) (\s :: ListTypes
s@ListTypes' {} TypeDefinitionFormat
a -> ListTypes
s {$sel:format:ListTypes' :: TypeDefinitionFormat
format = TypeDefinitionFormat
a} :: ListTypes)
instance Core.AWSPager ListTypes where
page :: ListTypes -> AWSResponse ListTypes -> Maybe ListTypes
page ListTypes
rq AWSResponse ListTypes
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListTypes
ListTypesResponse
rs
ListTypesResponse
-> Getting (First Text) ListTypesResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListTypesResponse -> Const (First Text) ListTypesResponse
Lens' ListTypesResponse (Maybe Text)
listTypesResponse_nextToken ((Maybe Text -> Const (First Text) (Maybe Text))
-> ListTypesResponse -> Const (First Text) ListTypesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListTypesResponse 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 ListTypes
forall a. Maybe a
Prelude.Nothing
| Maybe [Type] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListTypes
ListTypesResponse
rs
ListTypesResponse
-> Getting (First [Type]) ListTypesResponse [Type] -> Maybe [Type]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [Type] -> Const (First [Type]) (Maybe [Type]))
-> ListTypesResponse -> Const (First [Type]) ListTypesResponse
Lens' ListTypesResponse (Maybe [Type])
listTypesResponse_types ((Maybe [Type] -> Const (First [Type]) (Maybe [Type]))
-> ListTypesResponse -> Const (First [Type]) ListTypesResponse)
-> (([Type] -> Const (First [Type]) [Type])
-> Maybe [Type] -> Const (First [Type]) (Maybe [Type]))
-> Getting (First [Type]) ListTypesResponse [Type]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([Type] -> Const (First [Type]) [Type])
-> Maybe [Type] -> Const (First [Type]) (Maybe [Type])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListTypes
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListTypes -> Maybe ListTypes
forall a. a -> Maybe a
Prelude.Just (ListTypes -> Maybe ListTypes) -> ListTypes -> Maybe ListTypes
forall a b. (a -> b) -> a -> b
Prelude.$
ListTypes
rq
ListTypes -> (ListTypes -> ListTypes) -> ListTypes
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListTypes -> Identity ListTypes
Lens ListTypes ListTypes (Maybe Text) (Maybe Text)
listTypes_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListTypes -> Identity ListTypes)
-> Maybe Text -> ListTypes -> ListTypes
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListTypes
ListTypesResponse
rs
ListTypesResponse
-> Getting (First Text) ListTypesResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListTypesResponse -> Const (First Text) ListTypesResponse
Lens' ListTypesResponse (Maybe Text)
listTypesResponse_nextToken ((Maybe Text -> Const (First Text) (Maybe Text))
-> ListTypesResponse -> Const (First Text) ListTypesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListTypesResponse 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 ListTypes where
type AWSResponse ListTypes = ListTypesResponse
request :: ListTypes -> Request ListTypes
request = Service -> ListTypes -> Request ListTypes
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy ListTypes
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListTypes)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListTypes))
-> Logger
-> Service
-> Proxy ListTypes
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListTypes)))
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 [Type] -> Maybe Text -> Int -> ListTypesResponse
ListTypesResponse'
(Maybe [Type] -> Maybe Text -> Int -> ListTypesResponse)
-> Either String (Maybe [Type])
-> Either String (Maybe Text -> Int -> ListTypesResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe (Maybe [Type]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"types" Either String (Maybe (Maybe [Type]))
-> Maybe [Type] -> Either String (Maybe [Type])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Type]
forall a. Monoid a => a
Prelude.mempty)
Either String (Maybe Text -> Int -> ListTypesResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListTypesResponse)
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 -> ListTypesResponse)
-> Either String Int -> Either String ListTypesResponse
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 ListTypes
instance Prelude.NFData ListTypes
instance Core.ToHeaders ListTypes where
toHeaders :: ListTypes -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListTypes -> 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.ToPath ListTypes where
toPath :: ListTypes -> ByteString
toPath ListTypes' {Maybe Natural
Maybe Text
Text
TypeDefinitionFormat
format :: TypeDefinitionFormat
apiId :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:format:ListTypes' :: ListTypes -> TypeDefinitionFormat
$sel:apiId:ListTypes' :: ListTypes -> Text
$sel:maxResults:ListTypes' :: ListTypes -> Maybe Natural
$sel:nextToken:ListTypes' :: ListTypes -> Maybe Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ByteString
"/v1/apis/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
apiId, ByteString
"/types"]
instance Core.ToQuery ListTypes where
toQuery :: ListTypes -> QueryString
toQuery ListTypes' {Maybe Natural
Maybe Text
Text
TypeDefinitionFormat
format :: TypeDefinitionFormat
apiId :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:format:ListTypes' :: ListTypes -> TypeDefinitionFormat
$sel:apiId:ListTypes' :: ListTypes -> Text
$sel:maxResults:ListTypes' :: ListTypes -> Maybe Natural
$sel:nextToken:ListTypes' :: ListTypes -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"nextToken" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
nextToken,
ByteString
"maxResults" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxResults,
ByteString
"format" ByteString -> TypeDefinitionFormat -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: TypeDefinitionFormat
format
]
data ListTypesResponse = ListTypesResponse'
{
ListTypesResponse -> Maybe [Type]
types :: Prelude.Maybe [Type],
ListTypesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListTypesResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListTypesResponse -> ListTypesResponse -> Bool
(ListTypesResponse -> ListTypesResponse -> Bool)
-> (ListTypesResponse -> ListTypesResponse -> Bool)
-> Eq ListTypesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListTypesResponse -> ListTypesResponse -> Bool
$c/= :: ListTypesResponse -> ListTypesResponse -> Bool
== :: ListTypesResponse -> ListTypesResponse -> Bool
$c== :: ListTypesResponse -> ListTypesResponse -> Bool
Prelude.Eq, ReadPrec [ListTypesResponse]
ReadPrec ListTypesResponse
Int -> ReadS ListTypesResponse
ReadS [ListTypesResponse]
(Int -> ReadS ListTypesResponse)
-> ReadS [ListTypesResponse]
-> ReadPrec ListTypesResponse
-> ReadPrec [ListTypesResponse]
-> Read ListTypesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListTypesResponse]
$creadListPrec :: ReadPrec [ListTypesResponse]
readPrec :: ReadPrec ListTypesResponse
$creadPrec :: ReadPrec ListTypesResponse
readList :: ReadS [ListTypesResponse]
$creadList :: ReadS [ListTypesResponse]
readsPrec :: Int -> ReadS ListTypesResponse
$creadsPrec :: Int -> ReadS ListTypesResponse
Prelude.Read, Int -> ListTypesResponse -> ShowS
[ListTypesResponse] -> ShowS
ListTypesResponse -> String
(Int -> ListTypesResponse -> ShowS)
-> (ListTypesResponse -> String)
-> ([ListTypesResponse] -> ShowS)
-> Show ListTypesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListTypesResponse] -> ShowS
$cshowList :: [ListTypesResponse] -> ShowS
show :: ListTypesResponse -> String
$cshow :: ListTypesResponse -> String
showsPrec :: Int -> ListTypesResponse -> ShowS
$cshowsPrec :: Int -> ListTypesResponse -> ShowS
Prelude.Show, (forall x. ListTypesResponse -> Rep ListTypesResponse x)
-> (forall x. Rep ListTypesResponse x -> ListTypesResponse)
-> Generic ListTypesResponse
forall x. Rep ListTypesResponse x -> ListTypesResponse
forall x. ListTypesResponse -> Rep ListTypesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListTypesResponse x -> ListTypesResponse
$cfrom :: forall x. ListTypesResponse -> Rep ListTypesResponse x
Prelude.Generic)
newListTypesResponse ::
Prelude.Int ->
ListTypesResponse
newListTypesResponse :: Int -> ListTypesResponse
newListTypesResponse Int
pHttpStatus_ =
ListTypesResponse' :: Maybe [Type] -> Maybe Text -> Int -> ListTypesResponse
ListTypesResponse'
{ $sel:types:ListTypesResponse' :: Maybe [Type]
types = Maybe [Type]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListTypesResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListTypesResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listTypesResponse_types :: Lens.Lens' ListTypesResponse (Prelude.Maybe [Type])
listTypesResponse_types :: (Maybe [Type] -> f (Maybe [Type]))
-> ListTypesResponse -> f ListTypesResponse
listTypesResponse_types = (ListTypesResponse -> Maybe [Type])
-> (ListTypesResponse -> Maybe [Type] -> ListTypesResponse)
-> Lens' ListTypesResponse (Maybe [Type])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTypesResponse' {Maybe [Type]
types :: Maybe [Type]
$sel:types:ListTypesResponse' :: ListTypesResponse -> Maybe [Type]
types} -> Maybe [Type]
types) (\s :: ListTypesResponse
s@ListTypesResponse' {} Maybe [Type]
a -> ListTypesResponse
s {$sel:types:ListTypesResponse' :: Maybe [Type]
types = Maybe [Type]
a} :: ListTypesResponse) ((Maybe [Type] -> f (Maybe [Type]))
-> ListTypesResponse -> f ListTypesResponse)
-> ((Maybe [Type] -> f (Maybe [Type]))
-> Maybe [Type] -> f (Maybe [Type]))
-> (Maybe [Type] -> f (Maybe [Type]))
-> ListTypesResponse
-> f ListTypesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Type] [Type] [Type] [Type]
-> Iso (Maybe [Type]) (Maybe [Type]) (Maybe [Type]) (Maybe [Type])
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 [Type] [Type] [Type] [Type]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listTypesResponse_nextToken :: Lens.Lens' ListTypesResponse (Prelude.Maybe Prelude.Text)
listTypesResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListTypesResponse -> f ListTypesResponse
listTypesResponse_nextToken = (ListTypesResponse -> Maybe Text)
-> (ListTypesResponse -> Maybe Text -> ListTypesResponse)
-> Lens' ListTypesResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTypesResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListTypesResponse' :: ListTypesResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListTypesResponse
s@ListTypesResponse' {} Maybe Text
a -> ListTypesResponse
s {$sel:nextToken:ListTypesResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListTypesResponse)
listTypesResponse_httpStatus :: Lens.Lens' ListTypesResponse Prelude.Int
listTypesResponse_httpStatus :: (Int -> f Int) -> ListTypesResponse -> f ListTypesResponse
listTypesResponse_httpStatus = (ListTypesResponse -> Int)
-> (ListTypesResponse -> Int -> ListTypesResponse)
-> Lens ListTypesResponse ListTypesResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTypesResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListTypesResponse' :: ListTypesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListTypesResponse
s@ListTypesResponse' {} Int
a -> ListTypesResponse
s {$sel:httpStatus:ListTypesResponse' :: Int
httpStatus = Int
a} :: ListTypesResponse)
instance Prelude.NFData ListTypesResponse