![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.quicksight.kotlin.inputs.TemplateShapeConditionalFormatArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.quicksight.kotlin.inputs
import com.pulumi.awsnative.quicksight.inputs.TemplateShapeConditionalFormatArgs.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 TemplateShapeConditionalFormatArgs(
public val backgroundColor: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.quicksight.inputs.TemplateShapeConditionalFormatArgs =
com.pulumi.awsnative.quicksight.inputs.TemplateShapeConditionalFormatArgs.builder()
.backgroundColor(
backgroundColor.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [TemplateShapeConditionalFormatArgs].
*/
@PulumiTagMarker
public class TemplateShapeConditionalFormatArgsBuilder internal constructor() {
private var backgroundColor: Output? = null
/**
* @param value The conditional formatting for the shape background color of a filled map visual.
*/
@JvmName("lnsyprlixjnajpcn")
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("tuwxkqgenvyyoddv")
public suspend fun backgroundColor(`value`: TemplateConditionalFormattingColorArgs) {
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("idtpielnditbulul")
public suspend fun backgroundColor(argument: suspend TemplateConditionalFormattingColorArgsBuilder.() -> Unit) {
val toBeMapped = TemplateConditionalFormattingColorArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.backgroundColor = mapped
}
internal fun build(): TemplateShapeConditionalFormatArgs = TemplateShapeConditionalFormatArgs(
backgroundColor = backgroundColor ?: throw PulumiNullFieldException("backgroundColor"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy