public static interface FollowUpPrompt.Builder extends SdkPojo, CopyableBuilder<FollowUpPrompt.Builder,FollowUpPrompt>
Modifier and Type | Method and Description |
---|---|
default FollowUpPrompt.Builder |
prompt(Consumer<Prompt.Builder> prompt)
Prompts for information from the user.
|
FollowUpPrompt.Builder |
prompt(Prompt prompt)
Prompts for information from the user.
|
default FollowUpPrompt.Builder |
rejectionStatement(Consumer<Statement.Builder> rejectionStatement)
If the user answers "no" to the question defined in the
prompt field, Amazon Lex responds with
this statement to acknowledge that the intent was canceled. |
FollowUpPrompt.Builder |
rejectionStatement(Statement rejectionStatement)
If the user answers "no" to the question defined in the
prompt field, Amazon Lex responds with
this statement to acknowledge that the intent was canceled. |
copy
applyMutation, build
FollowUpPrompt.Builder prompt(Prompt prompt)
Prompts for information from the user.
prompt
- Prompts for information from the user.default FollowUpPrompt.Builder prompt(Consumer<Prompt.Builder> prompt)
Prompts for information from the user.
This is a convenience that creates an instance of thePrompt.Builder
avoiding the need to create one
manually via Prompt.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result is
passed to prompt(Prompt)
.prompt
- a consumer that will call methods on Prompt.Builder
prompt(Prompt)
FollowUpPrompt.Builder rejectionStatement(Statement rejectionStatement)
If the user answers "no" to the question defined in the prompt
field, Amazon Lex responds with
this statement to acknowledge that the intent was canceled.
rejectionStatement
- If the user answers "no" to the question defined in the prompt
field, Amazon Lex responds
with this statement to acknowledge that the intent was canceled.default FollowUpPrompt.Builder rejectionStatement(Consumer<Statement.Builder> rejectionStatement)
If the user answers "no" to the question defined in the prompt
field, Amazon Lex responds with
this statement to acknowledge that the intent was canceled.
Statement.Builder
avoiding the need to create
one manually via Statement.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result
is passed to rejectionStatement(Statement)
.rejectionStatement
- a consumer that will call methods on Statement.Builder
rejectionStatement(Statement)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.