{-# 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.LexV2Models.ListCustomVocabularyItems
(
ListCustomVocabularyItems (..),
newListCustomVocabularyItems,
listCustomVocabularyItems_maxResults,
listCustomVocabularyItems_nextToken,
listCustomVocabularyItems_botId,
listCustomVocabularyItems_botVersion,
listCustomVocabularyItems_localeId,
ListCustomVocabularyItemsResponse (..),
newListCustomVocabularyItemsResponse,
listCustomVocabularyItemsResponse_botId,
listCustomVocabularyItemsResponse_botVersion,
listCustomVocabularyItemsResponse_customVocabularyItems,
listCustomVocabularyItemsResponse_localeId,
listCustomVocabularyItemsResponse_nextToken,
listCustomVocabularyItemsResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.LexV2Models.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data ListCustomVocabularyItems = ListCustomVocabularyItems'
{
ListCustomVocabularyItems -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
ListCustomVocabularyItems -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListCustomVocabularyItems -> Text
botId :: Prelude.Text,
ListCustomVocabularyItems -> Text
botVersion :: Prelude.Text,
ListCustomVocabularyItems -> Text
localeId :: Prelude.Text
}
deriving (ListCustomVocabularyItems -> ListCustomVocabularyItems -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListCustomVocabularyItems -> ListCustomVocabularyItems -> Bool
$c/= :: ListCustomVocabularyItems -> ListCustomVocabularyItems -> Bool
== :: ListCustomVocabularyItems -> ListCustomVocabularyItems -> Bool
$c== :: ListCustomVocabularyItems -> ListCustomVocabularyItems -> Bool
Prelude.Eq, ReadPrec [ListCustomVocabularyItems]
ReadPrec ListCustomVocabularyItems
Int -> ReadS ListCustomVocabularyItems
ReadS [ListCustomVocabularyItems]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListCustomVocabularyItems]
$creadListPrec :: ReadPrec [ListCustomVocabularyItems]
readPrec :: ReadPrec ListCustomVocabularyItems
$creadPrec :: ReadPrec ListCustomVocabularyItems
readList :: ReadS [ListCustomVocabularyItems]
$creadList :: ReadS [ListCustomVocabularyItems]
readsPrec :: Int -> ReadS ListCustomVocabularyItems
$creadsPrec :: Int -> ReadS ListCustomVocabularyItems
Prelude.Read, Int -> ListCustomVocabularyItems -> ShowS
[ListCustomVocabularyItems] -> ShowS
ListCustomVocabularyItems -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListCustomVocabularyItems] -> ShowS
$cshowList :: [ListCustomVocabularyItems] -> ShowS
show :: ListCustomVocabularyItems -> String
$cshow :: ListCustomVocabularyItems -> String
showsPrec :: Int -> ListCustomVocabularyItems -> ShowS
$cshowsPrec :: Int -> ListCustomVocabularyItems -> ShowS
Prelude.Show, forall x.
Rep ListCustomVocabularyItems x -> ListCustomVocabularyItems
forall x.
ListCustomVocabularyItems -> Rep ListCustomVocabularyItems x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListCustomVocabularyItems x -> ListCustomVocabularyItems
$cfrom :: forall x.
ListCustomVocabularyItems -> Rep ListCustomVocabularyItems x
Prelude.Generic)
newListCustomVocabularyItems ::
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
ListCustomVocabularyItems
newListCustomVocabularyItems :: Text -> Text -> Text -> ListCustomVocabularyItems
newListCustomVocabularyItems
Text
pBotId_
Text
pBotVersion_
Text
pLocaleId_ =
ListCustomVocabularyItems'
{ $sel:maxResults:ListCustomVocabularyItems' :: Maybe Natural
maxResults =
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListCustomVocabularyItems' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
$sel:botId:ListCustomVocabularyItems' :: Text
botId = Text
pBotId_,
$sel:botVersion:ListCustomVocabularyItems' :: Text
botVersion = Text
pBotVersion_,
$sel:localeId:ListCustomVocabularyItems' :: Text
localeId = Text
pLocaleId_
}
listCustomVocabularyItems_maxResults :: Lens.Lens' ListCustomVocabularyItems (Prelude.Maybe Prelude.Natural)
listCustomVocabularyItems_maxResults :: Lens' ListCustomVocabularyItems (Maybe Natural)
listCustomVocabularyItems_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCustomVocabularyItems' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListCustomVocabularyItems' :: ListCustomVocabularyItems -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListCustomVocabularyItems
s@ListCustomVocabularyItems' {} Maybe Natural
a -> ListCustomVocabularyItems
s {$sel:maxResults:ListCustomVocabularyItems' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListCustomVocabularyItems)
listCustomVocabularyItems_nextToken :: Lens.Lens' ListCustomVocabularyItems (Prelude.Maybe Prelude.Text)
listCustomVocabularyItems_nextToken :: Lens' ListCustomVocabularyItems (Maybe Text)
listCustomVocabularyItems_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCustomVocabularyItems' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListCustomVocabularyItems' :: ListCustomVocabularyItems -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListCustomVocabularyItems
s@ListCustomVocabularyItems' {} Maybe Text
a -> ListCustomVocabularyItems
s {$sel:nextToken:ListCustomVocabularyItems' :: Maybe Text
nextToken = Maybe Text
a} :: ListCustomVocabularyItems)
listCustomVocabularyItems_botId :: Lens.Lens' ListCustomVocabularyItems Prelude.Text
listCustomVocabularyItems_botId :: Lens' ListCustomVocabularyItems Text
listCustomVocabularyItems_botId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCustomVocabularyItems' {Text
botId :: Text
$sel:botId:ListCustomVocabularyItems' :: ListCustomVocabularyItems -> Text
botId} -> Text
botId) (\s :: ListCustomVocabularyItems
s@ListCustomVocabularyItems' {} Text
a -> ListCustomVocabularyItems
s {$sel:botId:ListCustomVocabularyItems' :: Text
botId = Text
a} :: ListCustomVocabularyItems)
listCustomVocabularyItems_botVersion :: Lens.Lens' ListCustomVocabularyItems Prelude.Text
listCustomVocabularyItems_botVersion :: Lens' ListCustomVocabularyItems Text
listCustomVocabularyItems_botVersion = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCustomVocabularyItems' {Text
botVersion :: Text
$sel:botVersion:ListCustomVocabularyItems' :: ListCustomVocabularyItems -> Text
botVersion} -> Text
botVersion) (\s :: ListCustomVocabularyItems
s@ListCustomVocabularyItems' {} Text
a -> ListCustomVocabularyItems
s {$sel:botVersion:ListCustomVocabularyItems' :: Text
botVersion = Text
a} :: ListCustomVocabularyItems)
listCustomVocabularyItems_localeId :: Lens.Lens' ListCustomVocabularyItems Prelude.Text
listCustomVocabularyItems_localeId :: Lens' ListCustomVocabularyItems Text
listCustomVocabularyItems_localeId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCustomVocabularyItems' {Text
localeId :: Text
$sel:localeId:ListCustomVocabularyItems' :: ListCustomVocabularyItems -> Text
localeId} -> Text
localeId) (\s :: ListCustomVocabularyItems
s@ListCustomVocabularyItems' {} Text
a -> ListCustomVocabularyItems
s {$sel:localeId:ListCustomVocabularyItems' :: Text
localeId = Text
a} :: ListCustomVocabularyItems)
instance Core.AWSRequest ListCustomVocabularyItems where
type
AWSResponse ListCustomVocabularyItems =
ListCustomVocabularyItemsResponse
request :: (Service -> Service)
-> ListCustomVocabularyItems -> Request ListCustomVocabularyItems
request Service -> Service
overrides =
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy ListCustomVocabularyItems
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListCustomVocabularyItems)))
response =
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe Text
-> Maybe Text
-> Maybe [CustomVocabularyItem]
-> Maybe Text
-> Maybe Text
-> Int
-> ListCustomVocabularyItemsResponse
ListCustomVocabularyItemsResponse'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"botId")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"botVersion")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"customVocabularyItems"
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"localeId")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"nextToken")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable ListCustomVocabularyItems where
hashWithSalt :: Int -> ListCustomVocabularyItems -> Int
hashWithSalt Int
_salt ListCustomVocabularyItems' {Maybe Natural
Maybe Text
Text
localeId :: Text
botVersion :: Text
botId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:localeId:ListCustomVocabularyItems' :: ListCustomVocabularyItems -> Text
$sel:botVersion:ListCustomVocabularyItems' :: ListCustomVocabularyItems -> Text
$sel:botId:ListCustomVocabularyItems' :: ListCustomVocabularyItems -> Text
$sel:nextToken:ListCustomVocabularyItems' :: ListCustomVocabularyItems -> Maybe Text
$sel:maxResults:ListCustomVocabularyItems' :: ListCustomVocabularyItems -> Maybe Natural
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
maxResults
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
botId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
botVersion
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
localeId
instance Prelude.NFData ListCustomVocabularyItems where
rnf :: ListCustomVocabularyItems -> ()
rnf ListCustomVocabularyItems' {Maybe Natural
Maybe Text
Text
localeId :: Text
botVersion :: Text
botId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:localeId:ListCustomVocabularyItems' :: ListCustomVocabularyItems -> Text
$sel:botVersion:ListCustomVocabularyItems' :: ListCustomVocabularyItems -> Text
$sel:botId:ListCustomVocabularyItems' :: ListCustomVocabularyItems -> Text
$sel:nextToken:ListCustomVocabularyItems' :: ListCustomVocabularyItems -> Maybe Text
$sel:maxResults:ListCustomVocabularyItems' :: ListCustomVocabularyItems -> Maybe Natural
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
maxResults
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
botId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
botVersion
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
localeId
instance Data.ToHeaders ListCustomVocabularyItems where
toHeaders :: ListCustomVocabularyItems -> ResponseHeaders
toHeaders =
forall a b. a -> b -> a
Prelude.const
( forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"Content-Type"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Data.ToJSON ListCustomVocabularyItems where
toJSON :: ListCustomVocabularyItems -> Value
toJSON ListCustomVocabularyItems' {Maybe Natural
Maybe Text
Text
localeId :: Text
botVersion :: Text
botId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:localeId:ListCustomVocabularyItems' :: ListCustomVocabularyItems -> Text
$sel:botVersion:ListCustomVocabularyItems' :: ListCustomVocabularyItems -> Text
$sel:botId:ListCustomVocabularyItems' :: ListCustomVocabularyItems -> Text
$sel:nextToken:ListCustomVocabularyItems' :: ListCustomVocabularyItems -> Maybe Text
$sel:maxResults:ListCustomVocabularyItems' :: ListCustomVocabularyItems -> Maybe Natural
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"maxResults" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults,
(Key
"nextToken" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken
]
)
instance Data.ToPath ListCustomVocabularyItems where
toPath :: ListCustomVocabularyItems -> ByteString
toPath ListCustomVocabularyItems' {Maybe Natural
Maybe Text
Text
localeId :: Text
botVersion :: Text
botId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:localeId:ListCustomVocabularyItems' :: ListCustomVocabularyItems -> Text
$sel:botVersion:ListCustomVocabularyItems' :: ListCustomVocabularyItems -> Text
$sel:botId:ListCustomVocabularyItems' :: ListCustomVocabularyItems -> Text
$sel:nextToken:ListCustomVocabularyItems' :: ListCustomVocabularyItems -> Maybe Text
$sel:maxResults:ListCustomVocabularyItems' :: ListCustomVocabularyItems -> Maybe Natural
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/bots/",
forall a. ToByteString a => a -> ByteString
Data.toBS Text
botId,
ByteString
"/botversions/",
forall a. ToByteString a => a -> ByteString
Data.toBS Text
botVersion,
ByteString
"/botlocales/",
forall a. ToByteString a => a -> ByteString
Data.toBS Text
localeId,
ByteString
"/customvocabulary/DEFAULT/list"
]
instance Data.ToQuery ListCustomVocabularyItems where
toQuery :: ListCustomVocabularyItems -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data ListCustomVocabularyItemsResponse = ListCustomVocabularyItemsResponse'
{
ListCustomVocabularyItemsResponse -> Maybe Text
botId :: Prelude.Maybe Prelude.Text,
ListCustomVocabularyItemsResponse -> Maybe Text
botVersion :: Prelude.Maybe Prelude.Text,
ListCustomVocabularyItemsResponse -> Maybe [CustomVocabularyItem]
customVocabularyItems :: Prelude.Maybe [CustomVocabularyItem],
ListCustomVocabularyItemsResponse -> Maybe Text
localeId :: Prelude.Maybe Prelude.Text,
ListCustomVocabularyItemsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListCustomVocabularyItemsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListCustomVocabularyItemsResponse
-> ListCustomVocabularyItemsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListCustomVocabularyItemsResponse
-> ListCustomVocabularyItemsResponse -> Bool
$c/= :: ListCustomVocabularyItemsResponse
-> ListCustomVocabularyItemsResponse -> Bool
== :: ListCustomVocabularyItemsResponse
-> ListCustomVocabularyItemsResponse -> Bool
$c== :: ListCustomVocabularyItemsResponse
-> ListCustomVocabularyItemsResponse -> Bool
Prelude.Eq, ReadPrec [ListCustomVocabularyItemsResponse]
ReadPrec ListCustomVocabularyItemsResponse
Int -> ReadS ListCustomVocabularyItemsResponse
ReadS [ListCustomVocabularyItemsResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListCustomVocabularyItemsResponse]
$creadListPrec :: ReadPrec [ListCustomVocabularyItemsResponse]
readPrec :: ReadPrec ListCustomVocabularyItemsResponse
$creadPrec :: ReadPrec ListCustomVocabularyItemsResponse
readList :: ReadS [ListCustomVocabularyItemsResponse]
$creadList :: ReadS [ListCustomVocabularyItemsResponse]
readsPrec :: Int -> ReadS ListCustomVocabularyItemsResponse
$creadsPrec :: Int -> ReadS ListCustomVocabularyItemsResponse
Prelude.Read, Int -> ListCustomVocabularyItemsResponse -> ShowS
[ListCustomVocabularyItemsResponse] -> ShowS
ListCustomVocabularyItemsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListCustomVocabularyItemsResponse] -> ShowS
$cshowList :: [ListCustomVocabularyItemsResponse] -> ShowS
show :: ListCustomVocabularyItemsResponse -> String
$cshow :: ListCustomVocabularyItemsResponse -> String
showsPrec :: Int -> ListCustomVocabularyItemsResponse -> ShowS
$cshowsPrec :: Int -> ListCustomVocabularyItemsResponse -> ShowS
Prelude.Show, forall x.
Rep ListCustomVocabularyItemsResponse x
-> ListCustomVocabularyItemsResponse
forall x.
ListCustomVocabularyItemsResponse
-> Rep ListCustomVocabularyItemsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListCustomVocabularyItemsResponse x
-> ListCustomVocabularyItemsResponse
$cfrom :: forall x.
ListCustomVocabularyItemsResponse
-> Rep ListCustomVocabularyItemsResponse x
Prelude.Generic)
newListCustomVocabularyItemsResponse ::
Prelude.Int ->
ListCustomVocabularyItemsResponse
newListCustomVocabularyItemsResponse :: Int -> ListCustomVocabularyItemsResponse
newListCustomVocabularyItemsResponse Int
pHttpStatus_ =
ListCustomVocabularyItemsResponse'
{ $sel:botId:ListCustomVocabularyItemsResponse' :: Maybe Text
botId =
forall a. Maybe a
Prelude.Nothing,
$sel:botVersion:ListCustomVocabularyItemsResponse' :: Maybe Text
botVersion = forall a. Maybe a
Prelude.Nothing,
$sel:customVocabularyItems:ListCustomVocabularyItemsResponse' :: Maybe [CustomVocabularyItem]
customVocabularyItems = forall a. Maybe a
Prelude.Nothing,
$sel:localeId:ListCustomVocabularyItemsResponse' :: Maybe Text
localeId = forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListCustomVocabularyItemsResponse' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListCustomVocabularyItemsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listCustomVocabularyItemsResponse_botId :: Lens.Lens' ListCustomVocabularyItemsResponse (Prelude.Maybe Prelude.Text)
listCustomVocabularyItemsResponse_botId :: Lens' ListCustomVocabularyItemsResponse (Maybe Text)
listCustomVocabularyItemsResponse_botId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCustomVocabularyItemsResponse' {Maybe Text
botId :: Maybe Text
$sel:botId:ListCustomVocabularyItemsResponse' :: ListCustomVocabularyItemsResponse -> Maybe Text
botId} -> Maybe Text
botId) (\s :: ListCustomVocabularyItemsResponse
s@ListCustomVocabularyItemsResponse' {} Maybe Text
a -> ListCustomVocabularyItemsResponse
s {$sel:botId:ListCustomVocabularyItemsResponse' :: Maybe Text
botId = Maybe Text
a} :: ListCustomVocabularyItemsResponse)
listCustomVocabularyItemsResponse_botVersion :: Lens.Lens' ListCustomVocabularyItemsResponse (Prelude.Maybe Prelude.Text)
listCustomVocabularyItemsResponse_botVersion :: Lens' ListCustomVocabularyItemsResponse (Maybe Text)
listCustomVocabularyItemsResponse_botVersion = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCustomVocabularyItemsResponse' {Maybe Text
botVersion :: Maybe Text
$sel:botVersion:ListCustomVocabularyItemsResponse' :: ListCustomVocabularyItemsResponse -> Maybe Text
botVersion} -> Maybe Text
botVersion) (\s :: ListCustomVocabularyItemsResponse
s@ListCustomVocabularyItemsResponse' {} Maybe Text
a -> ListCustomVocabularyItemsResponse
s {$sel:botVersion:ListCustomVocabularyItemsResponse' :: Maybe Text
botVersion = Maybe Text
a} :: ListCustomVocabularyItemsResponse)
listCustomVocabularyItemsResponse_customVocabularyItems :: Lens.Lens' ListCustomVocabularyItemsResponse (Prelude.Maybe [CustomVocabularyItem])
listCustomVocabularyItemsResponse_customVocabularyItems :: Lens'
ListCustomVocabularyItemsResponse (Maybe [CustomVocabularyItem])
listCustomVocabularyItemsResponse_customVocabularyItems = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCustomVocabularyItemsResponse' {Maybe [CustomVocabularyItem]
customVocabularyItems :: Maybe [CustomVocabularyItem]
$sel:customVocabularyItems:ListCustomVocabularyItemsResponse' :: ListCustomVocabularyItemsResponse -> Maybe [CustomVocabularyItem]
customVocabularyItems} -> Maybe [CustomVocabularyItem]
customVocabularyItems) (\s :: ListCustomVocabularyItemsResponse
s@ListCustomVocabularyItemsResponse' {} Maybe [CustomVocabularyItem]
a -> ListCustomVocabularyItemsResponse
s {$sel:customVocabularyItems:ListCustomVocabularyItemsResponse' :: Maybe [CustomVocabularyItem]
customVocabularyItems = Maybe [CustomVocabularyItem]
a} :: ListCustomVocabularyItemsResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listCustomVocabularyItemsResponse_localeId :: Lens.Lens' ListCustomVocabularyItemsResponse (Prelude.Maybe Prelude.Text)
listCustomVocabularyItemsResponse_localeId :: Lens' ListCustomVocabularyItemsResponse (Maybe Text)
listCustomVocabularyItemsResponse_localeId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCustomVocabularyItemsResponse' {Maybe Text
localeId :: Maybe Text
$sel:localeId:ListCustomVocabularyItemsResponse' :: ListCustomVocabularyItemsResponse -> Maybe Text
localeId} -> Maybe Text
localeId) (\s :: ListCustomVocabularyItemsResponse
s@ListCustomVocabularyItemsResponse' {} Maybe Text
a -> ListCustomVocabularyItemsResponse
s {$sel:localeId:ListCustomVocabularyItemsResponse' :: Maybe Text
localeId = Maybe Text
a} :: ListCustomVocabularyItemsResponse)
listCustomVocabularyItemsResponse_nextToken :: Lens.Lens' ListCustomVocabularyItemsResponse (Prelude.Maybe Prelude.Text)
listCustomVocabularyItemsResponse_nextToken :: Lens' ListCustomVocabularyItemsResponse (Maybe Text)
listCustomVocabularyItemsResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCustomVocabularyItemsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListCustomVocabularyItemsResponse' :: ListCustomVocabularyItemsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListCustomVocabularyItemsResponse
s@ListCustomVocabularyItemsResponse' {} Maybe Text
a -> ListCustomVocabularyItemsResponse
s {$sel:nextToken:ListCustomVocabularyItemsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListCustomVocabularyItemsResponse)
listCustomVocabularyItemsResponse_httpStatus :: Lens.Lens' ListCustomVocabularyItemsResponse Prelude.Int
listCustomVocabularyItemsResponse_httpStatus :: Lens' ListCustomVocabularyItemsResponse Int
listCustomVocabularyItemsResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCustomVocabularyItemsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListCustomVocabularyItemsResponse' :: ListCustomVocabularyItemsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListCustomVocabularyItemsResponse
s@ListCustomVocabularyItemsResponse' {} Int
a -> ListCustomVocabularyItemsResponse
s {$sel:httpStatus:ListCustomVocabularyItemsResponse' :: Int
httpStatus = Int
a} :: ListCustomVocabularyItemsResponse)
instance
Prelude.NFData
ListCustomVocabularyItemsResponse
where
rnf :: ListCustomVocabularyItemsResponse -> ()
rnf ListCustomVocabularyItemsResponse' {Int
Maybe [CustomVocabularyItem]
Maybe Text
httpStatus :: Int
nextToken :: Maybe Text
localeId :: Maybe Text
customVocabularyItems :: Maybe [CustomVocabularyItem]
botVersion :: Maybe Text
botId :: Maybe Text
$sel:httpStatus:ListCustomVocabularyItemsResponse' :: ListCustomVocabularyItemsResponse -> Int
$sel:nextToken:ListCustomVocabularyItemsResponse' :: ListCustomVocabularyItemsResponse -> Maybe Text
$sel:localeId:ListCustomVocabularyItemsResponse' :: ListCustomVocabularyItemsResponse -> Maybe Text
$sel:customVocabularyItems:ListCustomVocabularyItemsResponse' :: ListCustomVocabularyItemsResponse -> Maybe [CustomVocabularyItem]
$sel:botVersion:ListCustomVocabularyItemsResponse' :: ListCustomVocabularyItemsResponse -> Maybe Text
$sel:botId:ListCustomVocabularyItemsResponse' :: ListCustomVocabularyItemsResponse -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
botId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
botVersion
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [CustomVocabularyItem]
customVocabularyItems
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
localeId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus