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