Struct aws_sdk_connect::types::builders::DefaultVocabularyBuilder
source · #[non_exhaustive]pub struct DefaultVocabularyBuilder { /* private fields */ }
Expand description
A builder for DefaultVocabulary
.
Implementations§
source§impl DefaultVocabularyBuilder
impl DefaultVocabularyBuilder
sourcepub fn instance_id(self, input: impl Into<String>) -> Self
pub fn instance_id(self, input: impl Into<String>) -> Self
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
This field is required.sourcepub fn set_instance_id(self, input: Option<String>) -> Self
pub fn set_instance_id(self, input: Option<String>) -> Self
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
sourcepub fn get_instance_id(&self) -> &Option<String>
pub fn get_instance_id(&self) -> &Option<String>
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
sourcepub fn language_code(self, input: VocabularyLanguageCode) -> Self
pub fn language_code(self, input: VocabularyLanguageCode) -> Self
The language code of the vocabulary entries. For a list of languages and their corresponding language codes, see What is Amazon Transcribe?
This field is required.sourcepub fn set_language_code(self, input: Option<VocabularyLanguageCode>) -> Self
pub fn set_language_code(self, input: Option<VocabularyLanguageCode>) -> Self
The language code of the vocabulary entries. For a list of languages and their corresponding language codes, see What is Amazon Transcribe?
sourcepub fn get_language_code(&self) -> &Option<VocabularyLanguageCode>
pub fn get_language_code(&self) -> &Option<VocabularyLanguageCode>
The language code of the vocabulary entries. For a list of languages and their corresponding language codes, see What is Amazon Transcribe?
sourcepub fn vocabulary_id(self, input: impl Into<String>) -> Self
pub fn vocabulary_id(self, input: impl Into<String>) -> Self
The identifier of the custom vocabulary.
This field is required.sourcepub fn set_vocabulary_id(self, input: Option<String>) -> Self
pub fn set_vocabulary_id(self, input: Option<String>) -> Self
The identifier of the custom vocabulary.
sourcepub fn get_vocabulary_id(&self) -> &Option<String>
pub fn get_vocabulary_id(&self) -> &Option<String>
The identifier of the custom vocabulary.
sourcepub fn vocabulary_name(self, input: impl Into<String>) -> Self
pub fn vocabulary_name(self, input: impl Into<String>) -> Self
A unique name of the custom vocabulary.
This field is required.sourcepub fn set_vocabulary_name(self, input: Option<String>) -> Self
pub fn set_vocabulary_name(self, input: Option<String>) -> Self
A unique name of the custom vocabulary.
sourcepub fn get_vocabulary_name(&self) -> &Option<String>
pub fn get_vocabulary_name(&self) -> &Option<String>
A unique name of the custom vocabulary.
sourcepub fn build(self) -> Result<DefaultVocabulary, BuildError>
pub fn build(self) -> Result<DefaultVocabulary, BuildError>
Consumes the builder and constructs a DefaultVocabulary
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for DefaultVocabularyBuilder
impl Clone for DefaultVocabularyBuilder
source§fn clone(&self) -> DefaultVocabularyBuilder
fn clone(&self) -> DefaultVocabularyBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DefaultVocabularyBuilder
impl Debug for DefaultVocabularyBuilder
source§impl Default for DefaultVocabularyBuilder
impl Default for DefaultVocabularyBuilder
source§fn default() -> DefaultVocabularyBuilder
fn default() -> DefaultVocabularyBuilder
source§impl PartialEq for DefaultVocabularyBuilder
impl PartialEq for DefaultVocabularyBuilder
source§fn eq(&self, other: &DefaultVocabularyBuilder) -> bool
fn eq(&self, other: &DefaultVocabularyBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.