Struct aws_sdk_lexmodelsv2::types::builders::MessageGroupBuilder
source · #[non_exhaustive]pub struct MessageGroupBuilder { /* private fields */ }
Expand description
A builder for MessageGroup
.
Implementations§
source§impl MessageGroupBuilder
impl MessageGroupBuilder
sourcepub fn message(self, input: Message) -> Self
pub fn message(self, input: Message) -> Self
The primary message that Amazon Lex should send to the user.
This field is required.sourcepub fn set_message(self, input: Option<Message>) -> Self
pub fn set_message(self, input: Option<Message>) -> Self
The primary message that Amazon Lex should send to the user.
sourcepub fn get_message(&self) -> &Option<Message>
pub fn get_message(&self) -> &Option<Message>
The primary message that Amazon Lex should send to the user.
sourcepub fn variations(self, input: Message) -> Self
pub fn variations(self, input: Message) -> Self
Appends an item to variations
.
To override the contents of this collection use set_variations
.
Message variations to send to the user. When variations are defined, Amazon Lex chooses the primary message or one of the variations to send to the user.
sourcepub fn set_variations(self, input: Option<Vec<Message>>) -> Self
pub fn set_variations(self, input: Option<Vec<Message>>) -> Self
Message variations to send to the user. When variations are defined, Amazon Lex chooses the primary message or one of the variations to send to the user.
sourcepub fn get_variations(&self) -> &Option<Vec<Message>>
pub fn get_variations(&self) -> &Option<Vec<Message>>
Message variations to send to the user. When variations are defined, Amazon Lex chooses the primary message or one of the variations to send to the user.
sourcepub fn build(self) -> MessageGroup
pub fn build(self) -> MessageGroup
Consumes the builder and constructs a MessageGroup
.
Trait Implementations§
source§impl Clone for MessageGroupBuilder
impl Clone for MessageGroupBuilder
source§fn clone(&self) -> MessageGroupBuilder
fn clone(&self) -> MessageGroupBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MessageGroupBuilder
impl Debug for MessageGroupBuilder
source§impl Default for MessageGroupBuilder
impl Default for MessageGroupBuilder
source§fn default() -> MessageGroupBuilder
fn default() -> MessageGroupBuilder
source§impl PartialEq for MessageGroupBuilder
impl PartialEq for MessageGroupBuilder
source§fn eq(&self, other: &MessageGroupBuilder) -> bool
fn eq(&self, other: &MessageGroupBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.