public static interface PromptSpecification.Builder extends SdkPojo, CopyableBuilder<PromptSpecification.Builder,PromptSpecification>
| Modifier and Type | Method and Description |
|---|---|
PromptSpecification.Builder |
allowInterrupt(Boolean allowInterrupt)
Indicates whether the user can interrupt a speech prompt from the bot.
|
PromptSpecification.Builder |
maxRetries(Integer maxRetries)
The maximum number of times the bot tries to elicit a response from the user using this prompt.
|
PromptSpecification.Builder |
messageGroups(Collection<MessageGroup> messageGroups)
A collection of messages that Amazon Lex can send to the user.
|
PromptSpecification.Builder |
messageGroups(Consumer<MessageGroup.Builder>... messageGroups)
A collection of messages that Amazon Lex can send to the user.
|
PromptSpecification.Builder |
messageGroups(MessageGroup... messageGroups)
A collection of messages that Amazon Lex can send to the user.
|
PromptSpecification.Builder |
messageSelectionStrategy(MessageSelectionStrategy messageSelectionStrategy)
Indicates how a message is selected from a message group among retries.
|
PromptSpecification.Builder |
messageSelectionStrategy(String messageSelectionStrategy)
Indicates how a message is selected from a message group among retries.
|
PromptSpecification.Builder |
promptAttemptsSpecification(Map<PromptAttempt,PromptAttemptSpecification> promptAttemptsSpecification)
Specifies the advanced settings on each attempt of the prompt.
|
PromptSpecification.Builder |
promptAttemptsSpecificationWithStrings(Map<String,PromptAttemptSpecification> promptAttemptsSpecification)
Specifies the advanced settings on each attempt of the prompt.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildPromptSpecification.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.
messageGroups - A collection of messages that Amazon Lex can send to the user. Amazon Lex chooses the actual message
to send at runtime.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.
messageGroups - A collection of messages that Amazon Lex can send to the user. Amazon Lex chooses the actual message
to send at runtime.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.Builder avoiding the need to create
one manually via MessageGroup.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately
and its result is passed to #messageGroups(List.
messageGroups - a consumer that will call methods on
MessageGroup.Builder#messageGroups(java.util.Collection) PromptSpecification.Builder maxRetries(Integer maxRetries)
The maximum number of times the bot tries to elicit a response from the user using this prompt.
maxRetries - The maximum number of times the bot tries to elicit a response from the user using this prompt.PromptSpecification.Builder allowInterrupt(Boolean allowInterrupt)
Indicates whether the user can interrupt a speech prompt from the bot.
allowInterrupt - Indicates whether the user can interrupt a speech prompt from the bot.PromptSpecification.Builder messageSelectionStrategy(String messageSelectionStrategy)
Indicates how a message is selected from a message group among retries.
messageSelectionStrategy - Indicates how a message is selected from a message group among retries.MessageSelectionStrategy,
MessageSelectionStrategyPromptSpecification.Builder messageSelectionStrategy(MessageSelectionStrategy messageSelectionStrategy)
Indicates how a message is selected from a message group among retries.
messageSelectionStrategy - Indicates how a message is selected from a message group among retries.MessageSelectionStrategy,
MessageSelectionStrategyPromptSpecification.Builder promptAttemptsSpecificationWithStrings(Map<String,PromptAttemptSpecification> promptAttemptsSpecification)
Specifies the advanced settings on each attempt of the prompt.
promptAttemptsSpecification - Specifies the advanced settings on each attempt of the prompt.PromptSpecification.Builder promptAttemptsSpecification(Map<PromptAttempt,PromptAttemptSpecification> promptAttemptsSpecification)
Specifies the advanced settings on each attempt of the prompt.
promptAttemptsSpecification - Specifies the advanced settings on each attempt of the prompt.Copyright © 2023. All rights reserved.