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

com.pulumi.aws.lex.kotlin.inputs.V2modelsIntentInitialResponseSettingNextStepArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

import com.pulumi.aws.lex.inputs.V2modelsIntentInitialResponseSettingNextStepArgs.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 V2modelsIntentInitialResponseSettingNextStepArgs(
    public val dialogAction: Output? =
        null,
    public val intent: Output? = null,
    public val sessionAttributes: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.lex.inputs.V2modelsIntentInitialResponseSettingNextStepArgs = com.pulumi.aws.lex.inputs.V2modelsIntentInitialResponseSettingNextStepArgs.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 [V2modelsIntentInitialResponseSettingNextStepArgs].
 */
@PulumiTagMarker
public class V2modelsIntentInitialResponseSettingNextStepArgsBuilder 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("ltdblscoaioavrtu")
    public suspend fun dialogAction(`value`: Output) {
        this.dialogAction = value
    }

    /**
     * @param value Configuration block for override settings to configure the intent state. See `intent`.
     */
    @JvmName("cygwmikpyamoewqi")
    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("kbvdbodaotatmejw")
    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("lahaabrsjammexyj")
    public suspend fun dialogAction(`value`: V2modelsIntentInitialResponseSettingNextStepDialogActionArgs?) {
        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("lcjrcpuxekndvxgx")
    public suspend fun dialogAction(argument: suspend V2modelsIntentInitialResponseSettingNextStepDialogActionArgsBuilder.() -> Unit) {
        val toBeMapped =
            V2modelsIntentInitialResponseSettingNextStepDialogActionArgsBuilder().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("ogqohomfaeqwnjei")
    public suspend fun intent(`value`: V2modelsIntentInitialResponseSettingNextStepIntentArgs?) {
        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("pjytpgxqatuedhxa")
    public suspend fun intent(argument: suspend V2modelsIntentInitialResponseSettingNextStepIntentArgsBuilder.() -> Unit) {
        val toBeMapped = V2modelsIntentInitialResponseSettingNextStepIntentArgsBuilder().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("cqqthimlgkmxnnvd")
    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("saiwevenqoeiibvr")
    public fun sessionAttributes(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sessionAttributes = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy