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 |
codeHook(Consumer<DialogCodeHookInvocationSetting.Builder> codeHook)
The
DialogCodeHookInvocationSetting object associated with intent's confirmation step. |
IntentConfirmationSetting.Builder |
codeHook(DialogCodeHookInvocationSetting codeHook)
The
DialogCodeHookInvocationSetting object associated with intent's confirmation step. |
IntentConfirmationSetting.Builder |
confirmationConditional(ConditionalSpecification confirmationConditional)
A list of conditional branches to evaluate after the intent is closed.
|
default IntentConfirmationSetting.Builder |
confirmationConditional(Consumer<ConditionalSpecification.Builder> confirmationConditional)
A list of conditional branches to evaluate after the intent is closed.
|
default IntentConfirmationSetting.Builder |
confirmationNextStep(Consumer<DialogState.Builder> confirmationNextStep)
Specifies the next step that the bot executes when the customer confirms the intent.
|
IntentConfirmationSetting.Builder |
confirmationNextStep(DialogState confirmationNextStep)
Specifies the next step that the bot executes when the customer confirms the intent.
|
default IntentConfirmationSetting.Builder |
confirmationResponse(Consumer<ResponseSpecification.Builder> confirmationResponse)
Sets the value of the ConfirmationResponse property for this object.
|
IntentConfirmationSetting.Builder |
confirmationResponse(ResponseSpecification confirmationResponse)
Sets the value of the ConfirmationResponse property for this object.
|
IntentConfirmationSetting.Builder |
declinationConditional(ConditionalSpecification declinationConditional)
A list of conditional branches to evaluate after the intent is declined.
|
default IntentConfirmationSetting.Builder |
declinationConditional(Consumer<ConditionalSpecification.Builder> declinationConditional)
A list of conditional branches to evaluate after the intent is declined.
|
default IntentConfirmationSetting.Builder |
declinationNextStep(Consumer<DialogState.Builder> declinationNextStep)
Specifies the next step that the bot executes when the customer declines the intent.
|
IntentConfirmationSetting.Builder |
declinationNextStep(DialogState declinationNextStep)
Specifies the next step that the bot executes when the customer declines the intent.
|
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 |
elicitationCodeHook(Consumer<ElicitationCodeHookInvocationSetting.Builder> elicitationCodeHook)
The
DialogCodeHookInvocationSetting used when the code hook is invoked during confirmation
prompt retries. |
IntentConfirmationSetting.Builder |
elicitationCodeHook(ElicitationCodeHookInvocationSetting elicitationCodeHook)
The
DialogCodeHookInvocationSetting used when the code hook is invoked during confirmation
prompt retries. |
IntentConfirmationSetting.Builder |
failureConditional(ConditionalSpecification failureConditional)
Sets the value of the FailureConditional property for this object.
|
default IntentConfirmationSetting.Builder |
failureConditional(Consumer<ConditionalSpecification.Builder> failureConditional)
Sets the value of the FailureConditional property for this object.
|
default IntentConfirmationSetting.Builder |
failureNextStep(Consumer<DialogState.Builder> failureNextStep)
The next step to take in the conversation if the confirmation step fails.
|
IntentConfirmationSetting.Builder |
failureNextStep(DialogState failureNextStep)
The next step to take in the conversation if the confirmation step fails.
|
default IntentConfirmationSetting.Builder |
failureResponse(Consumer<ResponseSpecification.Builder> failureResponse)
Sets the value of the FailureResponse property for this object.
|
IntentConfirmationSetting.Builder |
failureResponse(ResponseSpecification failureResponse)
Sets the value of the FailureResponse property for this object.
|
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.IntentConfirmationSetting.Builder confirmationResponse(ResponseSpecification confirmationResponse)
confirmationResponse - The new value for the ConfirmationResponse property for this object.default IntentConfirmationSetting.Builder confirmationResponse(Consumer<ResponseSpecification.Builder> confirmationResponse)
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 confirmationResponse(ResponseSpecification).
confirmationResponse - a consumer that will call methods on ResponseSpecification.BuilderconfirmationResponse(ResponseSpecification)IntentConfirmationSetting.Builder confirmationNextStep(DialogState confirmationNextStep)
Specifies the next step that the bot executes when the customer confirms the intent.
confirmationNextStep - Specifies the next step that the bot executes when the customer confirms the intent.default IntentConfirmationSetting.Builder confirmationNextStep(Consumer<DialogState.Builder> confirmationNextStep)
Specifies the next step that the bot executes when the customer confirms the intent.
This is a convenience method that creates an instance of theDialogState.Builder avoiding the need to
create one manually via DialogState.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result
is passed to confirmationNextStep(DialogState).
confirmationNextStep - a consumer that will call methods on DialogState.BuilderconfirmationNextStep(DialogState)IntentConfirmationSetting.Builder confirmationConditional(ConditionalSpecification confirmationConditional)
A list of conditional branches to evaluate after the intent is closed.
confirmationConditional - A list of conditional branches to evaluate after the intent is closed.default IntentConfirmationSetting.Builder confirmationConditional(Consumer<ConditionalSpecification.Builder> confirmationConditional)
A list of conditional branches to evaluate after the intent is closed.
This is a convenience method that creates an instance of theConditionalSpecification.Builder
avoiding the need to create one manually via ConditionalSpecification.builder().
When the Consumer completes, SdkBuilder.build() is called immediately
and its result is passed to confirmationConditional(ConditionalSpecification).
confirmationConditional - a consumer that will call methods on ConditionalSpecification.BuilderconfirmationConditional(ConditionalSpecification)IntentConfirmationSetting.Builder declinationNextStep(DialogState declinationNextStep)
Specifies the next step that the bot executes when the customer declines the intent.
declinationNextStep - Specifies the next step that the bot executes when the customer declines the intent.default IntentConfirmationSetting.Builder declinationNextStep(Consumer<DialogState.Builder> declinationNextStep)
Specifies the next step that the bot executes when the customer declines the intent.
This is a convenience method that creates an instance of theDialogState.Builder avoiding the need to
create one manually via DialogState.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result
is passed to declinationNextStep(DialogState).
declinationNextStep - a consumer that will call methods on DialogState.BuilderdeclinationNextStep(DialogState)IntentConfirmationSetting.Builder declinationConditional(ConditionalSpecification declinationConditional)
A list of conditional branches to evaluate after the intent is declined.
declinationConditional - A list of conditional branches to evaluate after the intent is declined.default IntentConfirmationSetting.Builder declinationConditional(Consumer<ConditionalSpecification.Builder> declinationConditional)
A list of conditional branches to evaluate after the intent is declined.
This is a convenience method that creates an instance of theConditionalSpecification.Builder
avoiding the need to create one manually via ConditionalSpecification.builder().
When the Consumer completes, SdkBuilder.build() is called immediately
and its result is passed to declinationConditional(ConditionalSpecification).
declinationConditional - a consumer that will call methods on ConditionalSpecification.BuilderdeclinationConditional(ConditionalSpecification)IntentConfirmationSetting.Builder failureResponse(ResponseSpecification failureResponse)
failureResponse - The new value for the FailureResponse property for this object.default IntentConfirmationSetting.Builder failureResponse(Consumer<ResponseSpecification.Builder> failureResponse)
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 failureResponse(ResponseSpecification).
failureResponse - a consumer that will call methods on ResponseSpecification.BuilderfailureResponse(ResponseSpecification)IntentConfirmationSetting.Builder failureNextStep(DialogState failureNextStep)
The next step to take in the conversation if the confirmation step fails.
failureNextStep - The next step to take in the conversation if the confirmation step fails.default IntentConfirmationSetting.Builder failureNextStep(Consumer<DialogState.Builder> failureNextStep)
The next step to take in the conversation if the confirmation step fails.
This is a convenience method that creates an instance of theDialogState.Builder avoiding the need to
create one manually via DialogState.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result
is passed to failureNextStep(DialogState).
failureNextStep - a consumer that will call methods on DialogState.BuilderfailureNextStep(DialogState)IntentConfirmationSetting.Builder failureConditional(ConditionalSpecification failureConditional)
failureConditional - The new value for the FailureConditional property for this object.default IntentConfirmationSetting.Builder failureConditional(Consumer<ConditionalSpecification.Builder> failureConditional)
ConditionalSpecification.Builder
avoiding the need to create one manually via ConditionalSpecification.builder().
When the Consumer completes, SdkBuilder.build() is called immediately
and its result is passed to failureConditional(ConditionalSpecification).
failureConditional - a consumer that will call methods on ConditionalSpecification.BuilderfailureConditional(ConditionalSpecification)IntentConfirmationSetting.Builder codeHook(DialogCodeHookInvocationSetting codeHook)
The DialogCodeHookInvocationSetting object associated with intent's confirmation step. The
dialog code hook is triggered based on these invocation settings when the confirmation next step or
declination next step or failure next step is InvokeDialogCodeHook.
codeHook - The DialogCodeHookInvocationSetting object associated with intent's confirmation step.
The dialog code hook is triggered based on these invocation settings when the confirmation next step
or declination next step or failure next step is InvokeDialogCodeHook.default IntentConfirmationSetting.Builder codeHook(Consumer<DialogCodeHookInvocationSetting.Builder> codeHook)
The DialogCodeHookInvocationSetting object associated with intent's confirmation step. The
dialog code hook is triggered based on these invocation settings when the confirmation next step or
declination next step or failure next step is InvokeDialogCodeHook.
DialogCodeHookInvocationSetting.Builder
avoiding the need to create one manually via DialogCodeHookInvocationSetting.builder().
When the Consumer completes, SdkBuilder.build() is called
immediately and its result is passed to codeHook(DialogCodeHookInvocationSetting).
codeHook - a consumer that will call methods on DialogCodeHookInvocationSetting.BuildercodeHook(DialogCodeHookInvocationSetting)IntentConfirmationSetting.Builder elicitationCodeHook(ElicitationCodeHookInvocationSetting elicitationCodeHook)
The DialogCodeHookInvocationSetting used when the code hook is invoked during confirmation
prompt retries.
elicitationCodeHook - The DialogCodeHookInvocationSetting used when the code hook is invoked during
confirmation prompt retries.default IntentConfirmationSetting.Builder elicitationCodeHook(Consumer<ElicitationCodeHookInvocationSetting.Builder> elicitationCodeHook)
The DialogCodeHookInvocationSetting used when the code hook is invoked during confirmation
prompt retries.
ElicitationCodeHookInvocationSetting.Builder avoiding the need to create one manually via
ElicitationCodeHookInvocationSetting.builder().
When the Consumer completes, SdkBuilder.build() is called
immediately and its result is passed to elicitationCodeHook(ElicitationCodeHookInvocationSetting).
elicitationCodeHook - a consumer that will call methods on ElicitationCodeHookInvocationSetting.BuilderelicitationCodeHook(ElicitationCodeHookInvocationSetting)Copyright © 2022. All rights reserved.