{-# 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.LexModels.GetBuiltinSlotTypes
(
GetBuiltinSlotTypes (..),
newGetBuiltinSlotTypes,
getBuiltinSlotTypes_locale,
getBuiltinSlotTypes_nextToken,
getBuiltinSlotTypes_signatureContains,
getBuiltinSlotTypes_maxResults,
GetBuiltinSlotTypesResponse (..),
newGetBuiltinSlotTypesResponse,
getBuiltinSlotTypesResponse_nextToken,
getBuiltinSlotTypesResponse_slotTypes,
getBuiltinSlotTypesResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.LexModels.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data GetBuiltinSlotTypes = GetBuiltinSlotTypes'
{
GetBuiltinSlotTypes -> Maybe Locale
locale :: Prelude.Maybe Locale,
GetBuiltinSlotTypes -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetBuiltinSlotTypes -> Maybe Text
signatureContains :: Prelude.Maybe Prelude.Text,
GetBuiltinSlotTypes -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
}
deriving (GetBuiltinSlotTypes -> GetBuiltinSlotTypes -> Bool
(GetBuiltinSlotTypes -> GetBuiltinSlotTypes -> Bool)
-> (GetBuiltinSlotTypes -> GetBuiltinSlotTypes -> Bool)
-> Eq GetBuiltinSlotTypes
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetBuiltinSlotTypes -> GetBuiltinSlotTypes -> Bool
$c/= :: GetBuiltinSlotTypes -> GetBuiltinSlotTypes -> Bool
== :: GetBuiltinSlotTypes -> GetBuiltinSlotTypes -> Bool
$c== :: GetBuiltinSlotTypes -> GetBuiltinSlotTypes -> Bool
Prelude.Eq, ReadPrec [GetBuiltinSlotTypes]
ReadPrec GetBuiltinSlotTypes
Int -> ReadS GetBuiltinSlotTypes
ReadS [GetBuiltinSlotTypes]
(Int -> ReadS GetBuiltinSlotTypes)
-> ReadS [GetBuiltinSlotTypes]
-> ReadPrec GetBuiltinSlotTypes
-> ReadPrec [GetBuiltinSlotTypes]
-> Read GetBuiltinSlotTypes
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetBuiltinSlotTypes]
$creadListPrec :: ReadPrec [GetBuiltinSlotTypes]
readPrec :: ReadPrec GetBuiltinSlotTypes
$creadPrec :: ReadPrec GetBuiltinSlotTypes
readList :: ReadS [GetBuiltinSlotTypes]
$creadList :: ReadS [GetBuiltinSlotTypes]
readsPrec :: Int -> ReadS GetBuiltinSlotTypes
$creadsPrec :: Int -> ReadS GetBuiltinSlotTypes
Prelude.Read, Int -> GetBuiltinSlotTypes -> ShowS
[GetBuiltinSlotTypes] -> ShowS
GetBuiltinSlotTypes -> String
(Int -> GetBuiltinSlotTypes -> ShowS)
-> (GetBuiltinSlotTypes -> String)
-> ([GetBuiltinSlotTypes] -> ShowS)
-> Show GetBuiltinSlotTypes
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetBuiltinSlotTypes] -> ShowS
$cshowList :: [GetBuiltinSlotTypes] -> ShowS
show :: GetBuiltinSlotTypes -> String
$cshow :: GetBuiltinSlotTypes -> String
showsPrec :: Int -> GetBuiltinSlotTypes -> ShowS
$cshowsPrec :: Int -> GetBuiltinSlotTypes -> ShowS
Prelude.Show, (forall x. GetBuiltinSlotTypes -> Rep GetBuiltinSlotTypes x)
-> (forall x. Rep GetBuiltinSlotTypes x -> GetBuiltinSlotTypes)
-> Generic GetBuiltinSlotTypes
forall x. Rep GetBuiltinSlotTypes x -> GetBuiltinSlotTypes
forall x. GetBuiltinSlotTypes -> Rep GetBuiltinSlotTypes x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetBuiltinSlotTypes x -> GetBuiltinSlotTypes
$cfrom :: forall x. GetBuiltinSlotTypes -> Rep GetBuiltinSlotTypes x
Prelude.Generic)
newGetBuiltinSlotTypes ::
GetBuiltinSlotTypes
newGetBuiltinSlotTypes :: GetBuiltinSlotTypes
newGetBuiltinSlotTypes =
GetBuiltinSlotTypes' :: Maybe Locale
-> Maybe Text -> Maybe Text -> Maybe Natural -> GetBuiltinSlotTypes
GetBuiltinSlotTypes'
{ $sel:locale:GetBuiltinSlotTypes' :: Maybe Locale
locale = Maybe Locale
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:GetBuiltinSlotTypes' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:signatureContains:GetBuiltinSlotTypes' :: Maybe Text
signatureContains = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:GetBuiltinSlotTypes' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
getBuiltinSlotTypes_locale :: Lens.Lens' GetBuiltinSlotTypes (Prelude.Maybe Locale)
getBuiltinSlotTypes_locale :: (Maybe Locale -> f (Maybe Locale))
-> GetBuiltinSlotTypes -> f GetBuiltinSlotTypes
getBuiltinSlotTypes_locale = (GetBuiltinSlotTypes -> Maybe Locale)
-> (GetBuiltinSlotTypes -> Maybe Locale -> GetBuiltinSlotTypes)
-> Lens
GetBuiltinSlotTypes
GetBuiltinSlotTypes
(Maybe Locale)
(Maybe Locale)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetBuiltinSlotTypes' {Maybe Locale
locale :: Maybe Locale
$sel:locale:GetBuiltinSlotTypes' :: GetBuiltinSlotTypes -> Maybe Locale
locale} -> Maybe Locale
locale) (\s :: GetBuiltinSlotTypes
s@GetBuiltinSlotTypes' {} Maybe Locale
a -> GetBuiltinSlotTypes
s {$sel:locale:GetBuiltinSlotTypes' :: Maybe Locale
locale = Maybe Locale
a} :: GetBuiltinSlotTypes)
getBuiltinSlotTypes_nextToken :: Lens.Lens' GetBuiltinSlotTypes (Prelude.Maybe Prelude.Text)
getBuiltinSlotTypes_nextToken :: (Maybe Text -> f (Maybe Text))
-> GetBuiltinSlotTypes -> f GetBuiltinSlotTypes
getBuiltinSlotTypes_nextToken = (GetBuiltinSlotTypes -> Maybe Text)
-> (GetBuiltinSlotTypes -> Maybe Text -> GetBuiltinSlotTypes)
-> Lens
GetBuiltinSlotTypes GetBuiltinSlotTypes (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetBuiltinSlotTypes' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetBuiltinSlotTypes' :: GetBuiltinSlotTypes -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetBuiltinSlotTypes
s@GetBuiltinSlotTypes' {} Maybe Text
a -> GetBuiltinSlotTypes
s {$sel:nextToken:GetBuiltinSlotTypes' :: Maybe Text
nextToken = Maybe Text
a} :: GetBuiltinSlotTypes)
getBuiltinSlotTypes_signatureContains :: Lens.Lens' GetBuiltinSlotTypes (Prelude.Maybe Prelude.Text)
getBuiltinSlotTypes_signatureContains :: (Maybe Text -> f (Maybe Text))
-> GetBuiltinSlotTypes -> f GetBuiltinSlotTypes
getBuiltinSlotTypes_signatureContains = (GetBuiltinSlotTypes -> Maybe Text)
-> (GetBuiltinSlotTypes -> Maybe Text -> GetBuiltinSlotTypes)
-> Lens
GetBuiltinSlotTypes GetBuiltinSlotTypes (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetBuiltinSlotTypes' {Maybe Text
signatureContains :: Maybe Text
$sel:signatureContains:GetBuiltinSlotTypes' :: GetBuiltinSlotTypes -> Maybe Text
signatureContains} -> Maybe Text
signatureContains) (\s :: GetBuiltinSlotTypes
s@GetBuiltinSlotTypes' {} Maybe Text
a -> GetBuiltinSlotTypes
s {$sel:signatureContains:GetBuiltinSlotTypes' :: Maybe Text
signatureContains = Maybe Text
a} :: GetBuiltinSlotTypes)
getBuiltinSlotTypes_maxResults :: Lens.Lens' GetBuiltinSlotTypes (Prelude.Maybe Prelude.Natural)
getBuiltinSlotTypes_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> GetBuiltinSlotTypes -> f GetBuiltinSlotTypes
getBuiltinSlotTypes_maxResults = (GetBuiltinSlotTypes -> Maybe Natural)
-> (GetBuiltinSlotTypes -> Maybe Natural -> GetBuiltinSlotTypes)
-> Lens
GetBuiltinSlotTypes
GetBuiltinSlotTypes
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetBuiltinSlotTypes' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:GetBuiltinSlotTypes' :: GetBuiltinSlotTypes -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: GetBuiltinSlotTypes
s@GetBuiltinSlotTypes' {} Maybe Natural
a -> GetBuiltinSlotTypes
s {$sel:maxResults:GetBuiltinSlotTypes' :: Maybe Natural
maxResults = Maybe Natural
a} :: GetBuiltinSlotTypes)
instance Core.AWSPager GetBuiltinSlotTypes where
page :: GetBuiltinSlotTypes
-> AWSResponse GetBuiltinSlotTypes -> Maybe GetBuiltinSlotTypes
page GetBuiltinSlotTypes
rq AWSResponse GetBuiltinSlotTypes
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse GetBuiltinSlotTypes
GetBuiltinSlotTypesResponse
rs
GetBuiltinSlotTypesResponse
-> Getting (First Text) GetBuiltinSlotTypesResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> GetBuiltinSlotTypesResponse
-> Const (First Text) GetBuiltinSlotTypesResponse
Lens' GetBuiltinSlotTypesResponse (Maybe Text)
getBuiltinSlotTypesResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> GetBuiltinSlotTypesResponse
-> Const (First Text) GetBuiltinSlotTypesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) GetBuiltinSlotTypesResponse 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 GetBuiltinSlotTypes
forall a. Maybe a
Prelude.Nothing
| Maybe [BuiltinSlotTypeMetadata] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse GetBuiltinSlotTypes
GetBuiltinSlotTypesResponse
rs
GetBuiltinSlotTypesResponse
-> Getting
(First [BuiltinSlotTypeMetadata])
GetBuiltinSlotTypesResponse
[BuiltinSlotTypeMetadata]
-> Maybe [BuiltinSlotTypeMetadata]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [BuiltinSlotTypeMetadata]
-> Const
(First [BuiltinSlotTypeMetadata])
(Maybe [BuiltinSlotTypeMetadata]))
-> GetBuiltinSlotTypesResponse
-> Const
(First [BuiltinSlotTypeMetadata]) GetBuiltinSlotTypesResponse
Lens' GetBuiltinSlotTypesResponse (Maybe [BuiltinSlotTypeMetadata])
getBuiltinSlotTypesResponse_slotTypes
((Maybe [BuiltinSlotTypeMetadata]
-> Const
(First [BuiltinSlotTypeMetadata])
(Maybe [BuiltinSlotTypeMetadata]))
-> GetBuiltinSlotTypesResponse
-> Const
(First [BuiltinSlotTypeMetadata]) GetBuiltinSlotTypesResponse)
-> (([BuiltinSlotTypeMetadata]
-> Const
(First [BuiltinSlotTypeMetadata]) [BuiltinSlotTypeMetadata])
-> Maybe [BuiltinSlotTypeMetadata]
-> Const
(First [BuiltinSlotTypeMetadata])
(Maybe [BuiltinSlotTypeMetadata]))
-> Getting
(First [BuiltinSlotTypeMetadata])
GetBuiltinSlotTypesResponse
[BuiltinSlotTypeMetadata]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([BuiltinSlotTypeMetadata]
-> Const
(First [BuiltinSlotTypeMetadata]) [BuiltinSlotTypeMetadata])
-> Maybe [BuiltinSlotTypeMetadata]
-> Const
(First [BuiltinSlotTypeMetadata]) (Maybe [BuiltinSlotTypeMetadata])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe GetBuiltinSlotTypes
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
GetBuiltinSlotTypes -> Maybe GetBuiltinSlotTypes
forall a. a -> Maybe a
Prelude.Just (GetBuiltinSlotTypes -> Maybe GetBuiltinSlotTypes)
-> GetBuiltinSlotTypes -> Maybe GetBuiltinSlotTypes
forall a b. (a -> b) -> a -> b
Prelude.$
GetBuiltinSlotTypes
rq
GetBuiltinSlotTypes
-> (GetBuiltinSlotTypes -> GetBuiltinSlotTypes)
-> GetBuiltinSlotTypes
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> GetBuiltinSlotTypes -> Identity GetBuiltinSlotTypes
Lens
GetBuiltinSlotTypes GetBuiltinSlotTypes (Maybe Text) (Maybe Text)
getBuiltinSlotTypes_nextToken
((Maybe Text -> Identity (Maybe Text))
-> GetBuiltinSlotTypes -> Identity GetBuiltinSlotTypes)
-> Maybe Text -> GetBuiltinSlotTypes -> GetBuiltinSlotTypes
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse GetBuiltinSlotTypes
GetBuiltinSlotTypesResponse
rs
GetBuiltinSlotTypesResponse
-> Getting (First Text) GetBuiltinSlotTypesResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> GetBuiltinSlotTypesResponse
-> Const (First Text) GetBuiltinSlotTypesResponse
Lens' GetBuiltinSlotTypesResponse (Maybe Text)
getBuiltinSlotTypesResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> GetBuiltinSlotTypesResponse
-> Const (First Text) GetBuiltinSlotTypesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) GetBuiltinSlotTypesResponse 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 GetBuiltinSlotTypes where
type
AWSResponse GetBuiltinSlotTypes =
GetBuiltinSlotTypesResponse
request :: GetBuiltinSlotTypes -> Request GetBuiltinSlotTypes
request = Service -> GetBuiltinSlotTypes -> Request GetBuiltinSlotTypes
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy GetBuiltinSlotTypes
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetBuiltinSlotTypes)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetBuiltinSlotTypes))
-> Logger
-> Service
-> Proxy GetBuiltinSlotTypes
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetBuiltinSlotTypes)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe Text
-> Maybe [BuiltinSlotTypeMetadata]
-> Int
-> GetBuiltinSlotTypesResponse
GetBuiltinSlotTypesResponse'
(Maybe Text
-> Maybe [BuiltinSlotTypeMetadata]
-> Int
-> GetBuiltinSlotTypesResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [BuiltinSlotTypeMetadata]
-> Int -> GetBuiltinSlotTypesResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"nextToken")
Either
String
(Maybe [BuiltinSlotTypeMetadata]
-> Int -> GetBuiltinSlotTypesResponse)
-> Either String (Maybe [BuiltinSlotTypeMetadata])
-> Either String (Int -> GetBuiltinSlotTypesResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Either String (Maybe (Maybe [BuiltinSlotTypeMetadata]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"slotTypes" Either String (Maybe (Maybe [BuiltinSlotTypeMetadata]))
-> Maybe [BuiltinSlotTypeMetadata]
-> Either String (Maybe [BuiltinSlotTypeMetadata])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [BuiltinSlotTypeMetadata]
forall a. Monoid a => a
Prelude.mempty)
Either String (Int -> GetBuiltinSlotTypesResponse)
-> Either String Int -> Either String GetBuiltinSlotTypesResponse
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 GetBuiltinSlotTypes
instance Prelude.NFData GetBuiltinSlotTypes
instance Core.ToHeaders GetBuiltinSlotTypes where
toHeaders :: GetBuiltinSlotTypes -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetBuiltinSlotTypes -> 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 GetBuiltinSlotTypes where
toPath :: GetBuiltinSlotTypes -> ByteString
toPath = ByteString -> GetBuiltinSlotTypes -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/builtins/slottypes/"
instance Core.ToQuery GetBuiltinSlotTypes where
toQuery :: GetBuiltinSlotTypes -> QueryString
toQuery GetBuiltinSlotTypes' {Maybe Natural
Maybe Text
Maybe Locale
maxResults :: Maybe Natural
signatureContains :: Maybe Text
nextToken :: Maybe Text
locale :: Maybe Locale
$sel:maxResults:GetBuiltinSlotTypes' :: GetBuiltinSlotTypes -> Maybe Natural
$sel:signatureContains:GetBuiltinSlotTypes' :: GetBuiltinSlotTypes -> Maybe Text
$sel:nextToken:GetBuiltinSlotTypes' :: GetBuiltinSlotTypes -> Maybe Text
$sel:locale:GetBuiltinSlotTypes' :: GetBuiltinSlotTypes -> Maybe Locale
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"locale" ByteString -> Maybe Locale -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Locale
locale,
ByteString
"nextToken" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
nextToken,
ByteString
"signatureContains" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
signatureContains,
ByteString
"maxResults" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxResults
]
data GetBuiltinSlotTypesResponse = GetBuiltinSlotTypesResponse'
{
GetBuiltinSlotTypesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetBuiltinSlotTypesResponse -> Maybe [BuiltinSlotTypeMetadata]
slotTypes :: Prelude.Maybe [BuiltinSlotTypeMetadata],
GetBuiltinSlotTypesResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetBuiltinSlotTypesResponse -> GetBuiltinSlotTypesResponse -> Bool
(GetBuiltinSlotTypesResponse
-> GetBuiltinSlotTypesResponse -> Bool)
-> (GetBuiltinSlotTypesResponse
-> GetBuiltinSlotTypesResponse -> Bool)
-> Eq GetBuiltinSlotTypesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetBuiltinSlotTypesResponse -> GetBuiltinSlotTypesResponse -> Bool
$c/= :: GetBuiltinSlotTypesResponse -> GetBuiltinSlotTypesResponse -> Bool
== :: GetBuiltinSlotTypesResponse -> GetBuiltinSlotTypesResponse -> Bool
$c== :: GetBuiltinSlotTypesResponse -> GetBuiltinSlotTypesResponse -> Bool
Prelude.Eq, ReadPrec [GetBuiltinSlotTypesResponse]
ReadPrec GetBuiltinSlotTypesResponse
Int -> ReadS GetBuiltinSlotTypesResponse
ReadS [GetBuiltinSlotTypesResponse]
(Int -> ReadS GetBuiltinSlotTypesResponse)
-> ReadS [GetBuiltinSlotTypesResponse]
-> ReadPrec GetBuiltinSlotTypesResponse
-> ReadPrec [GetBuiltinSlotTypesResponse]
-> Read GetBuiltinSlotTypesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetBuiltinSlotTypesResponse]
$creadListPrec :: ReadPrec [GetBuiltinSlotTypesResponse]
readPrec :: ReadPrec GetBuiltinSlotTypesResponse
$creadPrec :: ReadPrec GetBuiltinSlotTypesResponse
readList :: ReadS [GetBuiltinSlotTypesResponse]
$creadList :: ReadS [GetBuiltinSlotTypesResponse]
readsPrec :: Int -> ReadS GetBuiltinSlotTypesResponse
$creadsPrec :: Int -> ReadS GetBuiltinSlotTypesResponse
Prelude.Read, Int -> GetBuiltinSlotTypesResponse -> ShowS
[GetBuiltinSlotTypesResponse] -> ShowS
GetBuiltinSlotTypesResponse -> String
(Int -> GetBuiltinSlotTypesResponse -> ShowS)
-> (GetBuiltinSlotTypesResponse -> String)
-> ([GetBuiltinSlotTypesResponse] -> ShowS)
-> Show GetBuiltinSlotTypesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetBuiltinSlotTypesResponse] -> ShowS
$cshowList :: [GetBuiltinSlotTypesResponse] -> ShowS
show :: GetBuiltinSlotTypesResponse -> String
$cshow :: GetBuiltinSlotTypesResponse -> String
showsPrec :: Int -> GetBuiltinSlotTypesResponse -> ShowS
$cshowsPrec :: Int -> GetBuiltinSlotTypesResponse -> ShowS
Prelude.Show, (forall x.
GetBuiltinSlotTypesResponse -> Rep GetBuiltinSlotTypesResponse x)
-> (forall x.
Rep GetBuiltinSlotTypesResponse x -> GetBuiltinSlotTypesResponse)
-> Generic GetBuiltinSlotTypesResponse
forall x.
Rep GetBuiltinSlotTypesResponse x -> GetBuiltinSlotTypesResponse
forall x.
GetBuiltinSlotTypesResponse -> Rep GetBuiltinSlotTypesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetBuiltinSlotTypesResponse x -> GetBuiltinSlotTypesResponse
$cfrom :: forall x.
GetBuiltinSlotTypesResponse -> Rep GetBuiltinSlotTypesResponse x
Prelude.Generic)
newGetBuiltinSlotTypesResponse ::
Prelude.Int ->
GetBuiltinSlotTypesResponse
newGetBuiltinSlotTypesResponse :: Int -> GetBuiltinSlotTypesResponse
newGetBuiltinSlotTypesResponse Int
pHttpStatus_ =
GetBuiltinSlotTypesResponse' :: Maybe Text
-> Maybe [BuiltinSlotTypeMetadata]
-> Int
-> GetBuiltinSlotTypesResponse
GetBuiltinSlotTypesResponse'
{ $sel:nextToken:GetBuiltinSlotTypesResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:slotTypes:GetBuiltinSlotTypesResponse' :: Maybe [BuiltinSlotTypeMetadata]
slotTypes = Maybe [BuiltinSlotTypeMetadata]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetBuiltinSlotTypesResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getBuiltinSlotTypesResponse_nextToken :: Lens.Lens' GetBuiltinSlotTypesResponse (Prelude.Maybe Prelude.Text)
getBuiltinSlotTypesResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> GetBuiltinSlotTypesResponse -> f GetBuiltinSlotTypesResponse
getBuiltinSlotTypesResponse_nextToken = (GetBuiltinSlotTypesResponse -> Maybe Text)
-> (GetBuiltinSlotTypesResponse
-> Maybe Text -> GetBuiltinSlotTypesResponse)
-> Lens' GetBuiltinSlotTypesResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetBuiltinSlotTypesResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetBuiltinSlotTypesResponse' :: GetBuiltinSlotTypesResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetBuiltinSlotTypesResponse
s@GetBuiltinSlotTypesResponse' {} Maybe Text
a -> GetBuiltinSlotTypesResponse
s {$sel:nextToken:GetBuiltinSlotTypesResponse' :: Maybe Text
nextToken = Maybe Text
a} :: GetBuiltinSlotTypesResponse)
getBuiltinSlotTypesResponse_slotTypes :: Lens.Lens' GetBuiltinSlotTypesResponse (Prelude.Maybe [BuiltinSlotTypeMetadata])
getBuiltinSlotTypesResponse_slotTypes :: (Maybe [BuiltinSlotTypeMetadata]
-> f (Maybe [BuiltinSlotTypeMetadata]))
-> GetBuiltinSlotTypesResponse -> f GetBuiltinSlotTypesResponse
getBuiltinSlotTypesResponse_slotTypes = (GetBuiltinSlotTypesResponse -> Maybe [BuiltinSlotTypeMetadata])
-> (GetBuiltinSlotTypesResponse
-> Maybe [BuiltinSlotTypeMetadata] -> GetBuiltinSlotTypesResponse)
-> Lens'
GetBuiltinSlotTypesResponse (Maybe [BuiltinSlotTypeMetadata])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetBuiltinSlotTypesResponse' {Maybe [BuiltinSlotTypeMetadata]
slotTypes :: Maybe [BuiltinSlotTypeMetadata]
$sel:slotTypes:GetBuiltinSlotTypesResponse' :: GetBuiltinSlotTypesResponse -> Maybe [BuiltinSlotTypeMetadata]
slotTypes} -> Maybe [BuiltinSlotTypeMetadata]
slotTypes) (\s :: GetBuiltinSlotTypesResponse
s@GetBuiltinSlotTypesResponse' {} Maybe [BuiltinSlotTypeMetadata]
a -> GetBuiltinSlotTypesResponse
s {$sel:slotTypes:GetBuiltinSlotTypesResponse' :: Maybe [BuiltinSlotTypeMetadata]
slotTypes = Maybe [BuiltinSlotTypeMetadata]
a} :: GetBuiltinSlotTypesResponse) ((Maybe [BuiltinSlotTypeMetadata]
-> f (Maybe [BuiltinSlotTypeMetadata]))
-> GetBuiltinSlotTypesResponse -> f GetBuiltinSlotTypesResponse)
-> ((Maybe [BuiltinSlotTypeMetadata]
-> f (Maybe [BuiltinSlotTypeMetadata]))
-> Maybe [BuiltinSlotTypeMetadata]
-> f (Maybe [BuiltinSlotTypeMetadata]))
-> (Maybe [BuiltinSlotTypeMetadata]
-> f (Maybe [BuiltinSlotTypeMetadata]))
-> GetBuiltinSlotTypesResponse
-> f GetBuiltinSlotTypesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[BuiltinSlotTypeMetadata]
[BuiltinSlotTypeMetadata]
[BuiltinSlotTypeMetadata]
[BuiltinSlotTypeMetadata]
-> Iso
(Maybe [BuiltinSlotTypeMetadata])
(Maybe [BuiltinSlotTypeMetadata])
(Maybe [BuiltinSlotTypeMetadata])
(Maybe [BuiltinSlotTypeMetadata])
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
[BuiltinSlotTypeMetadata]
[BuiltinSlotTypeMetadata]
[BuiltinSlotTypeMetadata]
[BuiltinSlotTypeMetadata]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
getBuiltinSlotTypesResponse_httpStatus :: Lens.Lens' GetBuiltinSlotTypesResponse Prelude.Int
getBuiltinSlotTypesResponse_httpStatus :: (Int -> f Int)
-> GetBuiltinSlotTypesResponse -> f GetBuiltinSlotTypesResponse
getBuiltinSlotTypesResponse_httpStatus = (GetBuiltinSlotTypesResponse -> Int)
-> (GetBuiltinSlotTypesResponse
-> Int -> GetBuiltinSlotTypesResponse)
-> Lens
GetBuiltinSlotTypesResponse GetBuiltinSlotTypesResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetBuiltinSlotTypesResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetBuiltinSlotTypesResponse' :: GetBuiltinSlotTypesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetBuiltinSlotTypesResponse
s@GetBuiltinSlotTypesResponse' {} Int
a -> GetBuiltinSlotTypesResponse
s {$sel:httpStatus:GetBuiltinSlotTypesResponse' :: Int
httpStatus = Int
a} :: GetBuiltinSlotTypesResponse)
instance Prelude.NFData GetBuiltinSlotTypesResponse