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

com.pulumi.aws.lex.kotlin.inputs.V2modelsSlotSubSlotSettingSlotSpecificationArgs.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.V2modelsSlotSubSlotSettingSlotSpecificationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
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

/**
 *
 * @property mapBlockKey
 * @property slotTypeId Unique identifier assigned to the slot type.
 * @property valueElicitationSettings Elicitation setting details for constituent sub slots of a composite slot.
 * See the `value_elicitation_setting` argument reference below.
 */
public data class V2modelsSlotSubSlotSettingSlotSpecificationArgs(
    public val mapBlockKey: Output,
    public val slotTypeId: Output,
    public val valueElicitationSettings: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.lex.inputs.V2modelsSlotSubSlotSettingSlotSpecificationArgs =
        com.pulumi.aws.lex.inputs.V2modelsSlotSubSlotSettingSlotSpecificationArgs.builder()
            .mapBlockKey(mapBlockKey.applyValue({ args0 -> args0 }))
            .slotTypeId(slotTypeId.applyValue({ args0 -> args0 }))
            .valueElicitationSettings(
                valueElicitationSettings?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            ).build()
}

/**
 * Builder for [V2modelsSlotSubSlotSettingSlotSpecificationArgs].
 */
@PulumiTagMarker
public class V2modelsSlotSubSlotSettingSlotSpecificationArgsBuilder internal constructor() {
    private var mapBlockKey: Output? = null

    private var slotTypeId: Output? = null

    private var valueElicitationSettings:
        Output>? = null

    /**
     * @param value
     */
    @JvmName("vtokpjihjfobismc")
    public suspend fun mapBlockKey(`value`: Output) {
        this.mapBlockKey = value
    }

    /**
     * @param value Unique identifier assigned to the slot type.
     */
    @JvmName("ndlubufmrqvpiwrk")
    public suspend fun slotTypeId(`value`: Output) {
        this.slotTypeId = value
    }

    /**
     * @param value Elicitation setting details for constituent sub slots of a composite slot.
     * See the `value_elicitation_setting` argument reference below.
     */
    @JvmName("tmudybnhocaqndaa")
    public suspend fun valueElicitationSettings(`value`: Output>) {
        this.valueElicitationSettings = value
    }

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

    /**
     * @param values Elicitation setting details for constituent sub slots of a composite slot.
     * See the `value_elicitation_setting` argument reference below.
     */
    @JvmName("moccmclkxycqifco")
    public suspend fun valueElicitationSettings(values: List>) {
        this.valueElicitationSettings = Output.all(values)
    }

    /**
     * @param value
     */
    @JvmName("rkqhapehnapplyet")
    public suspend fun mapBlockKey(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.mapBlockKey = mapped
    }

    /**
     * @param value Unique identifier assigned to the slot type.
     */
    @JvmName("ksvnuowhomdsvlrl")
    public suspend fun slotTypeId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.slotTypeId = mapped
    }

    /**
     * @param value Elicitation setting details for constituent sub slots of a composite slot.
     * See the `value_elicitation_setting` argument reference below.
     */
    @JvmName("kyqvneoucvmkdwpa")
    public suspend fun valueElicitationSettings(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.valueElicitationSettings = mapped
    }

    /**
     * @param argument Elicitation setting details for constituent sub slots of a composite slot.
     * See the `value_elicitation_setting` argument reference below.
     */
    @JvmName("rveamsilyfskvvut")
    public suspend fun valueElicitationSettings(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            V2modelsSlotSubSlotSettingSlotSpecificationValueElicitationSettingArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.valueElicitationSettings = mapped
    }

    /**
     * @param argument Elicitation setting details for constituent sub slots of a composite slot.
     * See the `value_elicitation_setting` argument reference below.
     */
    @JvmName("sfwuaxywaiqjxtvu")
    public suspend fun valueElicitationSettings(vararg argument: suspend V2modelsSlotSubSlotSettingSlotSpecificationValueElicitationSettingArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            V2modelsSlotSubSlotSettingSlotSpecificationValueElicitationSettingArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.valueElicitationSettings = mapped
    }

    /**
     * @param argument Elicitation setting details for constituent sub slots of a composite slot.
     * See the `value_elicitation_setting` argument reference below.
     */
    @JvmName("ptmdpqkrmqignkog")
    public suspend fun valueElicitationSettings(argument: suspend V2modelsSlotSubSlotSettingSlotSpecificationValueElicitationSettingArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                V2modelsSlotSubSlotSettingSlotSpecificationValueElicitationSettingArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.valueElicitationSettings = mapped
    }

    /**
     * @param values Elicitation setting details for constituent sub slots of a composite slot.
     * See the `value_elicitation_setting` argument reference below.
     */
    @JvmName("tcnaejpmkdofewwr")
    public suspend fun valueElicitationSettings(vararg values: V2modelsSlotSubSlotSettingSlotSpecificationValueElicitationSettingArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.valueElicitationSettings = mapped
    }

    internal fun build(): V2modelsSlotSubSlotSettingSlotSpecificationArgs =
        V2modelsSlotSubSlotSettingSlotSpecificationArgs(
            mapBlockKey = mapBlockKey ?: throw PulumiNullFieldException("mapBlockKey"),
            slotTypeId = slotTypeId ?: throw PulumiNullFieldException("slotTypeId"),
            valueElicitationSettings = valueElicitationSettings,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy