#[non_exhaustive]pub struct StillWaitingResponseSpecificationBuilder { /* private fields */ }Expand description
A builder for StillWaitingResponseSpecification.
Implementations§
source§impl StillWaitingResponseSpecificationBuilder
impl StillWaitingResponseSpecificationBuilder
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.
One or more message groups, each containing one or more messages, that define the prompts that Amazon Lex sends to the user.
sourcepub fn set_message_groups(self, input: Option<Vec<MessageGroup>>) -> Self
pub fn set_message_groups(self, input: Option<Vec<MessageGroup>>) -> Self
One or more message groups, each containing one or more messages, that define the prompts that Amazon Lex sends to the user.
sourcepub fn get_message_groups(&self) -> &Option<Vec<MessageGroup>>
pub fn get_message_groups(&self) -> &Option<Vec<MessageGroup>>
One or more message groups, each containing one or more messages, that define the prompts that Amazon Lex sends to the user.
sourcepub fn frequency_in_seconds(self, input: i32) -> Self
pub fn frequency_in_seconds(self, input: i32) -> Self
How often a message should be sent to the user. Minimum of 1 second, maximum of 5 minutes.
This field is required.sourcepub fn set_frequency_in_seconds(self, input: Option<i32>) -> Self
pub fn set_frequency_in_seconds(self, input: Option<i32>) -> Self
How often a message should be sent to the user. Minimum of 1 second, maximum of 5 minutes.
sourcepub fn get_frequency_in_seconds(&self) -> &Option<i32>
pub fn get_frequency_in_seconds(&self) -> &Option<i32>
How often a message should be sent to the user. Minimum of 1 second, maximum of 5 minutes.
sourcepub fn timeout_in_seconds(self, input: i32) -> Self
pub fn timeout_in_seconds(self, input: i32) -> Self
If Amazon Lex waits longer than this length of time for a response, it will stop sending messages.
This field is required.sourcepub fn set_timeout_in_seconds(self, input: Option<i32>) -> Self
pub fn set_timeout_in_seconds(self, input: Option<i32>) -> Self
If Amazon Lex waits longer than this length of time for a response, it will stop sending messages.
sourcepub fn get_timeout_in_seconds(&self) -> &Option<i32>
pub fn get_timeout_in_seconds(&self) -> &Option<i32>
If Amazon Lex waits longer than this length of time for a response, it will stop sending messages.
sourcepub fn allow_interrupt(self, input: bool) -> Self
pub fn allow_interrupt(self, input: bool) -> Self
Indicates that the user can interrupt the response by speaking while the message is being played.
sourcepub fn set_allow_interrupt(self, input: Option<bool>) -> Self
pub fn set_allow_interrupt(self, input: Option<bool>) -> Self
Indicates that the user can interrupt the response by speaking while the message is being played.
sourcepub fn get_allow_interrupt(&self) -> &Option<bool>
pub fn get_allow_interrupt(&self) -> &Option<bool>
Indicates that the user can interrupt the response by speaking while the message is being played.
sourcepub fn build(self) -> Result<StillWaitingResponseSpecification, BuildError>
pub fn build(self) -> Result<StillWaitingResponseSpecification, BuildError>
Consumes the builder and constructs a StillWaitingResponseSpecification.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for StillWaitingResponseSpecificationBuilder
impl Clone for StillWaitingResponseSpecificationBuilder
source§fn clone(&self) -> StillWaitingResponseSpecificationBuilder
fn clone(&self) -> StillWaitingResponseSpecificationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for StillWaitingResponseSpecificationBuilder
impl Default for StillWaitingResponseSpecificationBuilder
source§fn default() -> StillWaitingResponseSpecificationBuilder
fn default() -> StillWaitingResponseSpecificationBuilder
source§impl PartialEq for StillWaitingResponseSpecificationBuilder
impl PartialEq for StillWaitingResponseSpecificationBuilder
source§fn eq(&self, other: &StillWaitingResponseSpecificationBuilder) -> bool
fn eq(&self, other: &StillWaitingResponseSpecificationBuilder) -> bool
self and other values to be equal, and is used
by ==.