Struct aws_sdk_lexmodelsv2::types::builders::MessageBuilder
source · #[non_exhaustive]pub struct MessageBuilder { /* private fields */ }
Expand description
A builder for Message
.
Implementations§
source§impl MessageBuilder
impl MessageBuilder
sourcepub fn plain_text_message(self, input: PlainTextMessage) -> Self
pub fn plain_text_message(self, input: PlainTextMessage) -> Self
A message in plain text format.
sourcepub fn set_plain_text_message(self, input: Option<PlainTextMessage>) -> Self
pub fn set_plain_text_message(self, input: Option<PlainTextMessage>) -> Self
A message in plain text format.
sourcepub fn get_plain_text_message(&self) -> &Option<PlainTextMessage>
pub fn get_plain_text_message(&self) -> &Option<PlainTextMessage>
A message in plain text format.
sourcepub fn custom_payload(self, input: CustomPayload) -> Self
pub fn custom_payload(self, input: CustomPayload) -> Self
A message in a custom format defined by the client application.
sourcepub fn set_custom_payload(self, input: Option<CustomPayload>) -> Self
pub fn set_custom_payload(self, input: Option<CustomPayload>) -> Self
A message in a custom format defined by the client application.
sourcepub fn get_custom_payload(&self) -> &Option<CustomPayload>
pub fn get_custom_payload(&self) -> &Option<CustomPayload>
A message in a custom format defined by the client application.
sourcepub fn ssml_message(self, input: SsmlMessage) -> Self
pub fn ssml_message(self, input: SsmlMessage) -> Self
A message in Speech Synthesis Markup Language (SSML).
sourcepub fn set_ssml_message(self, input: Option<SsmlMessage>) -> Self
pub fn set_ssml_message(self, input: Option<SsmlMessage>) -> Self
A message in Speech Synthesis Markup Language (SSML).
sourcepub fn get_ssml_message(&self) -> &Option<SsmlMessage>
pub fn get_ssml_message(&self) -> &Option<SsmlMessage>
A message in Speech Synthesis Markup Language (SSML).
sourcepub fn image_response_card(self, input: ImageResponseCard) -> Self
pub fn image_response_card(self, input: ImageResponseCard) -> Self
A message that defines a response card that the client application can show to the user.
sourcepub fn set_image_response_card(self, input: Option<ImageResponseCard>) -> Self
pub fn set_image_response_card(self, input: Option<ImageResponseCard>) -> Self
A message that defines a response card that the client application can show to the user.
sourcepub fn get_image_response_card(&self) -> &Option<ImageResponseCard>
pub fn get_image_response_card(&self) -> &Option<ImageResponseCard>
A message that defines a response card that the client application can show to the user.
Trait Implementations§
source§impl Clone for MessageBuilder
impl Clone for MessageBuilder
source§fn clone(&self) -> MessageBuilder
fn clone(&self) -> MessageBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MessageBuilder
impl Debug for MessageBuilder
source§impl Default for MessageBuilder
impl Default for MessageBuilder
source§fn default() -> MessageBuilder
fn default() -> MessageBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for MessageBuilder
impl PartialEq for MessageBuilder
source§fn eq(&self, other: &MessageBuilder) -> bool
fn eq(&self, other: &MessageBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for MessageBuilder
Auto Trait Implementations§
impl Freeze for MessageBuilder
impl RefUnwindSafe for MessageBuilder
impl Send for MessageBuilder
impl Sync for MessageBuilder
impl Unpin for MessageBuilder
impl UnwindSafe for MessageBuilder
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.