com.pulumi.awsnative.quicksight.kotlin.inputs.AnalysisShapeConditionalFormatArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.quicksight.kotlin.inputs
import com.pulumi.awsnative.quicksight.inputs.AnalysisShapeConditionalFormatArgs.builder
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 backgroundColor The conditional formatting for the shape background color of a filled map visual.
*/
public data class AnalysisShapeConditionalFormatArgs(
public val backgroundColor: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.quicksight.inputs.AnalysisShapeConditionalFormatArgs =
com.pulumi.awsnative.quicksight.inputs.AnalysisShapeConditionalFormatArgs.builder()
.backgroundColor(
backgroundColor.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [AnalysisShapeConditionalFormatArgs].
*/
@PulumiTagMarker
public class AnalysisShapeConditionalFormatArgsBuilder internal constructor() {
private var backgroundColor: Output? = null
/**
* @param value The conditional formatting for the shape background color of a filled map visual.
*/
@JvmName("wfbdcgsudhsafvee")
public suspend fun backgroundColor(`value`: Output) {
this.backgroundColor = value
}
/**
* @param value The conditional formatting for the shape background color of a filled map visual.
*/
@JvmName("yjjcdipttuurnmyk")
public suspend fun backgroundColor(`value`: AnalysisConditionalFormattingColorArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.backgroundColor = mapped
}
/**
* @param argument The conditional formatting for the shape background color of a filled map visual.
*/
@JvmName("jmgwxqftmpdttajj")
public suspend fun backgroundColor(argument: suspend AnalysisConditionalFormattingColorArgsBuilder.() -> Unit) {
val toBeMapped = AnalysisConditionalFormattingColorArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.backgroundColor = mapped
}
internal fun build(): AnalysisShapeConditionalFormatArgs = AnalysisShapeConditionalFormatArgs(
backgroundColor = backgroundColor ?: throw PulumiNullFieldException("backgroundColor"),
)
}