Class CfnBotPropsMixin.PromptSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lex.CfnBotPropsMixin.PromptSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBotPropsMixin.PromptSpecificationProperty>
- Enclosing interface:
CfnBotPropsMixin.PromptSpecificationProperty
@Stability(Stable)
public static final class CfnBotPropsMixin.PromptSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBotPropsMixin.PromptSpecificationProperty>
A builder for
CfnBotPropsMixin.PromptSpecificationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowInterrupt(Boolean allowInterrupt) Sets the value ofCfnBotPropsMixin.PromptSpecificationProperty.getAllowInterrupt()allowInterrupt(IResolvable allowInterrupt) Sets the value ofCfnBotPropsMixin.PromptSpecificationProperty.getAllowInterrupt()build()Builds the configured instance.maxRetries(Number maxRetries) Sets the value ofCfnBotPropsMixin.PromptSpecificationProperty.getMaxRetries()messageGroupsList(List<? extends Object> messageGroupsList) Sets the value ofCfnBotPropsMixin.PromptSpecificationProperty.getMessageGroupsList()messageGroupsList(IResolvable messageGroupsList) Sets the value ofCfnBotPropsMixin.PromptSpecificationProperty.getMessageGroupsList()messageSelectionStrategy(String messageSelectionStrategy) promptAttemptsSpecification(Map<String, ? extends Object> promptAttemptsSpecification) promptAttemptsSpecification(IResolvable promptAttemptsSpecification)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allowInterrupt
@Stability(Stable) public CfnBotPropsMixin.PromptSpecificationProperty.Builder allowInterrupt(Boolean allowInterrupt) Sets the value ofCfnBotPropsMixin.PromptSpecificationProperty.getAllowInterrupt()- Parameters:
allowInterrupt- Indicates whether the user can interrupt a speech prompt from the bot.- Returns:
this
-
allowInterrupt
@Stability(Stable) public CfnBotPropsMixin.PromptSpecificationProperty.Builder allowInterrupt(IResolvable allowInterrupt) Sets the value ofCfnBotPropsMixin.PromptSpecificationProperty.getAllowInterrupt()- Parameters:
allowInterrupt- Indicates whether the user can interrupt a speech prompt from the bot.- Returns:
this
-
maxRetries
@Stability(Stable) public CfnBotPropsMixin.PromptSpecificationProperty.Builder maxRetries(Number maxRetries) Sets the value ofCfnBotPropsMixin.PromptSpecificationProperty.getMaxRetries()- Parameters:
maxRetries- The maximum number of times the bot tries to elicit a response from the user using this prompt.- Returns:
this
-
messageGroupsList
@Stability(Stable) public CfnBotPropsMixin.PromptSpecificationProperty.Builder messageGroupsList(IResolvable messageGroupsList) Sets the value ofCfnBotPropsMixin.PromptSpecificationProperty.getMessageGroupsList()- Parameters:
messageGroupsList- A collection of messages that Amazon Lex can send to the user. Amazon Lex chooses the actual message to send at runtime.- Returns:
this
-
messageGroupsList
@Stability(Stable) public CfnBotPropsMixin.PromptSpecificationProperty.Builder messageGroupsList(List<? extends Object> messageGroupsList) Sets the value ofCfnBotPropsMixin.PromptSpecificationProperty.getMessageGroupsList()- Parameters:
messageGroupsList- A collection of messages that Amazon Lex can send to the user. Amazon Lex chooses the actual message to send at runtime.- Returns:
this
-
messageSelectionStrategy
@Stability(Stable) public CfnBotPropsMixin.PromptSpecificationProperty.Builder messageSelectionStrategy(String messageSelectionStrategy) - Parameters:
messageSelectionStrategy- Indicates how a message is selected from a message group among retries.- Returns:
this
-
promptAttemptsSpecification
@Stability(Stable) public CfnBotPropsMixin.PromptSpecificationProperty.Builder promptAttemptsSpecification(IResolvable promptAttemptsSpecification) - Parameters:
promptAttemptsSpecification- Specifies the advanced settings on each attempt of the prompt.- Returns:
this
-
promptAttemptsSpecification
@Stability(Stable) public CfnBotPropsMixin.PromptSpecificationProperty.Builder promptAttemptsSpecification(Map<String, ? extends Object> promptAttemptsSpecification) - Parameters:
promptAttemptsSpecification- Specifies the advanced settings on each attempt of the prompt.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBotPropsMixin.PromptSpecificationProperty>- Returns:
- a new instance of
CfnBotPropsMixin.PromptSpecificationProperty - Throws:
NullPointerException- if any required attribute was not provided
-