Struct aws_sdk_lexmodelsv2::operation::batch_create_custom_vocabulary_item::builders::BatchCreateCustomVocabularyItemFluentBuilder
source · pub struct BatchCreateCustomVocabularyItemFluentBuilder { /* private fields */ }Expand description
Fluent builder constructing a request to BatchCreateCustomVocabularyItem.
Create a batch of custom vocabulary items for a given bot locale's custom vocabulary.
Implementations§
source§impl BatchCreateCustomVocabularyItemFluentBuilder
impl BatchCreateCustomVocabularyItemFluentBuilder
sourcepub fn as_input(&self) -> &BatchCreateCustomVocabularyItemInputBuilder
pub fn as_input(&self) -> &BatchCreateCustomVocabularyItemInputBuilder
Access the BatchCreateCustomVocabularyItem as a reference.
sourcepub async fn send(
self
) -> Result<BatchCreateCustomVocabularyItemOutput, SdkError<BatchCreateCustomVocabularyItemError, HttpResponse>>
pub async fn send( self ) -> Result<BatchCreateCustomVocabularyItemOutput, SdkError<BatchCreateCustomVocabularyItemError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<BatchCreateCustomVocabularyItemOutput, BatchCreateCustomVocabularyItemError, Self>
pub fn customize( self ) -> CustomizableOperation<BatchCreateCustomVocabularyItemOutput, BatchCreateCustomVocabularyItemError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn bot_id(self, input: impl Into<String>) -> Self
pub fn bot_id(self, input: impl Into<String>) -> Self
The identifier of the bot associated with this custom vocabulary.
sourcepub fn set_bot_id(self, input: Option<String>) -> Self
pub fn set_bot_id(self, input: Option<String>) -> Self
The identifier of the bot associated with this custom vocabulary.
sourcepub fn get_bot_id(&self) -> &Option<String>
pub fn get_bot_id(&self) -> &Option<String>
The identifier of the bot associated with this custom vocabulary.
sourcepub fn bot_version(self, input: impl Into<String>) -> Self
pub fn bot_version(self, input: impl Into<String>) -> Self
The identifier of the version of the bot associated with this custom vocabulary.
sourcepub fn set_bot_version(self, input: Option<String>) -> Self
pub fn set_bot_version(self, input: Option<String>) -> Self
The identifier of the version of the bot associated with this custom vocabulary.
sourcepub fn get_bot_version(&self) -> &Option<String>
pub fn get_bot_version(&self) -> &Option<String>
The identifier of the version of the bot associated with this custom vocabulary.
sourcepub fn locale_id(self, input: impl Into<String>) -> Self
pub fn locale_id(self, input: impl Into<String>) -> Self
The identifier of the language and locale where this custom vocabulary is used. The string must match one of the supported locales. For more information, see Supported Languages .
sourcepub fn set_locale_id(self, input: Option<String>) -> Self
pub fn set_locale_id(self, input: Option<String>) -> Self
The identifier of the language and locale where this custom vocabulary is used. The string must match one of the supported locales. For more information, see Supported Languages .
sourcepub fn get_locale_id(&self) -> &Option<String>
pub fn get_locale_id(&self) -> &Option<String>
The identifier of the language and locale where this custom vocabulary is used. The string must match one of the supported locales. For more information, see Supported Languages .
sourcepub fn custom_vocabulary_item_list(self, input: NewCustomVocabularyItem) -> Self
pub fn custom_vocabulary_item_list(self, input: NewCustomVocabularyItem) -> Self
Appends an item to customVocabularyItemList.
To override the contents of this collection use set_custom_vocabulary_item_list.
A list of new custom vocabulary items. Each entry must contain a phrase and can optionally contain a displayAs and/or a weight.
sourcepub fn set_custom_vocabulary_item_list(
self,
input: Option<Vec<NewCustomVocabularyItem>>
) -> Self
pub fn set_custom_vocabulary_item_list( self, input: Option<Vec<NewCustomVocabularyItem>> ) -> Self
A list of new custom vocabulary items. Each entry must contain a phrase and can optionally contain a displayAs and/or a weight.
sourcepub fn get_custom_vocabulary_item_list(
&self
) -> &Option<Vec<NewCustomVocabularyItem>>
pub fn get_custom_vocabulary_item_list( &self ) -> &Option<Vec<NewCustomVocabularyItem>>
A list of new custom vocabulary items. Each entry must contain a phrase and can optionally contain a displayAs and/or a weight.
Trait Implementations§
source§impl Clone for BatchCreateCustomVocabularyItemFluentBuilder
impl Clone for BatchCreateCustomVocabularyItemFluentBuilder
source§fn clone(&self) -> BatchCreateCustomVocabularyItemFluentBuilder
fn clone(&self) -> BatchCreateCustomVocabularyItemFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more