
com.pulumi.awsnative.quicksight.kotlin.inputs.DashboardPivotTableFieldCollapseStateOptionArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.quicksight.kotlin.inputs
import com.pulumi.awsnative.quicksight.inputs.DashboardPivotTableFieldCollapseStateOptionArgs.builder
import com.pulumi.awsnative.quicksight.kotlin.enums.DashboardPivotTableFieldCollapseState
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.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property state The state of the field target of a pivot table. Choose one of the following options:
* - `COLLAPSED`
* - `EXPANDED`
* @property target A tagged-union object that sets the collapse state.
*/
public data class DashboardPivotTableFieldCollapseStateOptionArgs(
public val state: Output? = null,
public val target: Output,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.quicksight.inputs.DashboardPivotTableFieldCollapseStateOptionArgs =
com.pulumi.awsnative.quicksight.inputs.DashboardPivotTableFieldCollapseStateOptionArgs.builder()
.state(state?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.target(target.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [DashboardPivotTableFieldCollapseStateOptionArgs].
*/
@PulumiTagMarker
public class DashboardPivotTableFieldCollapseStateOptionArgsBuilder internal constructor() {
private var state: Output? = null
private var target: Output? = null
/**
* @param value The state of the field target of a pivot table. Choose one of the following options:
* - `COLLAPSED`
* - `EXPANDED`
*/
@JvmName("oknmdrarxdftgpal")
public suspend fun state(`value`: Output) {
this.state = value
}
/**
* @param value A tagged-union object that sets the collapse state.
*/
@JvmName("stamdonybeyhhnjx")
public suspend fun target(`value`: Output) {
this.target = value
}
/**
* @param value The state of the field target of a pivot table. Choose one of the following options:
* - `COLLAPSED`
* - `EXPANDED`
*/
@JvmName("xulaagsoecyaedcm")
public suspend fun state(`value`: DashboardPivotTableFieldCollapseState?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.state = mapped
}
/**
* @param value A tagged-union object that sets the collapse state.
*/
@JvmName("rybgcouhuyjephrj")
public suspend fun target(`value`: DashboardPivotTableFieldCollapseStateTargetArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.target = mapped
}
/**
* @param argument A tagged-union object that sets the collapse state.
*/
@JvmName("ohkbttrvabbhphuw")
public suspend fun target(argument: suspend DashboardPivotTableFieldCollapseStateTargetArgsBuilder.() -> Unit) {
val toBeMapped = DashboardPivotTableFieldCollapseStateTargetArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.target = mapped
}
internal fun build(): DashboardPivotTableFieldCollapseStateOptionArgs =
DashboardPivotTableFieldCollapseStateOptionArgs(
state = state,
target = target ?: throw PulumiNullFieldException("target"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy