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