Interface PromptSpecification.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<PromptSpecification.Builder,PromptSpecification>,SdkBuilder<PromptSpecification.Builder,PromptSpecification>,SdkPojo
- Enclosing class:
- PromptSpecification
public static interface PromptSpecification.Builder extends SdkPojo, CopyableBuilder<PromptSpecification.Builder,PromptSpecification>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PromptSpecification.BuilderallowInterrupt(Boolean allowInterrupt)Indicates whether the user can interrupt a speech prompt from the bot.PromptSpecification.BuildermaxRetries(Integer maxRetries)The maximum number of times the bot tries to elicit a response from the user using this prompt.PromptSpecification.BuildermessageGroups(Collection<MessageGroup> messageGroups)A collection of messages that Amazon Lex can send to the user.PromptSpecification.BuildermessageGroups(Consumer<MessageGroup.Builder>... messageGroups)A collection of messages that Amazon Lex can send to the user.PromptSpecification.BuildermessageGroups(MessageGroup... messageGroups)A collection of messages that Amazon Lex can send to the user.PromptSpecification.BuildermessageSelectionStrategy(String messageSelectionStrategy)Indicates how a message is selected from a message group among retries.PromptSpecification.BuildermessageSelectionStrategy(MessageSelectionStrategy messageSelectionStrategy)Indicates how a message is selected from a message group among retries.PromptSpecification.BuilderpromptAttemptsSpecification(Map<PromptAttempt,PromptAttemptSpecification> promptAttemptsSpecification)Specifies the advanced settings on each attempt of the prompt.PromptSpecification.BuilderpromptAttemptsSpecificationWithStrings(Map<String,PromptAttemptSpecification> promptAttemptsSpecification)Specifies the advanced settings on each attempt of the prompt.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
messageGroups
PromptSpecification.Builder messageGroups(Collection<MessageGroup> messageGroups)
A collection of messages that Amazon Lex can send to the user. Amazon Lex chooses the actual message to send at runtime.
- Parameters:
messageGroups- A collection of messages that Amazon Lex can send to the user. Amazon Lex chooses the actual message to send at runtime.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
messageGroups
PromptSpecification.Builder messageGroups(MessageGroup... messageGroups)
A collection of messages that Amazon Lex can send to the user. Amazon Lex chooses the actual message to send at runtime.
- Parameters:
messageGroups- A collection of messages that Amazon Lex can send to the user. Amazon Lex chooses the actual message to send at runtime.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
messageGroups
PromptSpecification.Builder messageGroups(Consumer<MessageGroup.Builder>... messageGroups)
A collection of messages that Amazon Lex can send to the user. Amazon Lex chooses the actual message to send at runtime.
This is a convenience method that creates an instance of theMessageGroup.Builderavoiding the need to create one manually viaMessageGroup.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#messageGroups(List.) - Parameters:
messageGroups- a consumer that will call methods onMessageGroup.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#messageGroups(java.util.Collection)
-
maxRetries
PromptSpecification.Builder maxRetries(Integer maxRetries)
The maximum number of times the bot tries to elicit a response from the user using this prompt.
- Parameters:
maxRetries- The maximum number of times the bot tries to elicit a response from the user using this prompt.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allowInterrupt
PromptSpecification.Builder allowInterrupt(Boolean allowInterrupt)
Indicates whether the user can interrupt a speech prompt from the bot.
- Parameters:
allowInterrupt- Indicates whether the user can interrupt a speech prompt from the bot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
messageSelectionStrategy
PromptSpecification.Builder messageSelectionStrategy(String messageSelectionStrategy)
Indicates how a message is selected from a message group among retries.
- Parameters:
messageSelectionStrategy- Indicates how a message is selected from a message group among retries.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
MessageSelectionStrategy,MessageSelectionStrategy
-
messageSelectionStrategy
PromptSpecification.Builder messageSelectionStrategy(MessageSelectionStrategy messageSelectionStrategy)
Indicates how a message is selected from a message group among retries.
- Parameters:
messageSelectionStrategy- Indicates how a message is selected from a message group among retries.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
MessageSelectionStrategy,MessageSelectionStrategy
-
promptAttemptsSpecificationWithStrings
PromptSpecification.Builder promptAttemptsSpecificationWithStrings(Map<String,PromptAttemptSpecification> promptAttemptsSpecification)
Specifies the advanced settings on each attempt of the prompt.
- Parameters:
promptAttemptsSpecification- Specifies the advanced settings on each attempt of the prompt.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
promptAttemptsSpecification
PromptSpecification.Builder promptAttemptsSpecification(Map<PromptAttempt,PromptAttemptSpecification> promptAttemptsSpecification)
Specifies the advanced settings on each attempt of the prompt.
- Parameters:
promptAttemptsSpecification- Specifies the advanced settings on each attempt of the prompt.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-