#[non_exhaustive]pub struct PlainTextMessageTypeBuilder { /* private fields */ }
Expand description
A builder for PlainTextMessageType
.
Implementations§
source§impl PlainTextMessageTypeBuilder
impl PlainTextMessageTypeBuilder
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 plain (not 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 plain (not SSML-formatted) text to deliver to the recipient.
sourcepub fn get_text(&self) -> &Option<String>
pub fn get_text(&self) -> &Option<String>
The plain (not 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) -> PlainTextMessageType
pub fn build(self) -> PlainTextMessageType
Consumes the builder and constructs a PlainTextMessageType
.
Trait Implementations§
source§impl Clone for PlainTextMessageTypeBuilder
impl Clone for PlainTextMessageTypeBuilder
source§fn clone(&self) -> PlainTextMessageTypeBuilder
fn clone(&self) -> PlainTextMessageTypeBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PlainTextMessageTypeBuilder
impl Debug for PlainTextMessageTypeBuilder
source§impl Default for PlainTextMessageTypeBuilder
impl Default for PlainTextMessageTypeBuilder
source§fn default() -> PlainTextMessageTypeBuilder
fn default() -> PlainTextMessageTypeBuilder
source§impl PartialEq for PlainTextMessageTypeBuilder
impl PartialEq for PlainTextMessageTypeBuilder
source§fn eq(&self, other: &PlainTextMessageTypeBuilder) -> bool
fn eq(&self, other: &PlainTextMessageTypeBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PlainTextMessageTypeBuilder
Auto Trait Implementations§
impl Freeze for PlainTextMessageTypeBuilder
impl RefUnwindSafe for PlainTextMessageTypeBuilder
impl Send for PlainTextMessageTypeBuilder
impl Sync for PlainTextMessageTypeBuilder
impl Unpin for PlainTextMessageTypeBuilder
impl UnwindSafe for PlainTextMessageTypeBuilder
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