Struct aws_sdk_lexmodelsv2::types::builders::VoiceSettingsBuilder
source · #[non_exhaustive]pub struct VoiceSettingsBuilder { /* private fields */ }Expand description
A builder for VoiceSettings.
Implementations§
source§impl VoiceSettingsBuilder
impl VoiceSettingsBuilder
sourcepub fn voice_id(self, input: impl Into<String>) -> Self
pub fn voice_id(self, input: impl Into<String>) -> Self
The identifier of the Amazon Polly voice to use.
This field is required.sourcepub fn set_voice_id(self, input: Option<String>) -> Self
pub fn set_voice_id(self, input: Option<String>) -> Self
The identifier of the Amazon Polly voice to use.
sourcepub fn get_voice_id(&self) -> &Option<String>
pub fn get_voice_id(&self) -> &Option<String>
The identifier of the Amazon Polly voice to use.
sourcepub fn engine(self, input: VoiceEngine) -> Self
pub fn engine(self, input: VoiceEngine) -> Self
Indicates the type of Amazon Polly voice that Amazon Lex should use for voice interaction with the user. For more information, see the engine parameter of the SynthesizeSpeech operation in the Amazon Polly developer guide.
If you do not specify a value, the default is standard.
sourcepub fn set_engine(self, input: Option<VoiceEngine>) -> Self
pub fn set_engine(self, input: Option<VoiceEngine>) -> Self
Indicates the type of Amazon Polly voice that Amazon Lex should use for voice interaction with the user. For more information, see the engine parameter of the SynthesizeSpeech operation in the Amazon Polly developer guide.
If you do not specify a value, the default is standard.
sourcepub fn get_engine(&self) -> &Option<VoiceEngine>
pub fn get_engine(&self) -> &Option<VoiceEngine>
Indicates the type of Amazon Polly voice that Amazon Lex should use for voice interaction with the user. For more information, see the engine parameter of the SynthesizeSpeech operation in the Amazon Polly developer guide.
If you do not specify a value, the default is standard.
sourcepub fn build(self) -> Result<VoiceSettings, BuildError>
pub fn build(self) -> Result<VoiceSettings, BuildError>
Consumes the builder and constructs a VoiceSettings.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for VoiceSettingsBuilder
impl Clone for VoiceSettingsBuilder
source§fn clone(&self) -> VoiceSettingsBuilder
fn clone(&self) -> VoiceSettingsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for VoiceSettingsBuilder
impl Debug for VoiceSettingsBuilder
source§impl Default for VoiceSettingsBuilder
impl Default for VoiceSettingsBuilder
source§fn default() -> VoiceSettingsBuilder
fn default() -> VoiceSettingsBuilder
source§impl PartialEq for VoiceSettingsBuilder
impl PartialEq for VoiceSettingsBuilder
source§fn eq(&self, other: &VoiceSettingsBuilder) -> bool
fn eq(&self, other: &VoiceSettingsBuilder) -> bool
self and other values to be equal, and is used
by ==.