CopyableBuilder<Prompt.Builder,Prompt>
, SdkBuilder<Prompt.Builder,Prompt>
public static interface Prompt.Builder extends CopyableBuilder<Prompt.Builder,Prompt>
Modifier and Type | Method | 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(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
apply, 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).
NOTE: This method appends the values to the existing list (if any). Use
#setMessages(java.util.Collection)
or #withMessages(java.util.Collection)
if you want to
override the existing values.
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 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.