Interface FollowUpPrompt.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<FollowUpPrompt.Builder,
,FollowUpPrompt> SdkBuilder<FollowUpPrompt.Builder,
,FollowUpPrompt> SdkPojo
- Enclosing class:
FollowUpPrompt
public static interface FollowUpPrompt.Builder
extends SdkPojo, CopyableBuilder<FollowUpPrompt.Builder,FollowUpPrompt>
-
Method Summary
Modifier and TypeMethodDescriptiondefault FollowUpPrompt.Builder
prompt
(Consumer<Prompt.Builder> prompt) Prompts for information from the user.Prompts for information from the user.default FollowUpPrompt.Builder
rejectionStatement
(Consumer<Statement.Builder> rejectionStatement) If the user answers "no" to the question defined in theprompt
field, Amazon Lex responds with this statement to acknowledge that the intent was canceled.rejectionStatement
(Statement rejectionStatement) If the user answers "no" to the question defined in theprompt
field, Amazon Lex responds with this statement to acknowledge that the intent was canceled.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
-
prompt
Prompts for information from the user.
- Parameters:
prompt
- Prompts for information from the user.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
prompt
Prompts for information from the user.
This is a convenience method that creates an instance of thePrompt.Builder
avoiding the need to create one manually viaPrompt.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toprompt(Prompt)
.- Parameters:
prompt
- a consumer that will call methods onPrompt.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.- Parameters:
rejectionStatement
- If the user answers "no" to the question defined in theprompt
field, Amazon Lex responds with this statement to acknowledge that the intent was canceled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rejectionStatement
If the user answers "no" to the question defined in the
This is a convenience method that creates an instance of theprompt
field, Amazon Lex responds with this statement to acknowledge that the intent was canceled.Statement.Builder
avoiding the need to create one manually viaStatement.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torejectionStatement(Statement)
.- Parameters:
rejectionStatement
- a consumer that will call methods onStatement.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-