Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Batch update custom vocabulary item for the specified locale in the specified bot.
Synopsis
- data BatchUpdateCustomVocabularyItem = BatchUpdateCustomVocabularyItem' {}
- newBatchUpdateCustomVocabularyItem :: Text -> Text -> Text -> NonEmpty CustomVocabularyItem -> BatchUpdateCustomVocabularyItem
- batchUpdateCustomVocabularyItem_botId :: Lens' BatchUpdateCustomVocabularyItem Text
- batchUpdateCustomVocabularyItem_botVersion :: Lens' BatchUpdateCustomVocabularyItem Text
- batchUpdateCustomVocabularyItem_localeId :: Lens' BatchUpdateCustomVocabularyItem Text
- batchUpdateCustomVocabularyItem_customVocabularyItemList :: Lens' BatchUpdateCustomVocabularyItem (NonEmpty CustomVocabularyItem)
- data BatchUpdateCustomVocabularyItemResponse = BatchUpdateCustomVocabularyItemResponse' {}
- newBatchUpdateCustomVocabularyItemResponse :: Int -> BatchUpdateCustomVocabularyItemResponse
- batchUpdateCustomVocabularyItemResponse_botId :: Lens' BatchUpdateCustomVocabularyItemResponse (Maybe Text)
- batchUpdateCustomVocabularyItemResponse_botVersion :: Lens' BatchUpdateCustomVocabularyItemResponse (Maybe Text)
- batchUpdateCustomVocabularyItemResponse_errors :: Lens' BatchUpdateCustomVocabularyItemResponse (Maybe [FailedCustomVocabularyItem])
- batchUpdateCustomVocabularyItemResponse_localeId :: Lens' BatchUpdateCustomVocabularyItemResponse (Maybe Text)
- batchUpdateCustomVocabularyItemResponse_resources :: Lens' BatchUpdateCustomVocabularyItemResponse (Maybe [CustomVocabularyItem])
- batchUpdateCustomVocabularyItemResponse_httpStatus :: Lens' BatchUpdateCustomVocabularyItemResponse Int
Creating a Request
data BatchUpdateCustomVocabularyItem Source #
See: newBatchUpdateCustomVocabularyItem
smart constructor.
BatchUpdateCustomVocabularyItem' | |
|
Instances
newBatchUpdateCustomVocabularyItem Source #
:: Text | |
-> Text | |
-> Text | |
-> NonEmpty CustomVocabularyItem |
|
-> BatchUpdateCustomVocabularyItem |
Create a value of BatchUpdateCustomVocabularyItem
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
BatchUpdateCustomVocabularyItem
, batchUpdateCustomVocabularyItem_botId
- The unique identifier of the bot to the batch update request for the
custom vocabulary item.
BatchUpdateCustomVocabularyItem
, batchUpdateCustomVocabularyItem_botVersion
- The bot version of the bot to the batch update request for the custom
vocabulary item.
BatchUpdateCustomVocabularyItem
, batchUpdateCustomVocabularyItem_localeId
- The locale identifier of the bot to the batch update request for the
custom vocabulary item.
$sel:customVocabularyItemList:BatchUpdateCustomVocabularyItem'
, batchUpdateCustomVocabularyItem_customVocabularyItemList
- The custom vocabulary item list of the bot to the batch update request
for the custom vocabulary item.
Request Lenses
batchUpdateCustomVocabularyItem_botId :: Lens' BatchUpdateCustomVocabularyItem Text Source #
The unique identifier of the bot to the batch update request for the custom vocabulary item.
batchUpdateCustomVocabularyItem_botVersion :: Lens' BatchUpdateCustomVocabularyItem Text Source #
The bot version of the bot to the batch update request for the custom vocabulary item.
batchUpdateCustomVocabularyItem_localeId :: Lens' BatchUpdateCustomVocabularyItem Text Source #
The locale identifier of the bot to the batch update request for the custom vocabulary item.
batchUpdateCustomVocabularyItem_customVocabularyItemList :: Lens' BatchUpdateCustomVocabularyItem (NonEmpty CustomVocabularyItem) Source #
The custom vocabulary item list of the bot to the batch update request for the custom vocabulary item.
Destructuring the Response
data BatchUpdateCustomVocabularyItemResponse Source #
See: newBatchUpdateCustomVocabularyItemResponse
smart constructor.
BatchUpdateCustomVocabularyItemResponse' | |
|
Instances
newBatchUpdateCustomVocabularyItemResponse Source #
Create a value of BatchUpdateCustomVocabularyItemResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
BatchUpdateCustomVocabularyItem
, batchUpdateCustomVocabularyItemResponse_botId
- The unique identifier of the bot to the batch update response for the
custom vocabulary item.
BatchUpdateCustomVocabularyItem
, batchUpdateCustomVocabularyItemResponse_botVersion
- The bot version of the bot to the batch update response for the custom
vocabulary item.
$sel:errors:BatchUpdateCustomVocabularyItemResponse'
, batchUpdateCustomVocabularyItemResponse_errors
- The errors of the action to batch update response for the custom
vocabulary item.
BatchUpdateCustomVocabularyItem
, batchUpdateCustomVocabularyItemResponse_localeId
- The locale identifier of the bot to the batch update response for the
custom vocabulary item.
$sel:resources:BatchUpdateCustomVocabularyItemResponse'
, batchUpdateCustomVocabularyItemResponse_resources
- The resources of the action to batch update response for the custom
vocabulary item.
$sel:httpStatus:BatchUpdateCustomVocabularyItemResponse'
, batchUpdateCustomVocabularyItemResponse_httpStatus
- The response's http status code.
Response Lenses
batchUpdateCustomVocabularyItemResponse_botId :: Lens' BatchUpdateCustomVocabularyItemResponse (Maybe Text) Source #
The unique identifier of the bot to the batch update response for the custom vocabulary item.
batchUpdateCustomVocabularyItemResponse_botVersion :: Lens' BatchUpdateCustomVocabularyItemResponse (Maybe Text) Source #
The bot version of the bot to the batch update response for the custom vocabulary item.
batchUpdateCustomVocabularyItemResponse_errors :: Lens' BatchUpdateCustomVocabularyItemResponse (Maybe [FailedCustomVocabularyItem]) Source #
The errors of the action to batch update response for the custom vocabulary item.
batchUpdateCustomVocabularyItemResponse_localeId :: Lens' BatchUpdateCustomVocabularyItemResponse (Maybe Text) Source #
The locale identifier of the bot to the batch update response for the custom vocabulary item.
batchUpdateCustomVocabularyItemResponse_resources :: Lens' BatchUpdateCustomVocabularyItemResponse (Maybe [CustomVocabularyItem]) Source #
The resources of the action to batch update response for the custom vocabulary item.
batchUpdateCustomVocabularyItemResponse_httpStatus :: Lens' BatchUpdateCustomVocabularyItemResponse Int Source #
The response's http status code.