public static interface Prompt.Builder extends CopyableBuilder<Prompt.Builder,Prompt>
Modifier and Type | Method and Description |
---|---|
Prompt.Builder |
maxAttempts(Integer maxAttempts)
The number of times to prompt the user for information.
|
Prompt.Builder |
messages(Collection<Message> messages)
An array of objects, each of which provides a message string and its type.
|
Prompt.Builder |
messages(Consumer<Message.Builder>... messages)
An array of objects, each of which provides a message string and its type.
|
Prompt.Builder |
messages(Message... messages)
An array of objects, each of which provides a message string and its type.
|
Prompt.Builder |
responseCard(String responseCard)
A response card.
|
copy
applyMutation, build
Prompt.Builder messages(Collection<Message> messages)
An array of objects, each of which provides a message string and its type. You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML).
messages
- An array of objects, each of which provides a message string and its type. You can specify the message
string in plain text or in Speech Synthesis Markup Language (SSML).Prompt.Builder messages(Message... messages)
An array of objects, each of which provides a message string and its type. You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML).
messages
- An array of objects, each of which provides a message string and its type. You can specify the message
string in plain text or in Speech Synthesis Markup Language (SSML).Prompt.Builder messages(Consumer<Message.Builder>... messages)
An array of objects, each of which provides a message string and its type. You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML).
This is a convenience that creates an instance of theList.Builder
avoiding the need to
create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its
result is passed to #messages(List)
.messages
- a consumer that will call methods on List.Builder
#messages(List)
Prompt.Builder maxAttempts(Integer maxAttempts)
The number of times to prompt the user for information.
maxAttempts
- The number of times to prompt the user for information.Prompt.Builder responseCard(String responseCard)
A response card. Amazon Lex uses this prompt at runtime, in the PostText
API response. It
substitutes session attributes and slot values for placeholders in the response card. For more information,
see ex-resp-card.
responseCard
- A response card. Amazon Lex uses this prompt at runtime, in the PostText
API response. It
substitutes session attributes and slot values for placeholders in the response card. For more
information, see ex-resp-card.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.