#[non_exhaustive]pub struct FulfillmentUpdateResponseSpecificationBuilder { /* private fields */ }Expand description
A builder for FulfillmentUpdateResponseSpecification.
Implementations§
source§impl FulfillmentUpdateResponseSpecificationBuilder
impl FulfillmentUpdateResponseSpecificationBuilder
sourcepub fn frequency_in_seconds(self, input: i32) -> Self
pub fn frequency_in_seconds(self, input: i32) -> Self
The frequency that a message is sent to the user. When the period ends, Amazon Lex chooses a message from the message groups and plays it to the user. If the fulfillment Lambda returns before the first period ends, an update message is not played to the user.
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
The frequency that a message is sent to the user. When the period ends, Amazon Lex chooses a message from the message groups and plays it to the user. If the fulfillment Lambda returns before the first period ends, an update message is not played to the user.
sourcepub fn get_frequency_in_seconds(&self) -> &Option<i32>
pub fn get_frequency_in_seconds(&self) -> &Option<i32>
The frequency that a message is sent to the user. When the period ends, Amazon Lex chooses a message from the message groups and plays it to the user. If the fulfillment Lambda returns before the first period ends, an update message is not played to the user.
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.
1 - 5 message groups that contain update messages. Amazon Lex chooses one of the messages to play 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
1 - 5 message groups that contain update messages. Amazon Lex chooses one of the messages to play to the user.
sourcepub fn get_message_groups(&self) -> &Option<Vec<MessageGroup>>
pub fn get_message_groups(&self) -> &Option<Vec<MessageGroup>>
1 - 5 message groups that contain update messages. Amazon Lex chooses one of the messages to play to the user.
sourcepub fn allow_interrupt(self, input: bool) -> Self
pub fn allow_interrupt(self, input: bool) -> Self
Determines whether the user can interrupt an update message while it is playing.
sourcepub fn set_allow_interrupt(self, input: Option<bool>) -> Self
pub fn set_allow_interrupt(self, input: Option<bool>) -> Self
Determines whether the user can interrupt an update message while it is playing.
sourcepub fn get_allow_interrupt(&self) -> &Option<bool>
pub fn get_allow_interrupt(&self) -> &Option<bool>
Determines whether the user can interrupt an update message while it is playing.
sourcepub fn build(self) -> Result<FulfillmentUpdateResponseSpecification, BuildError>
pub fn build(self) -> Result<FulfillmentUpdateResponseSpecification, BuildError>
Consumes the builder and constructs a FulfillmentUpdateResponseSpecification.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for FulfillmentUpdateResponseSpecificationBuilder
impl Clone for FulfillmentUpdateResponseSpecificationBuilder
source§fn clone(&self) -> FulfillmentUpdateResponseSpecificationBuilder
fn clone(&self) -> FulfillmentUpdateResponseSpecificationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for FulfillmentUpdateResponseSpecificationBuilder
impl Default for FulfillmentUpdateResponseSpecificationBuilder
source§fn default() -> FulfillmentUpdateResponseSpecificationBuilder
fn default() -> FulfillmentUpdateResponseSpecificationBuilder
source§impl PartialEq for FulfillmentUpdateResponseSpecificationBuilder
impl PartialEq for FulfillmentUpdateResponseSpecificationBuilder
source§fn eq(&self, other: &FulfillmentUpdateResponseSpecificationBuilder) -> bool
fn eq(&self, other: &FulfillmentUpdateResponseSpecificationBuilder) -> bool
self and other values to be equal, and is used
by ==.