Class IntentConfirmationSetting

    • Method Detail

      • promptSpecification

        public 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.

        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

        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.

        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

        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.

        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

        public final ResponseSpecification confirmationResponse()
        Returns the value of the ConfirmationResponse property for this object.
        Returns:
        The value of the ConfirmationResponse property for this object.
      • confirmationNextStep

        public final DialogState 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

        public final ConditionalSpecification 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

        public final DialogState 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

        public final ConditionalSpecification 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

        public final ResponseSpecification failureResponse()
        Returns the value of the FailureResponse property for this object.
        Returns:
        The value of the FailureResponse property for this object.
      • failureNextStep

        public final DialogState 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

        public final ConditionalSpecification failureConditional()
        Returns the value of the FailureConditional property for this object.
        Returns:
        The value of the FailureConditional property for this object.
      • codeHook

        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.

        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 is InvokeDialogCodeHook.
      • elicitationCodeHook

        public final ElicitationCodeHookInvocationSetting 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.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String 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.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)