Interface IntentConfirmationSetting.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<IntentConfirmationSetting.Builder,
,IntentConfirmationSetting> SdkBuilder<IntentConfirmationSetting.Builder,
,IntentConfirmationSetting> SdkPojo
- Enclosing class:
IntentConfirmationSetting
-
Method Summary
Modifier and TypeMethodDescriptionSpecifies whether the intent's confirmation is sent to the user.TheDialogCodeHookInvocationSetting
object associated with intent's confirmation step.codeHook
(DialogCodeHookInvocationSetting codeHook) TheDialogCodeHookInvocationSetting
object associated with intent's confirmation step.confirmationConditional
(Consumer<ConditionalSpecification.Builder> confirmationConditional) A list of conditional branches to evaluate after the intent is closed.confirmationConditional
(ConditionalSpecification confirmationConditional) A list of conditional branches to evaluate after the intent is closed.confirmationNextStep
(Consumer<DialogState.Builder> confirmationNextStep) Specifies the next step that the bot executes when the customer confirms the intent.confirmationNextStep
(DialogState confirmationNextStep) Specifies the next step that the bot executes when the customer confirms the intent.confirmationResponse
(Consumer<ResponseSpecification.Builder> confirmationResponse) Sets the value of the ConfirmationResponse property for this object.confirmationResponse
(ResponseSpecification confirmationResponse) Sets the value of the ConfirmationResponse property for this object.declinationConditional
(Consumer<ConditionalSpecification.Builder> declinationConditional) A list of conditional branches to evaluate after the intent is declined.declinationConditional
(ConditionalSpecification declinationConditional) A list of conditional branches to evaluate after the intent is declined.declinationNextStep
(Consumer<DialogState.Builder> declinationNextStep) Specifies the next step that the bot executes when the customer declines the intent.declinationNextStep
(DialogState declinationNextStep) Specifies the next step that the bot executes when the customer declines the intent.declinationResponse
(Consumer<ResponseSpecification.Builder> declinationResponse) When the user answers "no" to the question defined inpromptSpecification
, Amazon Lex responds with this response to acknowledge that the intent was canceled.declinationResponse
(ResponseSpecification declinationResponse) When the user answers "no" to the question defined inpromptSpecification
, Amazon Lex responds with this response to acknowledge that the intent was canceled.elicitationCodeHook
(Consumer<ElicitationCodeHookInvocationSetting.Builder> elicitationCodeHook) TheDialogCodeHookInvocationSetting
used when the code hook is invoked during confirmation prompt retries.elicitationCodeHook
(ElicitationCodeHookInvocationSetting elicitationCodeHook) TheDialogCodeHookInvocationSetting
used when the code hook is invoked during confirmation prompt retries.failureConditional
(Consumer<ConditionalSpecification.Builder> failureConditional) Sets the value of the FailureConditional property for this object.failureConditional
(ConditionalSpecification failureConditional) Sets the value of the FailureConditional property for this object.failureNextStep
(Consumer<DialogState.Builder> failureNextStep) The next step to take in the conversation if the confirmation step fails.failureNextStep
(DialogState failureNextStep) The next step to take in the conversation if the confirmation step fails.failureResponse
(Consumer<ResponseSpecification.Builder> failureResponse) Sets the value of the FailureResponse property for this object.failureResponse
(ResponseSpecification failureResponse) Sets the value of the FailureResponse property for this object.promptSpecification
(Consumer<PromptSpecification.Builder> promptSpecification) Prompts the user to confirm the intent.promptSpecification
(PromptSpecification promptSpecification) Prompts the user to confirm the intent.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
-
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.- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
promptSpecification
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
This is a convenience method that creates an instance of theOrderPizza
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 viaPromptSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topromptSpecification(PromptSpecification)
.- Parameters:
promptSpecification
- a consumer that will call methods onPromptSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.- Parameters:
declinationResponse
- When the user answers "no" to the question defined inpromptSpecification
, Amazon Lex responds with this response to acknowledge that the intent was canceled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
declinationResponse
default IntentConfirmationSetting.Builder declinationResponse(Consumer<ResponseSpecification.Builder> declinationResponse) When the user answers "no" to the question defined in
This is a convenience method that creates an instance of thepromptSpecification
, Amazon Lex responds with this response to acknowledge that the intent was canceled.ResponseSpecification.Builder
avoiding the need to create one manually viaResponseSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todeclinationResponse(ResponseSpecification)
.- Parameters:
declinationResponse
- a consumer that will call methods onResponseSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.- Parameters:
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 theactive
field isn't specified, the default is true.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
confirmationResponse
Sets the value of the ConfirmationResponse property for this object.- Parameters:
confirmationResponse
- The new value for the ConfirmationResponse property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
confirmationResponse
default IntentConfirmationSetting.Builder confirmationResponse(Consumer<ResponseSpecification.Builder> confirmationResponse) Sets the value of the ConfirmationResponse property for this object. This is a convenience method that creates an instance of theResponseSpecification.Builder
avoiding the need to create one manually viaResponseSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toconfirmationResponse(ResponseSpecification)
.- Parameters:
confirmationResponse
- a consumer that will call methods onResponseSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
confirmationNextStep
Specifies the next step that the bot executes when the customer confirms the intent.
- Parameters:
confirmationNextStep
- Specifies the next step that the bot executes when the customer confirms the intent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
confirmationNextStep
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 viaDialogState.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toconfirmationNextStep(DialogState)
.- Parameters:
confirmationNextStep
- a consumer that will call methods onDialogState.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
confirmationConditional
IntentConfirmationSetting.Builder confirmationConditional(ConditionalSpecification confirmationConditional) A list of conditional branches to evaluate after the intent is closed.
- Parameters:
confirmationConditional
- A list of conditional branches to evaluate after the intent is closed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
confirmationConditional
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 viaConditionalSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toconfirmationConditional(ConditionalSpecification)
.- Parameters:
confirmationConditional
- a consumer that will call methods onConditionalSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
declinationNextStep
Specifies the next step that the bot executes when the customer declines the intent.
- Parameters:
declinationNextStep
- Specifies the next step that the bot executes when the customer declines the intent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
declinationNextStep
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 viaDialogState.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todeclinationNextStep(DialogState)
.- Parameters:
declinationNextStep
- a consumer that will call methods onDialogState.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
declinationConditional
IntentConfirmationSetting.Builder declinationConditional(ConditionalSpecification declinationConditional) A list of conditional branches to evaluate after the intent is declined.
- Parameters:
declinationConditional
- A list of conditional branches to evaluate after the intent is declined.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
declinationConditional
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 viaConditionalSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todeclinationConditional(ConditionalSpecification)
.- Parameters:
declinationConditional
- a consumer that will call methods onConditionalSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
failureResponse
Sets the value of the FailureResponse property for this object.- Parameters:
failureResponse
- The new value for the FailureResponse property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failureResponse
default IntentConfirmationSetting.Builder failureResponse(Consumer<ResponseSpecification.Builder> failureResponse) Sets the value of the FailureResponse property for this object. This is a convenience method that creates an instance of theResponseSpecification.Builder
avoiding the need to create one manually viaResponseSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofailureResponse(ResponseSpecification)
.- Parameters:
failureResponse
- a consumer that will call methods onResponseSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
failureNextStep
The next step to take in the conversation if the confirmation step fails.
- Parameters:
failureNextStep
- The next step to take in the conversation if the confirmation step fails.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failureNextStep
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 viaDialogState.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofailureNextStep(DialogState)
.- Parameters:
failureNextStep
- a consumer that will call methods onDialogState.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
failureConditional
Sets the value of the FailureConditional property for this object.- Parameters:
failureConditional
- The new value for the FailureConditional property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failureConditional
default IntentConfirmationSetting.Builder failureConditional(Consumer<ConditionalSpecification.Builder> failureConditional) Sets the value of the FailureConditional property for this object. This is a convenience method that creates an instance of theConditionalSpecification.Builder
avoiding the need to create one manually viaConditionalSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofailureConditional(ConditionalSpecification)
.- Parameters:
failureConditional
- a consumer that will call methods onConditionalSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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 isInvokeDialogCodeHook
.- Parameters:
codeHook
- TheDialogCodeHookInvocationSetting
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 isInvokeDialogCodeHook
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
codeHook
default IntentConfirmationSetting.Builder codeHook(Consumer<DialogCodeHookInvocationSetting.Builder> codeHook) The
This is a convenience method that creates an instance of theDialogCodeHookInvocationSetting
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 isInvokeDialogCodeHook
.DialogCodeHookInvocationSetting.Builder
avoiding the need to create one manually viaDialogCodeHookInvocationSetting.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocodeHook(DialogCodeHookInvocationSetting)
.- Parameters:
codeHook
- a consumer that will call methods onDialogCodeHookInvocationSetting.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
elicitationCodeHook
IntentConfirmationSetting.Builder elicitationCodeHook(ElicitationCodeHookInvocationSetting elicitationCodeHook) The
DialogCodeHookInvocationSetting
used when the code hook is invoked during confirmation prompt retries.- Parameters:
elicitationCodeHook
- TheDialogCodeHookInvocationSetting
used when the code hook is invoked during confirmation prompt retries.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
elicitationCodeHook
default IntentConfirmationSetting.Builder elicitationCodeHook(Consumer<ElicitationCodeHookInvocationSetting.Builder> elicitationCodeHook) The
This is a convenience method that creates an instance of theDialogCodeHookInvocationSetting
used when the code hook is invoked during confirmation prompt retries.ElicitationCodeHookInvocationSetting.Builder
avoiding the need to create one manually viaElicitationCodeHookInvocationSetting.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toelicitationCodeHook(ElicitationCodeHookInvocationSetting)
.- Parameters:
elicitationCodeHook
- a consumer that will call methods onElicitationCodeHookInvocationSetting.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-