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

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

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

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

import com.pulumi.awsnative.quicksight.inputs.TemplatePivotTableFieldCollapseStateTargetArgs.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 fieldDataPathValues The data path of the pivot table's header. Used to set the collapse state.
 * @property fieldId The field ID of the pivot table that the collapse state needs to be set to.
 */
public data class TemplatePivotTableFieldCollapseStateTargetArgs(
    public val fieldDataPathValues: Output>? = null,
    public val fieldId: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.quicksight.inputs.TemplatePivotTableFieldCollapseStateTargetArgs =
        com.pulumi.awsnative.quicksight.inputs.TemplatePivotTableFieldCollapseStateTargetArgs.builder()
            .fieldDataPathValues(
                fieldDataPathValues?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .fieldId(fieldId?.applyValue({ args0 -> args0 })).build()
}

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

    private var fieldId: Output? = null

    /**
     * @param value The data path of the pivot table's header. Used to set the collapse state.
     */
    @JvmName("xopiaaaujtjyvqsm")
    public suspend fun fieldDataPathValues(`value`: Output>) {
        this.fieldDataPathValues = value
    }

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

    /**
     * @param values The data path of the pivot table's header. Used to set the collapse state.
     */
    @JvmName("sweqhtowflhmsted")
    public suspend fun fieldDataPathValues(values: List>) {
        this.fieldDataPathValues = Output.all(values)
    }

    /**
     * @param value The field ID of the pivot table that the collapse state needs to be set to.
     */
    @JvmName("jwyfsiojmdvyacoc")
    public suspend fun fieldId(`value`: Output) {
        this.fieldId = value
    }

    /**
     * @param value The data path of the pivot table's header. Used to set the collapse state.
     */
    @JvmName("cafdevkdgdhyiaxq")
    public suspend fun fieldDataPathValues(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.fieldDataPathValues = mapped
    }

    /**
     * @param argument The data path of the pivot table's header. Used to set the collapse state.
     */
    @JvmName("cvhdmkibcsaouutj")
    public suspend fun fieldDataPathValues(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            TemplateDataPathValueArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.fieldDataPathValues = mapped
    }

    /**
     * @param argument The data path of the pivot table's header. Used to set the collapse state.
     */
    @JvmName("otvdpvwxkhxnpvjh")
    public suspend fun fieldDataPathValues(vararg argument: suspend TemplateDataPathValueArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            TemplateDataPathValueArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.fieldDataPathValues = mapped
    }

    /**
     * @param argument The data path of the pivot table's header. Used to set the collapse state.
     */
    @JvmName("btstcycyjaybgnck")
    public suspend fun fieldDataPathValues(argument: suspend TemplateDataPathValueArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TemplateDataPathValueArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.fieldDataPathValues = mapped
    }

    /**
     * @param values The data path of the pivot table's header. Used to set the collapse state.
     */
    @JvmName("trxqdmeqtuartgaj")
    public suspend fun fieldDataPathValues(vararg values: TemplateDataPathValueArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.fieldDataPathValues = mapped
    }

    /**
     * @param value The field ID of the pivot table that the collapse state needs to be set to.
     */
    @JvmName("gufcylwvjhentche")
    public suspend fun fieldId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.fieldId = mapped
    }

    internal fun build(): TemplatePivotTableFieldCollapseStateTargetArgs =
        TemplatePivotTableFieldCollapseStateTargetArgs(
            fieldDataPathValues = fieldDataPathValues,
            fieldId = fieldId,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy