Class CfnBot.FulfillmentStartResponseSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lex.CfnBot.FulfillmentStartResponseSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBot.FulfillmentStartResponseSpecificationProperty>
- Enclosing interface:
CfnBot.FulfillmentStartResponseSpecificationProperty
@Stability(Stable)
public static final class CfnBot.FulfillmentStartResponseSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBot.FulfillmentStartResponseSpecificationProperty>
A builder for
CfnBot.FulfillmentStartResponseSpecificationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionallowInterrupt
(Boolean allowInterrupt) Sets the value ofCfnBot.FulfillmentStartResponseSpecificationProperty.getAllowInterrupt()
allowInterrupt
(IResolvable allowInterrupt) Sets the value ofCfnBot.FulfillmentStartResponseSpecificationProperty.getAllowInterrupt()
build()
Builds the configured instance.delayInSeconds
(Number delayInSeconds) Sets the value ofCfnBot.FulfillmentStartResponseSpecificationProperty.getDelayInSeconds()
messageGroups
(List<? extends Object> messageGroups) Sets the value ofCfnBot.FulfillmentStartResponseSpecificationProperty.getMessageGroups()
messageGroups
(IResolvable messageGroups) Sets the value ofCfnBot.FulfillmentStartResponseSpecificationProperty.getMessageGroups()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
delayInSeconds
@Stability(Stable) public CfnBot.FulfillmentStartResponseSpecificationProperty.Builder delayInSeconds(Number delayInSeconds) Sets the value ofCfnBot.FulfillmentStartResponseSpecificationProperty.getDelayInSeconds()
- Parameters:
delayInSeconds
- The delay between when the Lambda fulfillment function starts running and the start message is played. This parameter is required. If the Lambda function returns before the delay is over, the start message isn't played.- Returns:
this
-
messageGroups
@Stability(Stable) public CfnBot.FulfillmentStartResponseSpecificationProperty.Builder messageGroups(IResolvable messageGroups) Sets the value ofCfnBot.FulfillmentStartResponseSpecificationProperty.getMessageGroups()
- Parameters:
messageGroups
- 1 - 5 message groups that contain start messages. This parameter is required. Amazon Lex chooses one of the messages to play to the user.- Returns:
this
-
messageGroups
@Stability(Stable) public CfnBot.FulfillmentStartResponseSpecificationProperty.Builder messageGroups(List<? extends Object> messageGroups) Sets the value ofCfnBot.FulfillmentStartResponseSpecificationProperty.getMessageGroups()
- Parameters:
messageGroups
- 1 - 5 message groups that contain start messages. This parameter is required. Amazon Lex chooses one of the messages to play to the user.- Returns:
this
-
allowInterrupt
@Stability(Stable) public CfnBot.FulfillmentStartResponseSpecificationProperty.Builder allowInterrupt(Boolean allowInterrupt) Sets the value ofCfnBot.FulfillmentStartResponseSpecificationProperty.getAllowInterrupt()
- Parameters:
allowInterrupt
- Determines whether the user can interrupt the start message while it is playing.- Returns:
this
-
allowInterrupt
@Stability(Stable) public CfnBot.FulfillmentStartResponseSpecificationProperty.Builder allowInterrupt(IResolvable allowInterrupt) Sets the value ofCfnBot.FulfillmentStartResponseSpecificationProperty.getAllowInterrupt()
- Parameters:
allowInterrupt
- Determines whether the user can interrupt the start message while it is playing.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBot.FulfillmentStartResponseSpecificationProperty>
- Returns:
- a new instance of
CfnBot.FulfillmentStartResponseSpecificationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-