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

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

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

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

import com.pulumi.aws.lex.inputs.V2modelsSlotSubSlotSettingArgs.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

/**
 *
 * @property expression Expression text for defining the constituent sub slots in the composite slot using logical `AND` and `OR` operators.
 * @property slotSpecifications Specifications for the constituent sub slots of a composite slot.
 * See the `slot_specification` argument reference below.
 */
public data class V2modelsSlotSubSlotSettingArgs(
    public val expression: Output? = null,
    public val slotSpecifications: Output>? =
        null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.lex.inputs.V2modelsSlotSubSlotSettingArgs =
        com.pulumi.aws.lex.inputs.V2modelsSlotSubSlotSettingArgs.builder()
            .expression(expression?.applyValue({ args0 -> args0 }))
            .slotSpecifications(
                slotSpecifications?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            ).build()
}

/**
 * Builder for [V2modelsSlotSubSlotSettingArgs].
 */
@PulumiTagMarker
public class V2modelsSlotSubSlotSettingArgsBuilder internal constructor() {
    private var expression: Output? = null

    private var slotSpecifications: Output>? =
        null

    /**
     * @param value Expression text for defining the constituent sub slots in the composite slot using logical `AND` and `OR` operators.
     */
    @JvmName("nmocuqdtfnxgwumd")
    public suspend fun expression(`value`: Output) {
        this.expression = value
    }

    /**
     * @param value Specifications for the constituent sub slots of a composite slot.
     * See the `slot_specification` argument reference below.
     */
    @JvmName("aipqwxuafycwjygw")
    public suspend fun slotSpecifications(`value`: Output>) {
        this.slotSpecifications = value
    }

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

    /**
     * @param values Specifications for the constituent sub slots of a composite slot.
     * See the `slot_specification` argument reference below.
     */
    @JvmName("jibrtjkwpbtowmcb")
    public suspend fun slotSpecifications(values: List>) {
        this.slotSpecifications = Output.all(values)
    }

    /**
     * @param value Expression text for defining the constituent sub slots in the composite slot using logical `AND` and `OR` operators.
     */
    @JvmName("cdyjoaymubmithhu")
    public suspend fun expression(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.expression = mapped
    }

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

    /**
     * @param argument Specifications for the constituent sub slots of a composite slot.
     * See the `slot_specification` argument reference below.
     */
    @JvmName("xdgpgphupaybtnfm")
    public suspend fun slotSpecifications(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            V2modelsSlotSubSlotSettingSlotSpecificationArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.slotSpecifications = mapped
    }

    /**
     * @param argument Specifications for the constituent sub slots of a composite slot.
     * See the `slot_specification` argument reference below.
     */
    @JvmName("oflaokjiqidgwpkd")
    public suspend fun slotSpecifications(vararg argument: suspend V2modelsSlotSubSlotSettingSlotSpecificationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            V2modelsSlotSubSlotSettingSlotSpecificationArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.slotSpecifications = mapped
    }

    /**
     * @param argument Specifications for the constituent sub slots of a composite slot.
     * See the `slot_specification` argument reference below.
     */
    @JvmName("ktkqqvyqhmhaxnqv")
    public suspend fun slotSpecifications(argument: suspend V2modelsSlotSubSlotSettingSlotSpecificationArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            V2modelsSlotSubSlotSettingSlotSpecificationArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.slotSpecifications = mapped
    }

    /**
     * @param values Specifications for the constituent sub slots of a composite slot.
     * See the `slot_specification` argument reference below.
     */
    @JvmName("evsgsudrnilotlbj")
    public suspend fun slotSpecifications(vararg values: V2modelsSlotSubSlotSettingSlotSpecificationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.slotSpecifications = mapped
    }

    internal fun build(): V2modelsSlotSubSlotSettingArgs = V2modelsSlotSubSlotSettingArgs(
        expression = expression,
        slotSpecifications = slotSpecifications,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy