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

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

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

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

import com.pulumi.awsnative.quicksight.inputs.DashboardParameterDropDownControlArgs.builder
import com.pulumi.awsnative.quicksight.kotlin.enums.DashboardSheetControlListType
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.jvm.JvmName

/**
 *
 * @property cascadingControlConfiguration The values that are displayed in a control can be configured to only show values that are valid based on what's selected in other controls.
 * @property displayOptions The display options of a control.
 * @property parameterControlId The ID of the `ParameterDropDownControl` .
 * @property selectableValues A list of selectable values that are used in a control.
 * @property sourceParameterName The source parameter name of the `ParameterDropDownControl` .
 * @property title The title of the `ParameterDropDownControl` .
 * @property type The type parameter name of the `ParameterDropDownControl` .
 */
public data class DashboardParameterDropDownControlArgs(
    public val cascadingControlConfiguration: Output? =
        null,
    public val displayOptions: Output? = null,
    public val parameterControlId: Output,
    public val selectableValues: Output? = null,
    public val sourceParameterName: Output,
    public val title: Output,
    public val type: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.quicksight.inputs.DashboardParameterDropDownControlArgs =
        com.pulumi.awsnative.quicksight.inputs.DashboardParameterDropDownControlArgs.builder()
            .cascadingControlConfiguration(
                cascadingControlConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 -> args0.toJava() })
                }),
            )
            .displayOptions(displayOptions?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .parameterControlId(parameterControlId.applyValue({ args0 -> args0 }))
            .selectableValues(selectableValues?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .sourceParameterName(sourceParameterName.applyValue({ args0 -> args0 }))
            .title(title.applyValue({ args0 -> args0 }))
            .type(type?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [DashboardParameterDropDownControlArgs].
 */
@PulumiTagMarker
public class DashboardParameterDropDownControlArgsBuilder internal constructor() {
    private var cascadingControlConfiguration: Output? =
        null

    private var displayOptions: Output? = null

    private var parameterControlId: Output? = null

    private var selectableValues: Output? = null

    private var sourceParameterName: Output? = null

    private var title: Output? = null

    private var type: Output? = null

    /**
     * @param value The values that are displayed in a control can be configured to only show values that are valid based on what's selected in other controls.
     */
    @JvmName("fxvwpymhpcrbumdx")
    public suspend fun cascadingControlConfiguration(`value`: Output) {
        this.cascadingControlConfiguration = value
    }

    /**
     * @param value The display options of a control.
     */
    @JvmName("eiysiskxsfladeuy")
    public suspend fun displayOptions(`value`: Output) {
        this.displayOptions = value
    }

    /**
     * @param value The ID of the `ParameterDropDownControl` .
     */
    @JvmName("hhwysmvngqtlppfh")
    public suspend fun parameterControlId(`value`: Output) {
        this.parameterControlId = value
    }

    /**
     * @param value A list of selectable values that are used in a control.
     */
    @JvmName("olylabqalrriitcc")
    public suspend fun selectableValues(`value`: Output) {
        this.selectableValues = value
    }

    /**
     * @param value The source parameter name of the `ParameterDropDownControl` .
     */
    @JvmName("rpfcdlhysfaaqrxw")
    public suspend fun sourceParameterName(`value`: Output) {
        this.sourceParameterName = value
    }

    /**
     * @param value The title of the `ParameterDropDownControl` .
     */
    @JvmName("reccsqvgsahsifut")
    public suspend fun title(`value`: Output) {
        this.title = value
    }

    /**
     * @param value The type parameter name of the `ParameterDropDownControl` .
     */
    @JvmName("hxywvsrngbytoiky")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value The values that are displayed in a control can be configured to only show values that are valid based on what's selected in other controls.
     */
    @JvmName("vtpmththvunsiocw")
    public suspend fun cascadingControlConfiguration(`value`: DashboardCascadingControlConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cascadingControlConfiguration = mapped
    }

    /**
     * @param argument The values that are displayed in a control can be configured to only show values that are valid based on what's selected in other controls.
     */
    @JvmName("tcgpeiyhrmaqmlhk")
    public suspend fun cascadingControlConfiguration(argument: suspend DashboardCascadingControlConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = DashboardCascadingControlConfigurationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.cascadingControlConfiguration = mapped
    }

    /**
     * @param value The display options of a control.
     */
    @JvmName("oetsevndkiucthnv")
    public suspend fun displayOptions(`value`: DashboardDropDownControlDisplayOptionsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.displayOptions = mapped
    }

    /**
     * @param argument The display options of a control.
     */
    @JvmName("dinhryqniulxgjja")
    public suspend fun displayOptions(argument: suspend DashboardDropDownControlDisplayOptionsArgsBuilder.() -> Unit) {
        val toBeMapped = DashboardDropDownControlDisplayOptionsArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.displayOptions = mapped
    }

    /**
     * @param value The ID of the `ParameterDropDownControl` .
     */
    @JvmName("hoxljeifqpmfqjfu")
    public suspend fun parameterControlId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.parameterControlId = mapped
    }

    /**
     * @param value A list of selectable values that are used in a control.
     */
    @JvmName("opgmfjavpjcklpgg")
    public suspend fun selectableValues(`value`: DashboardParameterSelectableValuesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.selectableValues = mapped
    }

    /**
     * @param argument A list of selectable values that are used in a control.
     */
    @JvmName("msdotnaxoygtuwyc")
    public suspend fun selectableValues(argument: suspend DashboardParameterSelectableValuesArgsBuilder.() -> Unit) {
        val toBeMapped = DashboardParameterSelectableValuesArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.selectableValues = mapped
    }

    /**
     * @param value The source parameter name of the `ParameterDropDownControl` .
     */
    @JvmName("omjyrkndqqjekofm")
    public suspend fun sourceParameterName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sourceParameterName = mapped
    }

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

    /**
     * @param value The type parameter name of the `ParameterDropDownControl` .
     */
    @JvmName("agpnpgemrlgnwyfb")
    public suspend fun type(`value`: DashboardSheetControlListType?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): DashboardParameterDropDownControlArgs =
        DashboardParameterDropDownControlArgs(
            cascadingControlConfiguration = cascadingControlConfiguration,
            displayOptions = displayOptions,
            parameterControlId = parameterControlId ?: throw PulumiNullFieldException("parameterControlId"),
            selectableValues = selectableValues,
            sourceParameterName = sourceParameterName ?: throw PulumiNullFieldException("sourceParameterName"),
            title = title ?: throw PulumiNullFieldException("title"),
            type = type,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy