{-# 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.BatchDeleteCustomVocabularyItem
(
BatchDeleteCustomVocabularyItem (..),
newBatchDeleteCustomVocabularyItem,
batchDeleteCustomVocabularyItem_botId,
batchDeleteCustomVocabularyItem_botVersion,
batchDeleteCustomVocabularyItem_localeId,
batchDeleteCustomVocabularyItem_customVocabularyItemList,
BatchDeleteCustomVocabularyItemResponse (..),
newBatchDeleteCustomVocabularyItemResponse,
batchDeleteCustomVocabularyItemResponse_botId,
batchDeleteCustomVocabularyItemResponse_botVersion,
batchDeleteCustomVocabularyItemResponse_errors,
batchDeleteCustomVocabularyItemResponse_localeId,
batchDeleteCustomVocabularyItemResponse_resources,
batchDeleteCustomVocabularyItemResponse_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 BatchDeleteCustomVocabularyItem = BatchDeleteCustomVocabularyItem'
{
BatchDeleteCustomVocabularyItem -> Text
botId :: Prelude.Text,
BatchDeleteCustomVocabularyItem -> Text
botVersion :: Prelude.Text,
BatchDeleteCustomVocabularyItem -> Text
localeId :: Prelude.Text,
BatchDeleteCustomVocabularyItem -> NonEmpty CustomVocabularyEntryId
customVocabularyItemList :: Prelude.NonEmpty CustomVocabularyEntryId
}
deriving (BatchDeleteCustomVocabularyItem
-> BatchDeleteCustomVocabularyItem -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchDeleteCustomVocabularyItem
-> BatchDeleteCustomVocabularyItem -> Bool
$c/= :: BatchDeleteCustomVocabularyItem
-> BatchDeleteCustomVocabularyItem -> Bool
== :: BatchDeleteCustomVocabularyItem
-> BatchDeleteCustomVocabularyItem -> Bool
$c== :: BatchDeleteCustomVocabularyItem
-> BatchDeleteCustomVocabularyItem -> Bool
Prelude.Eq, ReadPrec [BatchDeleteCustomVocabularyItem]
ReadPrec BatchDeleteCustomVocabularyItem
Int -> ReadS BatchDeleteCustomVocabularyItem
ReadS [BatchDeleteCustomVocabularyItem]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchDeleteCustomVocabularyItem]
$creadListPrec :: ReadPrec [BatchDeleteCustomVocabularyItem]
readPrec :: ReadPrec BatchDeleteCustomVocabularyItem
$creadPrec :: ReadPrec BatchDeleteCustomVocabularyItem
readList :: ReadS [BatchDeleteCustomVocabularyItem]
$creadList :: ReadS [BatchDeleteCustomVocabularyItem]
readsPrec :: Int -> ReadS BatchDeleteCustomVocabularyItem
$creadsPrec :: Int -> ReadS BatchDeleteCustomVocabularyItem
Prelude.Read, Int -> BatchDeleteCustomVocabularyItem -> ShowS
[BatchDeleteCustomVocabularyItem] -> ShowS
BatchDeleteCustomVocabularyItem -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchDeleteCustomVocabularyItem] -> ShowS
$cshowList :: [BatchDeleteCustomVocabularyItem] -> ShowS
show :: BatchDeleteCustomVocabularyItem -> String
$cshow :: BatchDeleteCustomVocabularyItem -> String
showsPrec :: Int -> BatchDeleteCustomVocabularyItem -> ShowS
$cshowsPrec :: Int -> BatchDeleteCustomVocabularyItem -> ShowS
Prelude.Show, forall x.
Rep BatchDeleteCustomVocabularyItem x
-> BatchDeleteCustomVocabularyItem
forall x.
BatchDeleteCustomVocabularyItem
-> Rep BatchDeleteCustomVocabularyItem x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep BatchDeleteCustomVocabularyItem x
-> BatchDeleteCustomVocabularyItem
$cfrom :: forall x.
BatchDeleteCustomVocabularyItem
-> Rep BatchDeleteCustomVocabularyItem x
Prelude.Generic)
newBatchDeleteCustomVocabularyItem ::
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
Prelude.NonEmpty CustomVocabularyEntryId ->
BatchDeleteCustomVocabularyItem
newBatchDeleteCustomVocabularyItem :: Text
-> Text
-> Text
-> NonEmpty CustomVocabularyEntryId
-> BatchDeleteCustomVocabularyItem
newBatchDeleteCustomVocabularyItem
Text
pBotId_
Text
pBotVersion_
Text
pLocaleId_
NonEmpty CustomVocabularyEntryId
pCustomVocabularyItemList_ =
BatchDeleteCustomVocabularyItem'
{ $sel:botId:BatchDeleteCustomVocabularyItem' :: Text
botId = Text
pBotId_,
$sel:botVersion:BatchDeleteCustomVocabularyItem' :: Text
botVersion = Text
pBotVersion_,
$sel:localeId:BatchDeleteCustomVocabularyItem' :: Text
localeId = Text
pLocaleId_,
$sel:customVocabularyItemList:BatchDeleteCustomVocabularyItem' :: NonEmpty CustomVocabularyEntryId
customVocabularyItemList =
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
forall t b. AReview t b -> b -> t
Lens.# NonEmpty CustomVocabularyEntryId
pCustomVocabularyItemList_
}
batchDeleteCustomVocabularyItem_botId :: Lens.Lens' BatchDeleteCustomVocabularyItem Prelude.Text
batchDeleteCustomVocabularyItem_botId :: Lens' BatchDeleteCustomVocabularyItem Text
batchDeleteCustomVocabularyItem_botId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDeleteCustomVocabularyItem' {Text
botId :: Text
$sel:botId:BatchDeleteCustomVocabularyItem' :: BatchDeleteCustomVocabularyItem -> Text
botId} -> Text
botId) (\s :: BatchDeleteCustomVocabularyItem
s@BatchDeleteCustomVocabularyItem' {} Text
a -> BatchDeleteCustomVocabularyItem
s {$sel:botId:BatchDeleteCustomVocabularyItem' :: Text
botId = Text
a} :: BatchDeleteCustomVocabularyItem)
batchDeleteCustomVocabularyItem_botVersion :: Lens.Lens' BatchDeleteCustomVocabularyItem Prelude.Text
batchDeleteCustomVocabularyItem_botVersion :: Lens' BatchDeleteCustomVocabularyItem Text
batchDeleteCustomVocabularyItem_botVersion = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDeleteCustomVocabularyItem' {Text
botVersion :: Text
$sel:botVersion:BatchDeleteCustomVocabularyItem' :: BatchDeleteCustomVocabularyItem -> Text
botVersion} -> Text
botVersion) (\s :: BatchDeleteCustomVocabularyItem
s@BatchDeleteCustomVocabularyItem' {} Text
a -> BatchDeleteCustomVocabularyItem
s {$sel:botVersion:BatchDeleteCustomVocabularyItem' :: Text
botVersion = Text
a} :: BatchDeleteCustomVocabularyItem)
batchDeleteCustomVocabularyItem_localeId :: Lens.Lens' BatchDeleteCustomVocabularyItem Prelude.Text
batchDeleteCustomVocabularyItem_localeId :: Lens' BatchDeleteCustomVocabularyItem Text
batchDeleteCustomVocabularyItem_localeId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDeleteCustomVocabularyItem' {Text
localeId :: Text
$sel:localeId:BatchDeleteCustomVocabularyItem' :: BatchDeleteCustomVocabularyItem -> Text
localeId} -> Text
localeId) (\s :: BatchDeleteCustomVocabularyItem
s@BatchDeleteCustomVocabularyItem' {} Text
a -> BatchDeleteCustomVocabularyItem
s {$sel:localeId:BatchDeleteCustomVocabularyItem' :: Text
localeId = Text
a} :: BatchDeleteCustomVocabularyItem)
batchDeleteCustomVocabularyItem_customVocabularyItemList :: Lens.Lens' BatchDeleteCustomVocabularyItem (Prelude.NonEmpty CustomVocabularyEntryId)
batchDeleteCustomVocabularyItem_customVocabularyItemList :: Lens'
BatchDeleteCustomVocabularyItem (NonEmpty CustomVocabularyEntryId)
batchDeleteCustomVocabularyItem_customVocabularyItemList = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDeleteCustomVocabularyItem' {NonEmpty CustomVocabularyEntryId
customVocabularyItemList :: NonEmpty CustomVocabularyEntryId
$sel:customVocabularyItemList:BatchDeleteCustomVocabularyItem' :: BatchDeleteCustomVocabularyItem -> NonEmpty CustomVocabularyEntryId
customVocabularyItemList} -> NonEmpty CustomVocabularyEntryId
customVocabularyItemList) (\s :: BatchDeleteCustomVocabularyItem
s@BatchDeleteCustomVocabularyItem' {} NonEmpty CustomVocabularyEntryId
a -> BatchDeleteCustomVocabularyItem
s {$sel:customVocabularyItemList:BatchDeleteCustomVocabularyItem' :: NonEmpty CustomVocabularyEntryId
customVocabularyItemList = NonEmpty CustomVocabularyEntryId
a} :: BatchDeleteCustomVocabularyItem) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance
Core.AWSRequest
BatchDeleteCustomVocabularyItem
where
type
AWSResponse BatchDeleteCustomVocabularyItem =
BatchDeleteCustomVocabularyItemResponse
request :: (Service -> Service)
-> BatchDeleteCustomVocabularyItem
-> Request BatchDeleteCustomVocabularyItem
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 BatchDeleteCustomVocabularyItem
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse BatchDeleteCustomVocabularyItem)))
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 [FailedCustomVocabularyItem]
-> Maybe Text
-> Maybe [CustomVocabularyItem]
-> Int
-> BatchDeleteCustomVocabularyItemResponse
BatchDeleteCustomVocabularyItemResponse'
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
"errors" 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
"resources" 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.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance
Prelude.Hashable
BatchDeleteCustomVocabularyItem
where
hashWithSalt :: Int -> BatchDeleteCustomVocabularyItem -> Int
hashWithSalt
Int
_salt
BatchDeleteCustomVocabularyItem' {NonEmpty CustomVocabularyEntryId
Text
customVocabularyItemList :: NonEmpty CustomVocabularyEntryId
localeId :: Text
botVersion :: Text
botId :: Text
$sel:customVocabularyItemList:BatchDeleteCustomVocabularyItem' :: BatchDeleteCustomVocabularyItem -> NonEmpty CustomVocabularyEntryId
$sel:localeId:BatchDeleteCustomVocabularyItem' :: BatchDeleteCustomVocabularyItem -> Text
$sel:botVersion:BatchDeleteCustomVocabularyItem' :: BatchDeleteCustomVocabularyItem -> Text
$sel:botId:BatchDeleteCustomVocabularyItem' :: BatchDeleteCustomVocabularyItem -> Text
..} =
Int
_salt
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
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` NonEmpty CustomVocabularyEntryId
customVocabularyItemList
instance
Prelude.NFData
BatchDeleteCustomVocabularyItem
where
rnf :: BatchDeleteCustomVocabularyItem -> ()
rnf BatchDeleteCustomVocabularyItem' {NonEmpty CustomVocabularyEntryId
Text
customVocabularyItemList :: NonEmpty CustomVocabularyEntryId
localeId :: Text
botVersion :: Text
botId :: Text
$sel:customVocabularyItemList:BatchDeleteCustomVocabularyItem' :: BatchDeleteCustomVocabularyItem -> NonEmpty CustomVocabularyEntryId
$sel:localeId:BatchDeleteCustomVocabularyItem' :: BatchDeleteCustomVocabularyItem -> Text
$sel:botVersion:BatchDeleteCustomVocabularyItem' :: BatchDeleteCustomVocabularyItem -> Text
$sel:botId:BatchDeleteCustomVocabularyItem' :: BatchDeleteCustomVocabularyItem -> Text
..} =
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
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf NonEmpty CustomVocabularyEntryId
customVocabularyItemList
instance
Data.ToHeaders
BatchDeleteCustomVocabularyItem
where
toHeaders :: BatchDeleteCustomVocabularyItem -> 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 BatchDeleteCustomVocabularyItem where
toJSON :: BatchDeleteCustomVocabularyItem -> Value
toJSON BatchDeleteCustomVocabularyItem' {NonEmpty CustomVocabularyEntryId
Text
customVocabularyItemList :: NonEmpty CustomVocabularyEntryId
localeId :: Text
botVersion :: Text
botId :: Text
$sel:customVocabularyItemList:BatchDeleteCustomVocabularyItem' :: BatchDeleteCustomVocabularyItem -> NonEmpty CustomVocabularyEntryId
$sel:localeId:BatchDeleteCustomVocabularyItem' :: BatchDeleteCustomVocabularyItem -> Text
$sel:botVersion:BatchDeleteCustomVocabularyItem' :: BatchDeleteCustomVocabularyItem -> Text
$sel:botId:BatchDeleteCustomVocabularyItem' :: BatchDeleteCustomVocabularyItem -> Text
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ forall a. a -> Maybe a
Prelude.Just
( Key
"customVocabularyItemList"
forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= NonEmpty CustomVocabularyEntryId
customVocabularyItemList
)
]
)
instance Data.ToPath BatchDeleteCustomVocabularyItem where
toPath :: BatchDeleteCustomVocabularyItem -> ByteString
toPath BatchDeleteCustomVocabularyItem' {NonEmpty CustomVocabularyEntryId
Text
customVocabularyItemList :: NonEmpty CustomVocabularyEntryId
localeId :: Text
botVersion :: Text
botId :: Text
$sel:customVocabularyItemList:BatchDeleteCustomVocabularyItem' :: BatchDeleteCustomVocabularyItem -> NonEmpty CustomVocabularyEntryId
$sel:localeId:BatchDeleteCustomVocabularyItem' :: BatchDeleteCustomVocabularyItem -> Text
$sel:botVersion:BatchDeleteCustomVocabularyItem' :: BatchDeleteCustomVocabularyItem -> Text
$sel:botId:BatchDeleteCustomVocabularyItem' :: BatchDeleteCustomVocabularyItem -> Text
..} =
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/batchdelete"
]
instance Data.ToQuery BatchDeleteCustomVocabularyItem where
toQuery :: BatchDeleteCustomVocabularyItem -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data BatchDeleteCustomVocabularyItemResponse = BatchDeleteCustomVocabularyItemResponse'
{
BatchDeleteCustomVocabularyItemResponse -> Maybe Text
botId :: Prelude.Maybe Prelude.Text,
BatchDeleteCustomVocabularyItemResponse -> Maybe Text
botVersion :: Prelude.Maybe Prelude.Text,
BatchDeleteCustomVocabularyItemResponse
-> Maybe [FailedCustomVocabularyItem]
errors :: Prelude.Maybe [FailedCustomVocabularyItem],
BatchDeleteCustomVocabularyItemResponse -> Maybe Text
localeId :: Prelude.Maybe Prelude.Text,
BatchDeleteCustomVocabularyItemResponse
-> Maybe [CustomVocabularyItem]
resources :: Prelude.Maybe [CustomVocabularyItem],
BatchDeleteCustomVocabularyItemResponse -> Int
httpStatus :: Prelude.Int
}
deriving (BatchDeleteCustomVocabularyItemResponse
-> BatchDeleteCustomVocabularyItemResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchDeleteCustomVocabularyItemResponse
-> BatchDeleteCustomVocabularyItemResponse -> Bool
$c/= :: BatchDeleteCustomVocabularyItemResponse
-> BatchDeleteCustomVocabularyItemResponse -> Bool
== :: BatchDeleteCustomVocabularyItemResponse
-> BatchDeleteCustomVocabularyItemResponse -> Bool
$c== :: BatchDeleteCustomVocabularyItemResponse
-> BatchDeleteCustomVocabularyItemResponse -> Bool
Prelude.Eq, ReadPrec [BatchDeleteCustomVocabularyItemResponse]
ReadPrec BatchDeleteCustomVocabularyItemResponse
Int -> ReadS BatchDeleteCustomVocabularyItemResponse
ReadS [BatchDeleteCustomVocabularyItemResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchDeleteCustomVocabularyItemResponse]
$creadListPrec :: ReadPrec [BatchDeleteCustomVocabularyItemResponse]
readPrec :: ReadPrec BatchDeleteCustomVocabularyItemResponse
$creadPrec :: ReadPrec BatchDeleteCustomVocabularyItemResponse
readList :: ReadS [BatchDeleteCustomVocabularyItemResponse]
$creadList :: ReadS [BatchDeleteCustomVocabularyItemResponse]
readsPrec :: Int -> ReadS BatchDeleteCustomVocabularyItemResponse
$creadsPrec :: Int -> ReadS BatchDeleteCustomVocabularyItemResponse
Prelude.Read, Int -> BatchDeleteCustomVocabularyItemResponse -> ShowS
[BatchDeleteCustomVocabularyItemResponse] -> ShowS
BatchDeleteCustomVocabularyItemResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchDeleteCustomVocabularyItemResponse] -> ShowS
$cshowList :: [BatchDeleteCustomVocabularyItemResponse] -> ShowS
show :: BatchDeleteCustomVocabularyItemResponse -> String
$cshow :: BatchDeleteCustomVocabularyItemResponse -> String
showsPrec :: Int -> BatchDeleteCustomVocabularyItemResponse -> ShowS
$cshowsPrec :: Int -> BatchDeleteCustomVocabularyItemResponse -> ShowS
Prelude.Show, forall x.
Rep BatchDeleteCustomVocabularyItemResponse x
-> BatchDeleteCustomVocabularyItemResponse
forall x.
BatchDeleteCustomVocabularyItemResponse
-> Rep BatchDeleteCustomVocabularyItemResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep BatchDeleteCustomVocabularyItemResponse x
-> BatchDeleteCustomVocabularyItemResponse
$cfrom :: forall x.
BatchDeleteCustomVocabularyItemResponse
-> Rep BatchDeleteCustomVocabularyItemResponse x
Prelude.Generic)
newBatchDeleteCustomVocabularyItemResponse ::
Prelude.Int ->
BatchDeleteCustomVocabularyItemResponse
newBatchDeleteCustomVocabularyItemResponse :: Int -> BatchDeleteCustomVocabularyItemResponse
newBatchDeleteCustomVocabularyItemResponse
Int
pHttpStatus_ =
BatchDeleteCustomVocabularyItemResponse'
{ $sel:botId:BatchDeleteCustomVocabularyItemResponse' :: Maybe Text
botId =
forall a. Maybe a
Prelude.Nothing,
$sel:botVersion:BatchDeleteCustomVocabularyItemResponse' :: Maybe Text
botVersion = forall a. Maybe a
Prelude.Nothing,
$sel:errors:BatchDeleteCustomVocabularyItemResponse' :: Maybe [FailedCustomVocabularyItem]
errors = forall a. Maybe a
Prelude.Nothing,
$sel:localeId:BatchDeleteCustomVocabularyItemResponse' :: Maybe Text
localeId = forall a. Maybe a
Prelude.Nothing,
$sel:resources:BatchDeleteCustomVocabularyItemResponse' :: Maybe [CustomVocabularyItem]
resources = forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:BatchDeleteCustomVocabularyItemResponse' :: Int
httpStatus = Int
pHttpStatus_
}
batchDeleteCustomVocabularyItemResponse_botId :: Lens.Lens' BatchDeleteCustomVocabularyItemResponse (Prelude.Maybe Prelude.Text)
batchDeleteCustomVocabularyItemResponse_botId :: Lens' BatchDeleteCustomVocabularyItemResponse (Maybe Text)
batchDeleteCustomVocabularyItemResponse_botId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDeleteCustomVocabularyItemResponse' {Maybe Text
botId :: Maybe Text
$sel:botId:BatchDeleteCustomVocabularyItemResponse' :: BatchDeleteCustomVocabularyItemResponse -> Maybe Text
botId} -> Maybe Text
botId) (\s :: BatchDeleteCustomVocabularyItemResponse
s@BatchDeleteCustomVocabularyItemResponse' {} Maybe Text
a -> BatchDeleteCustomVocabularyItemResponse
s {$sel:botId:BatchDeleteCustomVocabularyItemResponse' :: Maybe Text
botId = Maybe Text
a} :: BatchDeleteCustomVocabularyItemResponse)
batchDeleteCustomVocabularyItemResponse_botVersion :: Lens.Lens' BatchDeleteCustomVocabularyItemResponse (Prelude.Maybe Prelude.Text)
batchDeleteCustomVocabularyItemResponse_botVersion :: Lens' BatchDeleteCustomVocabularyItemResponse (Maybe Text)
batchDeleteCustomVocabularyItemResponse_botVersion = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDeleteCustomVocabularyItemResponse' {Maybe Text
botVersion :: Maybe Text
$sel:botVersion:BatchDeleteCustomVocabularyItemResponse' :: BatchDeleteCustomVocabularyItemResponse -> Maybe Text
botVersion} -> Maybe Text
botVersion) (\s :: BatchDeleteCustomVocabularyItemResponse
s@BatchDeleteCustomVocabularyItemResponse' {} Maybe Text
a -> BatchDeleteCustomVocabularyItemResponse
s {$sel:botVersion:BatchDeleteCustomVocabularyItemResponse' :: Maybe Text
botVersion = Maybe Text
a} :: BatchDeleteCustomVocabularyItemResponse)
batchDeleteCustomVocabularyItemResponse_errors :: Lens.Lens' BatchDeleteCustomVocabularyItemResponse (Prelude.Maybe [FailedCustomVocabularyItem])
batchDeleteCustomVocabularyItemResponse_errors :: Lens'
BatchDeleteCustomVocabularyItemResponse
(Maybe [FailedCustomVocabularyItem])
batchDeleteCustomVocabularyItemResponse_errors = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDeleteCustomVocabularyItemResponse' {Maybe [FailedCustomVocabularyItem]
errors :: Maybe [FailedCustomVocabularyItem]
$sel:errors:BatchDeleteCustomVocabularyItemResponse' :: BatchDeleteCustomVocabularyItemResponse
-> Maybe [FailedCustomVocabularyItem]
errors} -> Maybe [FailedCustomVocabularyItem]
errors) (\s :: BatchDeleteCustomVocabularyItemResponse
s@BatchDeleteCustomVocabularyItemResponse' {} Maybe [FailedCustomVocabularyItem]
a -> BatchDeleteCustomVocabularyItemResponse
s {$sel:errors:BatchDeleteCustomVocabularyItemResponse' :: Maybe [FailedCustomVocabularyItem]
errors = Maybe [FailedCustomVocabularyItem]
a} :: BatchDeleteCustomVocabularyItemResponse) 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
batchDeleteCustomVocabularyItemResponse_localeId :: Lens.Lens' BatchDeleteCustomVocabularyItemResponse (Prelude.Maybe Prelude.Text)
batchDeleteCustomVocabularyItemResponse_localeId :: Lens' BatchDeleteCustomVocabularyItemResponse (Maybe Text)
batchDeleteCustomVocabularyItemResponse_localeId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDeleteCustomVocabularyItemResponse' {Maybe Text
localeId :: Maybe Text
$sel:localeId:BatchDeleteCustomVocabularyItemResponse' :: BatchDeleteCustomVocabularyItemResponse -> Maybe Text
localeId} -> Maybe Text
localeId) (\s :: BatchDeleteCustomVocabularyItemResponse
s@BatchDeleteCustomVocabularyItemResponse' {} Maybe Text
a -> BatchDeleteCustomVocabularyItemResponse
s {$sel:localeId:BatchDeleteCustomVocabularyItemResponse' :: Maybe Text
localeId = Maybe Text
a} :: BatchDeleteCustomVocabularyItemResponse)
batchDeleteCustomVocabularyItemResponse_resources :: Lens.Lens' BatchDeleteCustomVocabularyItemResponse (Prelude.Maybe [CustomVocabularyItem])
batchDeleteCustomVocabularyItemResponse_resources :: Lens'
BatchDeleteCustomVocabularyItemResponse
(Maybe [CustomVocabularyItem])
batchDeleteCustomVocabularyItemResponse_resources = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDeleteCustomVocabularyItemResponse' {Maybe [CustomVocabularyItem]
resources :: Maybe [CustomVocabularyItem]
$sel:resources:BatchDeleteCustomVocabularyItemResponse' :: BatchDeleteCustomVocabularyItemResponse
-> Maybe [CustomVocabularyItem]
resources} -> Maybe [CustomVocabularyItem]
resources) (\s :: BatchDeleteCustomVocabularyItemResponse
s@BatchDeleteCustomVocabularyItemResponse' {} Maybe [CustomVocabularyItem]
a -> BatchDeleteCustomVocabularyItemResponse
s {$sel:resources:BatchDeleteCustomVocabularyItemResponse' :: Maybe [CustomVocabularyItem]
resources = Maybe [CustomVocabularyItem]
a} :: BatchDeleteCustomVocabularyItemResponse) 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
batchDeleteCustomVocabularyItemResponse_httpStatus :: Lens.Lens' BatchDeleteCustomVocabularyItemResponse Prelude.Int
batchDeleteCustomVocabularyItemResponse_httpStatus :: Lens' BatchDeleteCustomVocabularyItemResponse Int
batchDeleteCustomVocabularyItemResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDeleteCustomVocabularyItemResponse' {Int
httpStatus :: Int
$sel:httpStatus:BatchDeleteCustomVocabularyItemResponse' :: BatchDeleteCustomVocabularyItemResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: BatchDeleteCustomVocabularyItemResponse
s@BatchDeleteCustomVocabularyItemResponse' {} Int
a -> BatchDeleteCustomVocabularyItemResponse
s {$sel:httpStatus:BatchDeleteCustomVocabularyItemResponse' :: Int
httpStatus = Int
a} :: BatchDeleteCustomVocabularyItemResponse)
instance
Prelude.NFData
BatchDeleteCustomVocabularyItemResponse
where
rnf :: BatchDeleteCustomVocabularyItemResponse -> ()
rnf BatchDeleteCustomVocabularyItemResponse' {Int
Maybe [CustomVocabularyItem]
Maybe [FailedCustomVocabularyItem]
Maybe Text
httpStatus :: Int
resources :: Maybe [CustomVocabularyItem]
localeId :: Maybe Text
errors :: Maybe [FailedCustomVocabularyItem]
botVersion :: Maybe Text
botId :: Maybe Text
$sel:httpStatus:BatchDeleteCustomVocabularyItemResponse' :: BatchDeleteCustomVocabularyItemResponse -> Int
$sel:resources:BatchDeleteCustomVocabularyItemResponse' :: BatchDeleteCustomVocabularyItemResponse
-> Maybe [CustomVocabularyItem]
$sel:localeId:BatchDeleteCustomVocabularyItemResponse' :: BatchDeleteCustomVocabularyItemResponse -> Maybe Text
$sel:errors:BatchDeleteCustomVocabularyItemResponse' :: BatchDeleteCustomVocabularyItemResponse
-> Maybe [FailedCustomVocabularyItem]
$sel:botVersion:BatchDeleteCustomVocabularyItemResponse' :: BatchDeleteCustomVocabularyItemResponse -> Maybe Text
$sel:botId:BatchDeleteCustomVocabularyItemResponse' :: BatchDeleteCustomVocabularyItemResponse -> 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 [FailedCustomVocabularyItem]
errors
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 [CustomVocabularyItem]
resources
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus