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