#[non_exhaustive]pub struct ResponseSpecificationBuilder { /* private fields */ }
Expand description
A builder for ResponseSpecification
.
Implementations§
source§impl ResponseSpecificationBuilder
impl ResponseSpecificationBuilder
sourcepub fn message_groups(self, input: MessageGroup) -> Self
pub fn message_groups(self, input: MessageGroup) -> Self
Appends an item to message_groups
.
To override the contents of this collection use set_message_groups
.
A collection of responses that Amazon Lex can send to the user. Amazon Lex chooses the actual response to send at runtime.
sourcepub fn set_message_groups(self, input: Option<Vec<MessageGroup>>) -> Self
pub fn set_message_groups(self, input: Option<Vec<MessageGroup>>) -> Self
A collection of responses that Amazon Lex can send to the user. Amazon Lex chooses the actual response to send at runtime.
sourcepub fn get_message_groups(&self) -> &Option<Vec<MessageGroup>>
pub fn get_message_groups(&self) -> &Option<Vec<MessageGroup>>
A collection of responses that Amazon Lex can send to the user. Amazon Lex chooses the actual response to send at runtime.
sourcepub fn allow_interrupt(self, input: bool) -> Self
pub fn allow_interrupt(self, input: bool) -> Self
Indicates whether the user can interrupt a speech response from Amazon Lex.
sourcepub fn set_allow_interrupt(self, input: Option<bool>) -> Self
pub fn set_allow_interrupt(self, input: Option<bool>) -> Self
Indicates whether the user can interrupt a speech response from Amazon Lex.
sourcepub fn get_allow_interrupt(&self) -> &Option<bool>
pub fn get_allow_interrupt(&self) -> &Option<bool>
Indicates whether the user can interrupt a speech response from Amazon Lex.
sourcepub fn build(self) -> Result<ResponseSpecification, BuildError>
pub fn build(self) -> Result<ResponseSpecification, BuildError>
Consumes the builder and constructs a ResponseSpecification
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ResponseSpecificationBuilder
impl Clone for ResponseSpecificationBuilder
source§fn clone(&self) -> ResponseSpecificationBuilder
fn clone(&self) -> ResponseSpecificationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ResponseSpecificationBuilder
impl Debug for ResponseSpecificationBuilder
source§impl Default for ResponseSpecificationBuilder
impl Default for ResponseSpecificationBuilder
source§fn default() -> ResponseSpecificationBuilder
fn default() -> ResponseSpecificationBuilder
source§impl PartialEq for ResponseSpecificationBuilder
impl PartialEq for ResponseSpecificationBuilder
source§fn eq(&self, other: &ResponseSpecificationBuilder) -> bool
fn eq(&self, other: &ResponseSpecificationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.