Interface Prompt.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Prompt.Builder,
,Prompt> SdkBuilder<Prompt.Builder,
,Prompt> SdkPojo
- Enclosing class:
Prompt
-
Method Summary
Modifier and TypeMethodDescriptionmaxAttempts
(Integer maxAttempts) The number of times to prompt the user for information.messages
(Collection<Message> messages) An array of objects, each of which provides a message string and its type.messages
(Consumer<Message.Builder>... messages) An array of objects, each of which provides a message string and its type.An array of objects, each of which provides a message string and its type.responseCard
(String responseCard) A response card.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 Details
-
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).
- Parameters:
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).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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).
- Parameters:
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).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 method that creates an instance of theMessage.Builder
avoiding the need to create one manually viaMessage.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomessages(List<Message>)
.- Parameters:
messages
- a consumer that will call methods onMessage.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
maxAttempts
The number of times to prompt the user for information.
- Parameters:
maxAttempts
- The number of times to prompt the user for information.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.- Parameters:
responseCard
- A response card. Amazon Lex uses this prompt at runtime, in thePostText
API response. It substitutes session attributes and slot values for placeholders in the response card. For more information, see ex-resp-card.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-