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

com.pulumi.aws.lex.kotlin.inputs.V2modelsIntentConfirmationSettingCodeHookPostCodeHookSpecificationFailureConditionalConditionalBranchNextStepArgs.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.lex.kotlin.inputs

import com.pulumi.aws.lex.inputs.V2modelsIntentConfirmationSettingCodeHookPostCodeHookSpecificationFailureConditionalConditionalBranchNextStepArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property dialogAction Configuration block for action that the bot executes at runtime when the conversation reaches this step. See `dialog_action`.
 * @property intent Configuration block for override settings to configure the intent state. See `intent`.
 * @property sessionAttributes Map of key/value pairs representing session-specific context information. It contains application information passed between Amazon Lex and a client application.
 */
public data class
V2modelsIntentConfirmationSettingCodeHookPostCodeHookSpecificationFailureConditionalConditionalBranchNextStepArgs(
    public val dialogAction: Output? =
        null,
    public val intent: Output? =
        null,
    public val sessionAttributes: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.lex.inputs.V2modelsIntentConfirmationSettingCodeHookPostCodeHookSpecificationFailureConditionalConditionalBranchNextStepArgs =
        com.pulumi.aws.lex.inputs.V2modelsIntentConfirmationSettingCodeHookPostCodeHookSpecificationFailureConditionalConditionalBranchNextStepArgs.builder()
            .dialogAction(dialogAction?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .intent(intent?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .sessionAttributes(
                sessionAttributes?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [V2modelsIntentConfirmationSettingCodeHookPostCodeHookSpecificationFailureConditionalConditionalBranchNextStepArgs].
 */
@PulumiTagMarker
public class
V2modelsIntentConfirmationSettingCodeHookPostCodeHookSpecificationFailureConditionalConditionalBranchNextStepArgsBuilder
internal constructor() {
    private var dialogAction:
        Output? =
        null

    private var intent:
        Output? =
        null

    private var sessionAttributes: Output>? = null

    /**
     * @param value Configuration block for action that the bot executes at runtime when the conversation reaches this step. See `dialog_action`.
     */
    @JvmName("kaaatmeqyfqkkuym")
    public suspend fun dialogAction(`value`: Output) {
        this.dialogAction = value
    }

    /**
     * @param value Configuration block for override settings to configure the intent state. See `intent`.
     */
    @JvmName("egcsogoqohylpwah")
    public suspend fun intent(`value`: Output) {
        this.intent = value
    }

    /**
     * @param value Map of key/value pairs representing session-specific context information. It contains application information passed between Amazon Lex and a client application.
     */
    @JvmName("oaudjnkyfhwpkhtm")
    public suspend fun sessionAttributes(`value`: Output>) {
        this.sessionAttributes = value
    }

    /**
     * @param value Configuration block for action that the bot executes at runtime when the conversation reaches this step. See `dialog_action`.
     */
    @JvmName("jduhsuhdhrsnpivb")
    public suspend fun dialogAction(`value`: V2modelsIntentConfirmationSettingCodeHookPostCodeHookSpecificationFailureConditionalConditionalBranchNextStepDialogActionArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dialogAction = mapped
    }

    /**
     * @param argument Configuration block for action that the bot executes at runtime when the conversation reaches this step. See `dialog_action`.
     */
    @JvmName("xmbrlpxirmafjuwg")
    public suspend fun dialogAction(argument: suspend V2modelsIntentConfirmationSettingCodeHookPostCodeHookSpecificationFailureConditionalConditionalBranchNextStepDialogActionArgsBuilder.() -> Unit) {
        val toBeMapped =
            V2modelsIntentConfirmationSettingCodeHookPostCodeHookSpecificationFailureConditionalConditionalBranchNextStepDialogActionArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.dialogAction = mapped
    }

    /**
     * @param value Configuration block for override settings to configure the intent state. See `intent`.
     */
    @JvmName("xvrcfvuggjaghlvn")
    public suspend fun intent(`value`: V2modelsIntentConfirmationSettingCodeHookPostCodeHookSpecificationFailureConditionalConditionalBranchNextStepIntentArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.intent = mapped
    }

    /**
     * @param argument Configuration block for override settings to configure the intent state. See `intent`.
     */
    @JvmName("fxkovtcnjfcyehrf")
    public suspend fun intent(argument: suspend V2modelsIntentConfirmationSettingCodeHookPostCodeHookSpecificationFailureConditionalConditionalBranchNextStepIntentArgsBuilder.() -> Unit) {
        val toBeMapped =
            V2modelsIntentConfirmationSettingCodeHookPostCodeHookSpecificationFailureConditionalConditionalBranchNextStepIntentArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.intent = mapped
    }

    /**
     * @param value Map of key/value pairs representing session-specific context information. It contains application information passed between Amazon Lex and a client application.
     */
    @JvmName("tbqubobtvftgistp")
    public suspend fun sessionAttributes(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sessionAttributes = mapped
    }

    /**
     * @param values Map of key/value pairs representing session-specific context information. It contains application information passed between Amazon Lex and a client application.
     */
    @JvmName("omlrxdnnrsekxroe")
    public fun sessionAttributes(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sessionAttributes = mapped
    }

    internal fun build(): V2modelsIntentConfirmationSettingCodeHookPostCodeHookSpecificationFailureConditionalConditionalBranchNextStepArgs =
        V2modelsIntentConfirmationSettingCodeHookPostCodeHookSpecificationFailureConditionalConditionalBranchNextStepArgs(
            dialogAction = dialogAction,
            intent = intent,
            sessionAttributes = sessionAttributes,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy