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 ==.impl StructuralPartialEq for DefaultVocabularyBuilder
Auto Trait Implementations§
impl Freeze for DefaultVocabularyBuilder
impl RefUnwindSafe for DefaultVocabularyBuilder
impl Send for DefaultVocabularyBuilder
impl Sync for DefaultVocabularyBuilder
impl Unpin for DefaultVocabularyBuilder
impl UnwindSafe for DefaultVocabularyBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more