Struct aws_sdk_lexmodelsv2::model::message_group::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for MessageGroup.
Implementations§
source§impl Builder
impl Builder
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.
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 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 build(self) -> MessageGroup
pub fn build(self) -> MessageGroup
Consumes the builder and constructs a MessageGroup.