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

com.pulumi.awsnative.quicksight.kotlin.inputs.TemplateCascadingControlConfigurationArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.quicksight.kotlin.inputs

import com.pulumi.awsnative.quicksight.inputs.TemplateCascadingControlConfigurationArgs.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

/**
 *
 * @property sourceControls A list of source controls that determine the values that are used in the current control.
 */
public data class TemplateCascadingControlConfigurationArgs(
    public val sourceControls: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.quicksight.inputs.TemplateCascadingControlConfigurationArgs =
        com.pulumi.awsnative.quicksight.inputs.TemplateCascadingControlConfigurationArgs.builder()
            .sourceControls(
                sourceControls?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [TemplateCascadingControlConfigurationArgs].
 */
@PulumiTagMarker
public class TemplateCascadingControlConfigurationArgsBuilder internal constructor() {
    private var sourceControls: Output>? = null

    /**
     * @param value A list of source controls that determine the values that are used in the current control.
     */
    @JvmName("ykxxprflulpljdfn")
    public suspend fun sourceControls(`value`: Output>) {
        this.sourceControls = value
    }

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

    /**
     * @param values A list of source controls that determine the values that are used in the current control.
     */
    @JvmName("mxyvdskppqfwfodi")
    public suspend fun sourceControls(values: List>) {
        this.sourceControls = Output.all(values)
    }

    /**
     * @param value A list of source controls that determine the values that are used in the current control.
     */
    @JvmName("xktomdglknqhqcjh")
    public suspend fun sourceControls(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sourceControls = mapped
    }

    /**
     * @param argument A list of source controls that determine the values that are used in the current control.
     */
    @JvmName("pqkxftusvlmrppog")
    public suspend fun sourceControls(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            TemplateCascadingControlSourceArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.sourceControls = mapped
    }

    /**
     * @param argument A list of source controls that determine the values that are used in the current control.
     */
    @JvmName("wttfbabkgkqwgvsk")
    public suspend fun sourceControls(vararg argument: suspend TemplateCascadingControlSourceArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            TemplateCascadingControlSourceArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.sourceControls = mapped
    }

    /**
     * @param argument A list of source controls that determine the values that are used in the current control.
     */
    @JvmName("ggrisffyntfedvsp")
    public suspend fun sourceControls(argument: suspend TemplateCascadingControlSourceArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            TemplateCascadingControlSourceArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.sourceControls = mapped
    }

    /**
     * @param values A list of source controls that determine the values that are used in the current control.
     */
    @JvmName("tcdygiecivhtfsri")
    public suspend fun sourceControls(vararg values: TemplateCascadingControlSourceArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sourceControls = mapped
    }

    internal fun build(): TemplateCascadingControlConfigurationArgs =
        TemplateCascadingControlConfigurationArgs(
            sourceControls = sourceControls,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy