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 Boolean
active()
Specifies whether the intent's confirmation is sent to the user.builder()
codeHook()
TheDialogCodeHookInvocationSetting
object associated with intent's confirmation step.final ConditionalSpecification
A list of conditional branches to evaluate after the intent is closed.final DialogState
Specifies the next step that the bot executes when the customer confirms the intent.final ResponseSpecification
Returns the value of the ConfirmationResponse property for this object.final ConditionalSpecification
A list of conditional branches to evaluate after the intent is declined.final DialogState
Specifies the next step that the bot executes when the customer declines the intent.final ResponseSpecification
When the user answers "no" to the question defined inpromptSpecification
, Amazon Lex responds with this response to acknowledge that the intent was canceled.TheDialogCodeHookInvocationSetting
used when the code hook is invoked during confirmation prompt retries.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final ConditionalSpecification
Returns the value of the FailureConditional property for this object.final DialogState
The next step to take in the conversation if the confirmation step fails.final ResponseSpecification
Returns the value of the FailureResponse property for this object.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
final PromptSpecification
Prompts 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 String
toString()
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
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:
- 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.
-
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
active
field 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
active
field 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
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
.- Returns:
- 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
.
-
elicitationCodeHook
The
DialogCodeHookInvocationSetting
used when the code hook is invoked during confirmation prompt retries.- Returns:
- The
DialogCodeHookInvocationSetting
used when the code hook is invoked during confirmation prompt retries.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<IntentConfirmationSetting.Builder,
IntentConfirmationSetting> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in 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
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-