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

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

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

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

import com.pulumi.awsnative.quicksight.inputs.TemplateKpiProgressBarConditionalFormattingArgs.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.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property foregroundColor The conditional formatting of the progress bar's foreground color.
 */
public data class TemplateKpiProgressBarConditionalFormattingArgs(
    public val foregroundColor: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.quicksight.inputs.TemplateKpiProgressBarConditionalFormattingArgs =
        com.pulumi.awsnative.quicksight.inputs.TemplateKpiProgressBarConditionalFormattingArgs.builder()
            .foregroundColor(
                foregroundColor?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [TemplateKpiProgressBarConditionalFormattingArgs].
 */
@PulumiTagMarker
public class TemplateKpiProgressBarConditionalFormattingArgsBuilder internal constructor() {
    private var foregroundColor: Output? = null

    /**
     * @param value The conditional formatting of the progress bar's foreground color.
     */
    @JvmName("napdapanlplgsuhr")
    public suspend fun foregroundColor(`value`: Output) {
        this.foregroundColor = value
    }

    /**
     * @param value The conditional formatting of the progress bar's foreground color.
     */
    @JvmName("ktfxdcminxjwnlvw")
    public suspend fun foregroundColor(`value`: TemplateConditionalFormattingColorArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.foregroundColor = mapped
    }

    /**
     * @param argument The conditional formatting of the progress bar's foreground color.
     */
    @JvmName("ukeegmlnbnjpfkhi")
    public suspend fun foregroundColor(argument: suspend TemplateConditionalFormattingColorArgsBuilder.() -> Unit) {
        val toBeMapped = TemplateConditionalFormattingColorArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.foregroundColor = mapped
    }

    internal fun build(): TemplateKpiProgressBarConditionalFormattingArgs =
        TemplateKpiProgressBarConditionalFormattingArgs(
            foregroundColor = foregroundColor,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy