#[non_exhaustive]pub struct FulfillmentStartResponseSpecificationBuilder { /* private fields */ }Expand description
A builder for FulfillmentStartResponseSpecification.
Implementations§
source§impl FulfillmentStartResponseSpecificationBuilder
impl FulfillmentStartResponseSpecificationBuilder
sourcepub fn delay_in_seconds(self, input: i32) -> Self
pub fn delay_in_seconds(self, input: i32) -> Self
The delay between when the Lambda fulfillment function starts running and the start message is played. If the Lambda function returns before the delay is over, the start message isn't played.
This field is required.sourcepub fn set_delay_in_seconds(self, input: Option<i32>) -> Self
pub fn set_delay_in_seconds(self, input: Option<i32>) -> Self
The delay between when the Lambda fulfillment function starts running and the start message is played. If the Lambda function returns before the delay is over, the start message isn't played.
sourcepub fn get_delay_in_seconds(&self) -> &Option<i32>
pub fn get_delay_in_seconds(&self) -> &Option<i32>
The delay between when the Lambda fulfillment function starts running and the start message is played. If the Lambda function returns before the delay is over, the start message isn't played.
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 start 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 start 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 start 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 the start 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 the start 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 the start message while it is playing.
sourcepub fn build(self) -> Result<FulfillmentStartResponseSpecification, BuildError>
pub fn build(self) -> Result<FulfillmentStartResponseSpecification, BuildError>
Consumes the builder and constructs a FulfillmentStartResponseSpecification.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for FulfillmentStartResponseSpecificationBuilder
impl Clone for FulfillmentStartResponseSpecificationBuilder
source§fn clone(&self) -> FulfillmentStartResponseSpecificationBuilder
fn clone(&self) -> FulfillmentStartResponseSpecificationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for FulfillmentStartResponseSpecificationBuilder
impl Default for FulfillmentStartResponseSpecificationBuilder
source§fn default() -> FulfillmentStartResponseSpecificationBuilder
fn default() -> FulfillmentStartResponseSpecificationBuilder
source§impl PartialEq for FulfillmentStartResponseSpecificationBuilder
impl PartialEq for FulfillmentStartResponseSpecificationBuilder
source§fn eq(&self, other: &FulfillmentStartResponseSpecificationBuilder) -> bool
fn eq(&self, other: &FulfillmentStartResponseSpecificationBuilder) -> bool
self and other values to be equal, and is used
by ==.