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.Builderprompt(Consumer<Prompt.Builder> prompt) Prompts for information from the user.Prompts for information from the user.default FollowUpPrompt.BuilderrejectionStatement(Consumer<Statement.Builder> rejectionStatement) If the user answers "no" to the question defined in thepromptfield, 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 thepromptfield, Amazon Lex responds with this statement to acknowledge that the intent was canceled.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods 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.Builderavoiding the need to create one manually viaPrompt.builder().When the
Consumercompletes,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
promptfield, 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 thepromptfield, 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 thepromptfield, Amazon Lex responds with this statement to acknowledge that the intent was canceled.Statement.Builderavoiding the need to create one manually viaStatement.builder().When the
Consumercompletes,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:
-