Class CfnBotPropsMixin.FulfillmentUpdateResponseSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.lex.mixins.CfnBotPropsMixin.FulfillmentUpdateResponseSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBotPropsMixin.FulfillmentUpdateResponseSpecificationProperty>
- Enclosing interface:
CfnBotPropsMixin.FulfillmentUpdateResponseSpecificationProperty
@Stability(Stable)
public static final class CfnBotPropsMixin.FulfillmentUpdateResponseSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBotPropsMixin.FulfillmentUpdateResponseSpecificationProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowInterrupt(Boolean allowInterrupt) allowInterrupt(IResolvable allowInterrupt) build()Builds the configured instance.frequencyInSeconds(Number frequencyInSeconds) messageGroups(List<? extends Object> messageGroups) messageGroups(IResolvable messageGroups)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allowInterrupt
@Stability(Stable) public CfnBotPropsMixin.FulfillmentUpdateResponseSpecificationProperty.Builder allowInterrupt(Boolean allowInterrupt) Sets the value ofCfnBotPropsMixin.FulfillmentUpdateResponseSpecificationProperty.getAllowInterrupt()- Parameters:
allowInterrupt- Determines whether the user can interrupt an update message while it is playing.- Returns:
this
-
allowInterrupt
@Stability(Stable) public CfnBotPropsMixin.FulfillmentUpdateResponseSpecificationProperty.Builder allowInterrupt(IResolvable allowInterrupt) Sets the value ofCfnBotPropsMixin.FulfillmentUpdateResponseSpecificationProperty.getAllowInterrupt()- Parameters:
allowInterrupt- Determines whether the user can interrupt an update message while it is playing.- Returns:
this
-
frequencyInSeconds
@Stability(Stable) public CfnBotPropsMixin.FulfillmentUpdateResponseSpecificationProperty.Builder frequencyInSeconds(Number frequencyInSeconds) Sets the value ofCfnBotPropsMixin.FulfillmentUpdateResponseSpecificationProperty.getFrequencyInSeconds()- Parameters:
frequencyInSeconds- 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.- Returns:
this
-
messageGroups
@Stability(Stable) public CfnBotPropsMixin.FulfillmentUpdateResponseSpecificationProperty.Builder messageGroups(IResolvable messageGroups) Sets the value ofCfnBotPropsMixin.FulfillmentUpdateResponseSpecificationProperty.getMessageGroups()- Parameters:
messageGroups- 1 - 5 message groups that contain update messages. Amazon Lex chooses one of the messages to play to the user.- Returns:
this
-
messageGroups
@Stability(Stable) public CfnBotPropsMixin.FulfillmentUpdateResponseSpecificationProperty.Builder messageGroups(List<? extends Object> messageGroups) Sets the value ofCfnBotPropsMixin.FulfillmentUpdateResponseSpecificationProperty.getMessageGroups()- Parameters:
messageGroups- 1 - 5 message groups that contain update messages. Amazon Lex chooses one of the messages to play to the user.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBotPropsMixin.FulfillmentUpdateResponseSpecificationProperty>- Returns:
- a new instance of
CfnBotPropsMixin.FulfillmentUpdateResponseSpecificationProperty - Throws:
NullPointerException- if any required attribute was not provided
-