Struct aws_sdk_connect::types::builders::VocabularySummaryBuilder
source · #[non_exhaustive]pub struct VocabularySummaryBuilder { /* private fields */ }
Expand description
A builder for VocabularySummary
.
Implementations§
source§impl VocabularySummaryBuilder
impl VocabularySummaryBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
A unique name of the custom vocabulary.
This field is required.sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The identifier of the custom vocabulary.
This field is required.sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the custom vocabulary.
This field is required.sourcepub fn set_arn(self, input: Option<String>) -> Self
pub fn set_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the custom vocabulary.
sourcepub fn get_arn(&self) -> &Option<String>
pub fn get_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the custom vocabulary.
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 state(self, input: VocabularyState) -> Self
pub fn state(self, input: VocabularyState) -> Self
The current state of the custom vocabulary.
This field is required.sourcepub fn set_state(self, input: Option<VocabularyState>) -> Self
pub fn set_state(self, input: Option<VocabularyState>) -> Self
The current state of the custom vocabulary.
sourcepub fn get_state(&self) -> &Option<VocabularyState>
pub fn get_state(&self) -> &Option<VocabularyState>
The current state of the custom vocabulary.
sourcepub fn last_modified_time(self, input: DateTime) -> Self
pub fn last_modified_time(self, input: DateTime) -> Self
The timestamp when the custom vocabulary was last modified.
This field is required.sourcepub fn set_last_modified_time(self, input: Option<DateTime>) -> Self
pub fn set_last_modified_time(self, input: Option<DateTime>) -> Self
The timestamp when the custom vocabulary was last modified.
sourcepub fn get_last_modified_time(&self) -> &Option<DateTime>
pub fn get_last_modified_time(&self) -> &Option<DateTime>
The timestamp when the custom vocabulary was last modified.
sourcepub fn failure_reason(self, input: impl Into<String>) -> Self
pub fn failure_reason(self, input: impl Into<String>) -> Self
The reason why the custom vocabulary was not created.
sourcepub fn set_failure_reason(self, input: Option<String>) -> Self
pub fn set_failure_reason(self, input: Option<String>) -> Self
The reason why the custom vocabulary was not created.
sourcepub fn get_failure_reason(&self) -> &Option<String>
pub fn get_failure_reason(&self) -> &Option<String>
The reason why the custom vocabulary was not created.
sourcepub fn build(self) -> Result<VocabularySummary, BuildError>
pub fn build(self) -> Result<VocabularySummary, BuildError>
Consumes the builder and constructs a VocabularySummary
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for VocabularySummaryBuilder
impl Clone for VocabularySummaryBuilder
source§fn clone(&self) -> VocabularySummaryBuilder
fn clone(&self) -> VocabularySummaryBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for VocabularySummaryBuilder
impl Debug for VocabularySummaryBuilder
source§impl Default for VocabularySummaryBuilder
impl Default for VocabularySummaryBuilder
source§fn default() -> VocabularySummaryBuilder
fn default() -> VocabularySummaryBuilder
source§impl PartialEq for VocabularySummaryBuilder
impl PartialEq for VocabularySummaryBuilder
source§fn eq(&self, other: &VocabularySummaryBuilder) -> bool
fn eq(&self, other: &VocabularySummaryBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.