Struct aws_sdk_lexmodelsv2::operation::batch_create_custom_vocabulary_item::builders::BatchCreateCustomVocabularyItemInputBuilder
source · #[non_exhaustive]pub struct BatchCreateCustomVocabularyItemInputBuilder { /* private fields */ }Expand description
A builder for BatchCreateCustomVocabularyItemInput.
Implementations§
source§impl BatchCreateCustomVocabularyItemInputBuilder
impl BatchCreateCustomVocabularyItemInputBuilder
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.
This field is required.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.
This field is required.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 .
This field is required.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 custom_vocabulary_item_list.
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.
sourcepub fn build(self) -> Result<BatchCreateCustomVocabularyItemInput, BuildError>
pub fn build(self) -> Result<BatchCreateCustomVocabularyItemInput, BuildError>
Consumes the builder and constructs a BatchCreateCustomVocabularyItemInput.
source§impl BatchCreateCustomVocabularyItemInputBuilder
impl BatchCreateCustomVocabularyItemInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<BatchCreateCustomVocabularyItemOutput, SdkError<BatchCreateCustomVocabularyItemError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<BatchCreateCustomVocabularyItemOutput, SdkError<BatchCreateCustomVocabularyItemError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for BatchCreateCustomVocabularyItemInputBuilder
impl Clone for BatchCreateCustomVocabularyItemInputBuilder
source§fn clone(&self) -> BatchCreateCustomVocabularyItemInputBuilder
fn clone(&self) -> BatchCreateCustomVocabularyItemInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for BatchCreateCustomVocabularyItemInputBuilder
impl Default for BatchCreateCustomVocabularyItemInputBuilder
source§fn default() -> BatchCreateCustomVocabularyItemInputBuilder
fn default() -> BatchCreateCustomVocabularyItemInputBuilder
source§impl PartialEq for BatchCreateCustomVocabularyItemInputBuilder
impl PartialEq for BatchCreateCustomVocabularyItemInputBuilder
source§fn eq(&self, other: &BatchCreateCustomVocabularyItemInputBuilder) -> bool
fn eq(&self, other: &BatchCreateCustomVocabularyItemInputBuilder) -> bool
self and other values to be equal, and is used
by ==.