Class IntentConfirmationSetting
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<IntentConfirmationSetting.Builder,IntentConfirmationSetting>
Provides a prompt for making sure that the user is ready for the intent to be fulfilled.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal Booleanactive()Specifies whether the intent's confirmation is sent to the user.builder()codeHook()TheDialogCodeHookInvocationSettingobject associated with intent's confirmation step.final ConditionalSpecificationA list of conditional branches to evaluate after the intent is closed.final DialogStateSpecifies the next step that the bot executes when the customer confirms the intent.final ResponseSpecificationReturns the value of the ConfirmationResponse property for this object.final ConditionalSpecificationA list of conditional branches to evaluate after the intent is declined.final DialogStateSpecifies the next step that the bot executes when the customer declines the intent.final ResponseSpecificationWhen the user answers "no" to the question defined inpromptSpecification, Amazon Lex responds with this response to acknowledge that the intent was canceled.TheDialogCodeHookInvocationSettingused when the code hook is invoked during confirmation prompt retries.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final ConditionalSpecificationReturns the value of the FailureConditional property for this object.final DialogStateThe next step to take in the conversation if the confirmation step fails.final ResponseSpecificationReturns the value of the FailureResponse property for this object.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final PromptSpecificationPrompts the user to confirm the intent.static Class<? extends IntentConfirmationSetting.Builder> Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
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
OrderPizzaintent, 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:
- 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
OrderPizzaintent, 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.
-
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.- Returns:
- When the user answers "no" to the question defined in
promptSpecification, Amazon Lex responds with this response to acknowledge that the intent was canceled.
-
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
activefield isn't specified, the default is true.- Returns:
- 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
activefield isn't specified, the default is true.
-
confirmationResponse
Returns the value of the ConfirmationResponse property for this object.- Returns:
- The value of the ConfirmationResponse property for this object.
-
confirmationNextStep
Specifies the next step that the bot executes when the customer confirms the intent.
- Returns:
- Specifies the next step that the bot executes when the customer confirms the intent.
-
confirmationConditional
A list of conditional branches to evaluate after the intent is closed.
- Returns:
- A list of conditional branches to evaluate after the intent is closed.
-
declinationNextStep
Specifies the next step that the bot executes when the customer declines the intent.
- Returns:
- Specifies the next step that the bot executes when the customer declines the intent.
-
declinationConditional
A list of conditional branches to evaluate after the intent is declined.
- Returns:
- A list of conditional branches to evaluate after the intent is declined.
-
failureResponse
Returns the value of the FailureResponse property for this object.- Returns:
- The value of the FailureResponse property for this object.
-
failureNextStep
The next step to take in the conversation if the confirmation step fails.
- Returns:
- The next step to take in the conversation if the confirmation step fails.
-
failureConditional
Returns the value of the FailureConditional property for this object.- Returns:
- The value of the FailureConditional property for this object.
-
codeHook
The
DialogCodeHookInvocationSettingobject 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:
- The
DialogCodeHookInvocationSettingobject 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.
-
elicitationCodeHook
The
DialogCodeHookInvocationSettingused when the code hook is invoked during confirmation prompt retries.- Returns:
- The
DialogCodeHookInvocationSettingused when the code hook is invoked during confirmation prompt retries.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<IntentConfirmationSetting.Builder,IntentConfirmationSetting> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-