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

com.pulumi.awsnative.lex.kotlin.inputs.BotDialogStateArgs.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.inputs

import com.pulumi.awsnative.lex.inputs.BotDialogStateArgs.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.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * The current state of the conversation with the user.
 * @property dialogAction Defines the action that the bot executes at runtime when the conversation reaches this step.
 * @property intent Override settings to configure the intent state.
 * @property sessionAttributes List of session attributes to be applied when the conversation reaches this step.
 */
public data class BotDialogStateArgs(
    public val dialogAction: Output? = null,
    public val intent: Output? = null,
    public val sessionAttributes: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.lex.inputs.BotDialogStateArgs =
        com.pulumi.awsnative.lex.inputs.BotDialogStateArgs.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.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var intent: Output? = null

    private var sessionAttributes: Output>? = null

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

    /**
     * @param value Override settings to configure the intent state.
     */
    @JvmName("rdytbgmokwviqqwx")
    public suspend fun intent(`value`: Output) {
        this.intent = value
    }

    /**
     * @param value List of session attributes to be applied when the conversation reaches this step.
     */
    @JvmName("uxdmsmidtxdnxjbi")
    public suspend fun sessionAttributes(`value`: Output>) {
        this.sessionAttributes = value
    }

    @JvmName("nlrxodhbsywcyalj")
    public suspend fun sessionAttributes(vararg values: Output) {
        this.sessionAttributes = Output.all(values.asList())
    }

    /**
     * @param values List of session attributes to be applied when the conversation reaches this step.
     */
    @JvmName("pkmajgwwwvxjdnkg")
    public suspend fun sessionAttributes(values: List>) {
        this.sessionAttributes = Output.all(values)
    }

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

    /**
     * @param argument Defines the action that the bot executes at runtime when the conversation reaches this step.
     */
    @JvmName("bllmkuomheyfieoe")
    public suspend fun dialogAction(argument: suspend BotDialogActionArgsBuilder.() -> Unit) {
        val toBeMapped = BotDialogActionArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.dialogAction = mapped
    }

    /**
     * @param value Override settings to configure the intent state.
     */
    @JvmName("sivewocrywpareqj")
    public suspend fun intent(`value`: BotIntentOverrideArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.intent = mapped
    }

    /**
     * @param argument Override settings to configure the intent state.
     */
    @JvmName("ulpkpunyjwheqwcy")
    public suspend fun intent(argument: suspend BotIntentOverrideArgsBuilder.() -> Unit) {
        val toBeMapped = BotIntentOverrideArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.intent = mapped
    }

    /**
     * @param value List of session attributes to be applied when the conversation reaches this step.
     */
    @JvmName("gpnmtarghlhjxncy")
    public suspend fun sessionAttributes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sessionAttributes = mapped
    }

    /**
     * @param argument List of session attributes to be applied when the conversation reaches this step.
     */
    @JvmName("ibkurbgncxigeivx")
    public suspend fun sessionAttributes(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            BotSessionAttributeArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.sessionAttributes = mapped
    }

    /**
     * @param argument List of session attributes to be applied when the conversation reaches this step.
     */
    @JvmName("ihuettoieuhusnek")
    public suspend fun sessionAttributes(vararg argument: suspend BotSessionAttributeArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            BotSessionAttributeArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.sessionAttributes = mapped
    }

    /**
     * @param argument List of session attributes to be applied when the conversation reaches this step.
     */
    @JvmName("dkdfblivmjykdkjj")
    public suspend fun sessionAttributes(argument: suspend BotSessionAttributeArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(BotSessionAttributeArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.sessionAttributes = mapped
    }

    /**
     * @param values List of session attributes to be applied when the conversation reaches this step.
     */
    @JvmName("gvnpwwhdfntmjhqq")
    public suspend fun sessionAttributes(vararg values: BotSessionAttributeArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sessionAttributes = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy