#[non_exhaustive]pub struct SsmlMessageTypeBuilder { /* private fields */ }
Expand description
A builder for SsmlMessageType
.
Implementations§
source§impl SsmlMessageTypeBuilder
impl SsmlMessageTypeBuilder
sourcepub fn language_code(self, input: impl Into<String>) -> Self
pub fn language_code(self, input: impl Into<String>) -> Self
The language to use when delivering the message. For a complete list of supported languages, see the Amazon Polly Developer Guide.
sourcepub fn set_language_code(self, input: Option<String>) -> Self
pub fn set_language_code(self, input: Option<String>) -> Self
The language to use when delivering the message. For a complete list of supported languages, see the Amazon Polly Developer Guide.
sourcepub fn get_language_code(&self) -> &Option<String>
pub fn get_language_code(&self) -> &Option<String>
The language to use when delivering the message. For a complete list of supported languages, see the Amazon Polly Developer Guide.
sourcepub fn text(self, input: impl Into<String>) -> Self
pub fn text(self, input: impl Into<String>) -> Self
The SSML-formatted text to deliver to the recipient.
sourcepub fn set_text(self, input: Option<String>) -> Self
pub fn set_text(self, input: Option<String>) -> Self
The SSML-formatted text to deliver to the recipient.
sourcepub fn voice_id(self, input: impl Into<String>) -> Self
pub fn voice_id(self, input: impl Into<String>) -> Self
The name of the voice that you want to use to deliver the message. For a complete list of supported voices, see the Amazon Polly Developer Guide.
sourcepub fn set_voice_id(self, input: Option<String>) -> Self
pub fn set_voice_id(self, input: Option<String>) -> Self
The name of the voice that you want to use to deliver the message. For a complete list of supported voices, see the Amazon Polly Developer Guide.
sourcepub fn get_voice_id(&self) -> &Option<String>
pub fn get_voice_id(&self) -> &Option<String>
The name of the voice that you want to use to deliver the message. For a complete list of supported voices, see the Amazon Polly Developer Guide.
sourcepub fn build(self) -> SsmlMessageType
pub fn build(self) -> SsmlMessageType
Consumes the builder and constructs a SsmlMessageType
.
Trait Implementations§
source§impl Clone for SsmlMessageTypeBuilder
impl Clone for SsmlMessageTypeBuilder
source§fn clone(&self) -> SsmlMessageTypeBuilder
fn clone(&self) -> SsmlMessageTypeBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SsmlMessageTypeBuilder
impl Debug for SsmlMessageTypeBuilder
source§impl Default for SsmlMessageTypeBuilder
impl Default for SsmlMessageTypeBuilder
source§fn default() -> SsmlMessageTypeBuilder
fn default() -> SsmlMessageTypeBuilder
source§impl PartialEq for SsmlMessageTypeBuilder
impl PartialEq for SsmlMessageTypeBuilder
source§fn eq(&self, other: &SsmlMessageTypeBuilder) -> bool
fn eq(&self, other: &SsmlMessageTypeBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SsmlMessageTypeBuilder
Auto Trait Implementations§
impl Freeze for SsmlMessageTypeBuilder
impl RefUnwindSafe for SsmlMessageTypeBuilder
impl Send for SsmlMessageTypeBuilder
impl Sync for SsmlMessageTypeBuilder
impl Unpin for SsmlMessageTypeBuilder
impl UnwindSafe for SsmlMessageTypeBuilder
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