public static interface IntentConfirmationSetting.Builder extends SdkPojo, CopyableBuilder<IntentConfirmationSetting.Builder,IntentConfirmationSetting>
| Modifier and Type | Method and Description |
|---|---|
IntentConfirmationSetting.Builder |
active(Boolean active)
Specifies whether the intent's confirmation is sent to the user.
|
default IntentConfirmationSetting.Builder |
declinationResponse(Consumer<ResponseSpecification.Builder> declinationResponse)
When the user answers "no" to the question defined in
promptSpecification, Amazon Lex responds
with this response to acknowledge that the intent was canceled. |
IntentConfirmationSetting.Builder |
declinationResponse(ResponseSpecification declinationResponse)
When the user answers "no" to the question defined in
promptSpecification, Amazon Lex responds
with this response to acknowledge that the intent was canceled. |
default IntentConfirmationSetting.Builder |
promptSpecification(Consumer<PromptSpecification.Builder> promptSpecification)
Prompts the user to confirm the intent.
|
IntentConfirmationSetting.Builder |
promptSpecification(PromptSpecification promptSpecification)
Prompts the user to confirm the intent.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildIntentConfirmationSetting.Builder promptSpecification(PromptSpecification promptSpecification)
Prompts the user to confirm the intent. This question should have a yes or no answer.
Amazon Lex uses this prompt to ensure that the user acknowledges that the intent is ready for fulfillment.
For example, with the OrderPizza intent, you might want to confirm that the order is correct
before placing it. For other intents, such as intents that simply respond to user questions, you might not
need to ask the user for confirmation before providing the information.
promptSpecification - Prompts the user to confirm the intent. This question should have a yes or no answer.
Amazon Lex uses this prompt to ensure that the user acknowledges that the intent is ready for
fulfillment. For example, with the OrderPizza intent, you might want to confirm that the
order is correct before placing it. For other intents, such as intents that simply respond to user
questions, you might not need to ask the user for confirmation before providing the information.
default IntentConfirmationSetting.Builder promptSpecification(Consumer<PromptSpecification.Builder> promptSpecification)
Prompts the user to confirm the intent. This question should have a yes or no answer.
Amazon Lex uses this prompt to ensure that the user acknowledges that the intent is ready for fulfillment.
For example, with the OrderPizza intent, you might want to confirm that the order is correct
before placing it. For other intents, such as intents that simply respond to user questions, you might not
need to ask the user for confirmation before providing the information.
PromptSpecification.Builder avoiding the need
to create one manually via PromptSpecification.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and
its result is passed to promptSpecification(PromptSpecification).promptSpecification - a consumer that will call methods on PromptSpecification.BuilderpromptSpecification(PromptSpecification)IntentConfirmationSetting.Builder declinationResponse(ResponseSpecification declinationResponse)
When the user answers "no" to the question defined in promptSpecification, Amazon Lex responds
with this response to acknowledge that the intent was canceled.
declinationResponse - When the user answers "no" to the question defined in promptSpecification, Amazon Lex
responds with this response to acknowledge that the intent was canceled.default IntentConfirmationSetting.Builder declinationResponse(Consumer<ResponseSpecification.Builder> declinationResponse)
When the user answers "no" to the question defined in promptSpecification, Amazon Lex responds
with this response to acknowledge that the intent was canceled.
ResponseSpecification.Builder avoiding the need
to create one manually via ResponseSpecification.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and
its result is passed to declinationResponse(ResponseSpecification).declinationResponse - a consumer that will call methods on ResponseSpecification.BuilderdeclinationResponse(ResponseSpecification)IntentConfirmationSetting.Builder active(Boolean active)
Specifies whether the intent's confirmation is sent to the user. When this field is false, confirmation and
declination responses aren't sent. If the active field isn't specified, the default is true.
active - Specifies whether the intent's confirmation is sent to the user. When this field is false,
confirmation and declination responses aren't sent. If the active field isn't specified,
the default is true.Copyright © 2021. All rights reserved.