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

com.pulumi.awsnative.lex.kotlin.inputs.BotSlotValueOverrideArgs.kt Maven / Gradle / Ivy

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

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

import com.pulumi.awsnative.lex.inputs.BotSlotValueOverrideArgs.builder
import com.pulumi.awsnative.lex.kotlin.enums.BotSlotShape
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 slot values that Amazon Lex uses when it sets slot values in a dialog step.
 * @property shape When the shape value is List, it indicates that the values field contains a list of slot values. When the value is Scalar, it indicates that the value field contains a single value.
 * @property value The current value of the slot.
 * @property values A list of one or more values that the user provided for the slot. For example, for a slot that elicits pizza toppings, the values might be "pepperoni" and "pineapple."
 */
public data class BotSlotValueOverrideArgs(
    public val shape: Output? = null,
    public val `value`: Output? = null,
    public val values: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.lex.inputs.BotSlotValueOverrideArgs =
        com.pulumi.awsnative.lex.inputs.BotSlotValueOverrideArgs.builder()
            .shape(shape?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .`value`(`value`?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .values(
                values?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [BotSlotValueOverrideArgs].
 */
@PulumiTagMarker
public class BotSlotValueOverrideArgsBuilder internal constructor() {
    private var shape: Output? = null

    private var `value`: Output? = null

    private var values: Output>? = null

    /**
     * @param value When the shape value is List, it indicates that the values field contains a list of slot values. When the value is Scalar, it indicates that the value field contains a single value.
     */
    @JvmName("wwumeqyhyyowdbuy")
    public suspend fun shape(`value`: Output) {
        this.shape = value
    }

    /**
     * @param value The current value of the slot.
     */
    @JvmName("xrjruwaeudnujsrs")
    public suspend fun `value`(`value`: Output) {
        this.`value` = value
    }

    /**
     * @param value A list of one or more values that the user provided for the slot. For example, for a slot that elicits pizza toppings, the values might be "pepperoni" and "pineapple."
     */
    @JvmName("fatbvkhtympttpwj")
    public suspend fun values(`value`: Output>) {
        this.values = value
    }

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

    /**
     * @param values A list of one or more values that the user provided for the slot. For example, for a slot that elicits pizza toppings, the values might be "pepperoni" and "pineapple."
     */
    @JvmName("xhljvurgkeyccxmk")
    public suspend fun values(values: List>) {
        this.values = Output.all(values)
    }

    /**
     * @param value When the shape value is List, it indicates that the values field contains a list of slot values. When the value is Scalar, it indicates that the value field contains a single value.
     */
    @JvmName("wvaqbwwatcudmecb")
    public suspend fun shape(`value`: BotSlotShape?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.shape = mapped
    }

    /**
     * @param value The current value of the slot.
     */
    @JvmName("tyeraiytrqjydttr")
    public suspend fun `value`(`value`: BotSlotValueArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.`value` = mapped
    }

    /**
     * @param argument The current value of the slot.
     */
    @JvmName("emnviyrpoooasrij")
    public suspend fun `value`(argument: suspend BotSlotValueArgsBuilder.() -> Unit) {
        val toBeMapped = BotSlotValueArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.`value` = mapped
    }

    /**
     * @param value A list of one or more values that the user provided for the slot. For example, for a slot that elicits pizza toppings, the values might be "pepperoni" and "pineapple."
     */
    @JvmName("vdiftvldprsisedq")
    public suspend fun values(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.values = mapped
    }

    /**
     * @param argument A list of one or more values that the user provided for the slot. For example, for a slot that elicits pizza toppings, the values might be "pepperoni" and "pineapple."
     */
    @JvmName("msepxuljgpjfkblh")
    public suspend fun values(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            BotSlotValueOverrideArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.values = mapped
    }

    /**
     * @param argument A list of one or more values that the user provided for the slot. For example, for a slot that elicits pizza toppings, the values might be "pepperoni" and "pineapple."
     */
    @JvmName("xaaghgwbygofdkfy")
    public suspend fun values(vararg argument: suspend BotSlotValueOverrideArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            BotSlotValueOverrideArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.values = mapped
    }

    /**
     * @param argument A list of one or more values that the user provided for the slot. For example, for a slot that elicits pizza toppings, the values might be "pepperoni" and "pineapple."
     */
    @JvmName("psqwmmfdpffilylk")
    public suspend fun values(argument: suspend BotSlotValueOverrideArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(BotSlotValueOverrideArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.values = mapped
    }

    /**
     * @param values A list of one or more values that the user provided for the slot. For example, for a slot that elicits pizza toppings, the values might be "pepperoni" and "pineapple."
     */
    @JvmName("pemrapinxibunlid")
    public suspend fun values(vararg values: BotSlotValueOverrideArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.values = mapped
    }

    internal fun build(): BotSlotValueOverrideArgs = BotSlotValueOverrideArgs(
        shape = shape,
        `value` = `value`,
        values = values,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy