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

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

package com.pulumi.awsnative.lex.kotlin.inputs

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

/**
 * Override settings to configure the intent state.
 * @property name The name of the intent. Only required when you're switching intents.
 * @property slots A map of all of the slot value overrides for the intent.
 */
public data class BotIntentOverrideArgs(
    public val name: Output? = null,
    public val slots: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.lex.inputs.BotIntentOverrideArgs =
        com.pulumi.awsnative.lex.inputs.BotIntentOverrideArgs.builder()
            .name(name?.applyValue({ args0 -> args0 }))
            .slots(
                slots?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [BotIntentOverrideArgs].
 */
@PulumiTagMarker
public class BotIntentOverrideArgsBuilder internal constructor() {
    private var name: Output? = null

    private var slots: Output>? = null

    /**
     * @param value The name of the intent. Only required when you're switching intents.
     */
    @JvmName("vsakyerkiiqhcrxn")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value A map of all of the slot value overrides for the intent.
     */
    @JvmName("ocxfebsawkosoxgo")
    public suspend fun slots(`value`: Output>) {
        this.slots = value
    }

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

    /**
     * @param values A map of all of the slot value overrides for the intent.
     */
    @JvmName("skddnmguaghegory")
    public suspend fun slots(values: List>) {
        this.slots = Output.all(values)
    }

    /**
     * @param value The name of the intent. Only required when you're switching intents.
     */
    @JvmName("gakeugqrkxlbeqiw")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value A map of all of the slot value overrides for the intent.
     */
    @JvmName("aqqeeltxubxqpmvj")
    public suspend fun slots(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.slots = mapped
    }

    /**
     * @param argument A map of all of the slot value overrides for the intent.
     */
    @JvmName("qtnhqsudblgvatkc")
    public suspend fun slots(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            BotSlotValueOverrideMapArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.slots = mapped
    }

    /**
     * @param argument A map of all of the slot value overrides for the intent.
     */
    @JvmName("yeohatbhqjtdmory")
    public suspend fun slots(vararg argument: suspend BotSlotValueOverrideMapArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            BotSlotValueOverrideMapArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.slots = mapped
    }

    /**
     * @param argument A map of all of the slot value overrides for the intent.
     */
    @JvmName("owumwrhpribkcjqr")
    public suspend fun slots(argument: suspend BotSlotValueOverrideMapArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            BotSlotValueOverrideMapArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.slots = mapped
    }

    /**
     * @param values A map of all of the slot value overrides for the intent.
     */
    @JvmName("ckvhluoyfhjgtnfc")
    public suspend fun slots(vararg values: BotSlotValueOverrideMapArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.slots = mapped
    }

    internal fun build(): BotIntentOverrideArgs = BotIntentOverrideArgs(
        name = name,
        slots = slots,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy