Class CfnBot.StillWaitingResponseSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lex.CfnBot.StillWaitingResponseSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBot.StillWaitingResponseSpecificationProperty>
- Enclosing interface:
CfnBot.StillWaitingResponseSpecificationProperty
@Stability(Stable)
public static final class CfnBot.StillWaitingResponseSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBot.StillWaitingResponseSpecificationProperty>
A builder for
CfnBot.StillWaitingResponseSpecificationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionallowInterrupt
(Boolean allowInterrupt) Sets the value ofCfnBot.StillWaitingResponseSpecificationProperty.getAllowInterrupt()
allowInterrupt
(IResolvable allowInterrupt) Sets the value ofCfnBot.StillWaitingResponseSpecificationProperty.getAllowInterrupt()
build()
Builds the configured instance.frequencyInSeconds
(Number frequencyInSeconds) Sets the value ofCfnBot.StillWaitingResponseSpecificationProperty.getFrequencyInSeconds()
messageGroupsList
(List<? extends Object> messageGroupsList) Sets the value ofCfnBot.StillWaitingResponseSpecificationProperty.getMessageGroupsList()
messageGroupsList
(IResolvable messageGroupsList) Sets the value ofCfnBot.StillWaitingResponseSpecificationProperty.getMessageGroupsList()
timeoutInSeconds
(Number timeoutInSeconds) Sets the value ofCfnBot.StillWaitingResponseSpecificationProperty.getTimeoutInSeconds()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
frequencyInSeconds
@Stability(Stable) public CfnBot.StillWaitingResponseSpecificationProperty.Builder frequencyInSeconds(Number frequencyInSeconds) Sets the value ofCfnBot.StillWaitingResponseSpecificationProperty.getFrequencyInSeconds()
- Parameters:
frequencyInSeconds
- How often a message should be sent to the user. This parameter is required. Minimum of 1 second, maximum of 5 minutes.- Returns:
this
-
messageGroupsList
@Stability(Stable) public CfnBot.StillWaitingResponseSpecificationProperty.Builder messageGroupsList(IResolvable messageGroupsList) Sets the value ofCfnBot.StillWaitingResponseSpecificationProperty.getMessageGroupsList()
- Parameters:
messageGroupsList
- One or more message groups, each containing one or more messages, that define the prompts that Amazon Lex sends to the user. This parameter is required.- Returns:
this
-
messageGroupsList
@Stability(Stable) public CfnBot.StillWaitingResponseSpecificationProperty.Builder messageGroupsList(List<? extends Object> messageGroupsList) Sets the value ofCfnBot.StillWaitingResponseSpecificationProperty.getMessageGroupsList()
- Parameters:
messageGroupsList
- One or more message groups, each containing one or more messages, that define the prompts that Amazon Lex sends to the user. This parameter is required.- Returns:
this
-
timeoutInSeconds
@Stability(Stable) public CfnBot.StillWaitingResponseSpecificationProperty.Builder timeoutInSeconds(Number timeoutInSeconds) Sets the value ofCfnBot.StillWaitingResponseSpecificationProperty.getTimeoutInSeconds()
- Parameters:
timeoutInSeconds
- If Amazon Lex waits longer than this length of time for a response, it will stop sending messages. This parameter is required.- Returns:
this
-
allowInterrupt
@Stability(Stable) public CfnBot.StillWaitingResponseSpecificationProperty.Builder allowInterrupt(Boolean allowInterrupt) Sets the value ofCfnBot.StillWaitingResponseSpecificationProperty.getAllowInterrupt()
- Parameters:
allowInterrupt
- Indicates that the user can interrupt the response by speaking while the message is being played.- Returns:
this
-
allowInterrupt
@Stability(Stable) public CfnBot.StillWaitingResponseSpecificationProperty.Builder allowInterrupt(IResolvable allowInterrupt) Sets the value ofCfnBot.StillWaitingResponseSpecificationProperty.getAllowInterrupt()
- Parameters:
allowInterrupt
- Indicates that the user can interrupt the response by speaking while the message is being played.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBot.StillWaitingResponseSpecificationProperty>
- Returns:
- a new instance of
CfnBot.StillWaitingResponseSpecificationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-