All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.lex.kotlin.outputs.BotIntentConfirmationSetting.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.lex.kotlin.outputs

import kotlin.Boolean
import kotlin.Suppress

/**
 * Provides a prompt for making sure that the user is ready for the intent to be fulfilled.
 * @property 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.
 * @property confirmationConditional A list of conditional branches to evaluate after the intent is closed.
 * @property confirmationNextStep Specifies the next step that the bot executes when the customer confirms the intent.
 * @property confirmationResponse Specifies a list of message groups that Amazon Lex uses to respond the user input.
 * @property declinationConditional A list of conditional branches to evaluate after the intent is declined.
 * @property declinationNextStep Specifies the next step that the bot executes when the customer declines the intent.
 * @property 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.
 * @property elicitationCodeHook The DialogCodeHookInvocationSetting used when the code hook is invoked during confirmation prompt retries.
 * @property failureConditional Provides a list of conditional branches. Branches are evaluated in the order that they are entered in the list. The first branch with a condition that evaluates to true is executed. The last branch in the list is the default branch. The default branch should not have any condition expression. The default branch is executed if no other branch has a matching condition.
 * @property failureNextStep The next step to take in the conversation if the confirmation step fails.
 * @property failureResponse Specifies a list of message groups that Amazon Lex uses to respond the user input.
 * @property isActive 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.
 * @property promptSpecification Prompts the user to confirm the intent. This question should have a yes or no answer.
 */
public data class BotIntentConfirmationSetting(
    public val codeHook: BotDialogCodeHookInvocationSetting? = null,
    public val confirmationConditional: BotConditionalSpecification? = null,
    public val confirmationNextStep: BotDialogState? = null,
    public val confirmationResponse: BotResponseSpecification? = null,
    public val declinationConditional: BotConditionalSpecification? = null,
    public val declinationNextStep: BotDialogState? = null,
    public val declinationResponse: BotResponseSpecification? = null,
    public val elicitationCodeHook: BotElicitationCodeHookInvocationSetting? = null,
    public val failureConditional: BotConditionalSpecification? = null,
    public val failureNextStep: BotDialogState? = null,
    public val failureResponse: BotResponseSpecification? = null,
    public val isActive: Boolean? = null,
    public val promptSpecification: BotPromptSpecification,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.lex.outputs.BotIntentConfirmationSetting): BotIntentConfirmationSetting = BotIntentConfirmationSetting(
            codeHook = javaType.codeHook().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.lex.kotlin.outputs.BotDialogCodeHookInvocationSetting.Companion.toKotlin(args0)
                })
            }).orElse(null),
            confirmationConditional = javaType.confirmationConditional().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.lex.kotlin.outputs.BotConditionalSpecification.Companion.toKotlin(args0)
                })
            }).orElse(null),
            confirmationNextStep = javaType.confirmationNextStep().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.lex.kotlin.outputs.BotDialogState.Companion.toKotlin(args0)
                })
            }).orElse(null),
            confirmationResponse = javaType.confirmationResponse().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.lex.kotlin.outputs.BotResponseSpecification.Companion.toKotlin(args0)
                })
            }).orElse(null),
            declinationConditional = javaType.declinationConditional().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.lex.kotlin.outputs.BotConditionalSpecification.Companion.toKotlin(args0)
                })
            }).orElse(null),
            declinationNextStep = javaType.declinationNextStep().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.lex.kotlin.outputs.BotDialogState.Companion.toKotlin(args0)
                })
            }).orElse(null),
            declinationResponse = javaType.declinationResponse().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.lex.kotlin.outputs.BotResponseSpecification.Companion.toKotlin(args0)
                })
            }).orElse(null),
            elicitationCodeHook = javaType.elicitationCodeHook().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.lex.kotlin.outputs.BotElicitationCodeHookInvocationSetting.Companion.toKotlin(args0)
                })
            }).orElse(null),
            failureConditional = javaType.failureConditional().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.lex.kotlin.outputs.BotConditionalSpecification.Companion.toKotlin(args0)
                })
            }).orElse(null),
            failureNextStep = javaType.failureNextStep().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.lex.kotlin.outputs.BotDialogState.Companion.toKotlin(args0)
                })
            }).orElse(null),
            failureResponse = javaType.failureResponse().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.lex.kotlin.outputs.BotResponseSpecification.Companion.toKotlin(args0)
                })
            }).orElse(null),
            isActive = javaType.isActive().map({ args0 -> args0 }).orElse(null),
            promptSpecification = javaType.promptSpecification().let({ args0 ->
                com.pulumi.awsnative.lex.kotlin.outputs.BotPromptSpecification.Companion.toKotlin(args0)
            }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy