@Generated(value="software.amazon.awssdk:codegen") public final class IntentConfirmationSetting extends Object implements SdkPojo, Serializable, ToCopyableBuilder<IntentConfirmationSetting.Builder,IntentConfirmationSetting>
Provides a prompt for making sure that the user is ready for the intent to be fulfilled.
| Modifier and Type | Class and Description |
|---|---|
static interface |
IntentConfirmationSetting.Builder |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
active()
Specifies whether the intent's confirmation is sent to the user.
|
static IntentConfirmationSetting.Builder |
builder() |
DialogCodeHookInvocationSetting |
codeHook()
The
DialogCodeHookInvocationSetting object associated with intent's confirmation step. |
ConditionalSpecification |
confirmationConditional()
A list of conditional branches to evaluate after the intent is closed.
|
DialogState |
confirmationNextStep()
Specifies the next step that the bot executes when the customer confirms the intent.
|
ResponseSpecification |
confirmationResponse()
Returns the value of the ConfirmationResponse property for this object.
|
ConditionalSpecification |
declinationConditional()
A list of conditional branches to evaluate after the intent is declined.
|
DialogState |
declinationNextStep()
Specifies the next step that the bot executes when the customer declines the intent.
|
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. |
ElicitationCodeHookInvocationSetting |
elicitationCodeHook()
The
DialogCodeHookInvocationSetting used when the code hook is invoked during confirmation prompt
retries. |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
ConditionalSpecification |
failureConditional()
Returns the value of the FailureConditional property for this object.
|
DialogState |
failureNextStep()
The next step to take in the conversation if the confirmation step fails.
|
ResponseSpecification |
failureResponse()
Returns the value of the FailureResponse property for this object.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
PromptSpecification |
promptSpecification()
Prompts the user to confirm the intent.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends IntentConfirmationSetting.Builder> |
serializableBuilderClass() |
IntentConfirmationSetting.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final 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.
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.
public final 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.
promptSpecification, Amazon Lex
responds with this response to acknowledge that the intent was canceled.public final 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 field isn't specified, the default is
true.public final ResponseSpecification confirmationResponse()
public final DialogState confirmationNextStep()
Specifies the next step that the bot executes when the customer confirms the intent.
public final ConditionalSpecification confirmationConditional()
A list of conditional branches to evaluate after the intent is closed.
public final DialogState declinationNextStep()
Specifies the next step that the bot executes when the customer declines the intent.
public final ConditionalSpecification declinationConditional()
A list of conditional branches to evaluate after the intent is declined.
public final ResponseSpecification failureResponse()
public final DialogState failureNextStep()
The next step to take in the conversation if the confirmation step fails.
public final ConditionalSpecification failureConditional()
public final 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.
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.public final ElicitationCodeHookInvocationSetting elicitationCodeHook()
The DialogCodeHookInvocationSetting used when the code hook is invoked during confirmation prompt
retries.
DialogCodeHookInvocationSetting used when the code hook is invoked during confirmation
prompt retries.public IntentConfirmationSetting.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<IntentConfirmationSetting.Builder,IntentConfirmationSetting>public static IntentConfirmationSetting.Builder builder()
public static Class<? extends IntentConfirmationSetting.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.