
com.pulumi.awsnative.quicksight.kotlin.inputs.AnalysisPivotTableFieldCollapseStateOptionArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.quicksight.kotlin.inputs
import com.pulumi.awsnative.quicksight.inputs.AnalysisPivotTableFieldCollapseStateOptionArgs.builder
import com.pulumi.awsnative.quicksight.kotlin.enums.AnalysisPivotTableFieldCollapseState
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 AnalysisPivotTableFieldCollapseStateOptionArgs(
public val state: Output? = null,
public val target: Output,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.quicksight.inputs.AnalysisPivotTableFieldCollapseStateOptionArgs =
com.pulumi.awsnative.quicksight.inputs.AnalysisPivotTableFieldCollapseStateOptionArgs.builder()
.state(state?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.target(target.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [AnalysisPivotTableFieldCollapseStateOptionArgs].
*/
@PulumiTagMarker
public class AnalysisPivotTableFieldCollapseStateOptionArgsBuilder 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("pkaulydngatkpjrr")
public suspend fun state(`value`: Output) {
this.state = value
}
/**
* @param value A tagged-union object that sets the collapse state.
*/
@JvmName("guimyuuqosfsxcdh")
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("ghnmojequncwybog")
public suspend fun state(`value`: AnalysisPivotTableFieldCollapseState?) {
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("yjejkhhfsnbyhhoi")
public suspend fun target(`value`: AnalysisPivotTableFieldCollapseStateTargetArgs) {
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("lgxrgaxntmeqiaba")
public suspend fun target(argument: suspend AnalysisPivotTableFieldCollapseStateTargetArgsBuilder.() -> Unit) {
val toBeMapped = AnalysisPivotTableFieldCollapseStateTargetArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.target = mapped
}
internal fun build(): AnalysisPivotTableFieldCollapseStateOptionArgs =
AnalysisPivotTableFieldCollapseStateOptionArgs(
state = state,
target = target ?: throw PulumiNullFieldException("target"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy