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

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

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

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

import com.pulumi.awsnative.quicksight.inputs.DashboardTableRowConditionalFormattingArgs.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 backgroundColor The conditional formatting color (solid, gradient) of the background for a table row.
 * @property textColor The conditional formatting color (solid, gradient) of the text for a table row.
 */
public data class DashboardTableRowConditionalFormattingArgs(
    public val backgroundColor: Output? = null,
    public val textColor: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.quicksight.inputs.DashboardTableRowConditionalFormattingArgs =
        com.pulumi.awsnative.quicksight.inputs.DashboardTableRowConditionalFormattingArgs.builder()
            .backgroundColor(backgroundColor?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .textColor(textColor?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [DashboardTableRowConditionalFormattingArgs].
 */
@PulumiTagMarker
public class DashboardTableRowConditionalFormattingArgsBuilder internal constructor() {
    private var backgroundColor: Output? = null

    private var textColor: Output? = null

    /**
     * @param value The conditional formatting color (solid, gradient) of the background for a table row.
     */
    @JvmName("rxvwkikcssyahroo")
    public suspend fun backgroundColor(`value`: Output) {
        this.backgroundColor = value
    }

    /**
     * @param value The conditional formatting color (solid, gradient) of the text for a table row.
     */
    @JvmName("mhsjxrxbnqlndthg")
    public suspend fun textColor(`value`: Output) {
        this.textColor = value
    }

    /**
     * @param value The conditional formatting color (solid, gradient) of the background for a table row.
     */
    @JvmName("rgrffahkblybbloj")
    public suspend fun backgroundColor(`value`: DashboardConditionalFormattingColorArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.backgroundColor = mapped
    }

    /**
     * @param argument The conditional formatting color (solid, gradient) of the background for a table row.
     */
    @JvmName("sgfocjykeqmxqkwa")
    public suspend fun backgroundColor(argument: suspend DashboardConditionalFormattingColorArgsBuilder.() -> Unit) {
        val toBeMapped = DashboardConditionalFormattingColorArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.backgroundColor = mapped
    }

    /**
     * @param value The conditional formatting color (solid, gradient) of the text for a table row.
     */
    @JvmName("lgxymhgbjyftdoqt")
    public suspend fun textColor(`value`: DashboardConditionalFormattingColorArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.textColor = mapped
    }

    /**
     * @param argument The conditional formatting color (solid, gradient) of the text for a table row.
     */
    @JvmName("cophqydefmjfvhjk")
    public suspend fun textColor(argument: suspend DashboardConditionalFormattingColorArgsBuilder.() -> Unit) {
        val toBeMapped = DashboardConditionalFormattingColorArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.textColor = mapped
    }

    internal fun build(): DashboardTableRowConditionalFormattingArgs =
        DashboardTableRowConditionalFormattingArgs(
            backgroundColor = backgroundColor,
            textColor = textColor,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy