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

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

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 0.122.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

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

/**
 *
 * @property fieldId The field ID of the cell for conditional formatting.
 * @property scope The scope of the cell for conditional formatting.
 * @property scopes A list of cell scopes for conditional formatting.
 * @property textFormat The text format of the cell for conditional formatting.
 */
public data class AnalysisPivotTableCellConditionalFormattingArgs(
    public val fieldId: Output,
    public val scope: Output? = null,
    public val scopes: Output>? = null,
    public val textFormat: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.quicksight.inputs.AnalysisPivotTableCellConditionalFormattingArgs =
        com.pulumi.awsnative.quicksight.inputs.AnalysisPivotTableCellConditionalFormattingArgs.builder()
            .fieldId(fieldId.applyValue({ args0 -> args0 }))
            .scope(scope?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .scopes(scopes?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .textFormat(textFormat?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [AnalysisPivotTableCellConditionalFormattingArgs].
 */
@PulumiTagMarker
public class AnalysisPivotTableCellConditionalFormattingArgsBuilder internal constructor() {
    private var fieldId: Output? = null

    private var scope: Output? = null

    private var scopes: Output>? = null

    private var textFormat: Output? = null

    /**
     * @param value The field ID of the cell for conditional formatting.
     */
    @JvmName("xskhxndxpawrynra")
    public suspend fun fieldId(`value`: Output) {
        this.fieldId = value
    }

    /**
     * @param value The scope of the cell for conditional formatting.
     */
    @JvmName("edyhdmsgricxdupe")
    public suspend fun scope(`value`: Output) {
        this.scope = value
    }

    /**
     * @param value A list of cell scopes for conditional formatting.
     */
    @JvmName("nmqatvmnqvtwsveh")
    public suspend fun scopes(`value`: Output>) {
        this.scopes = value
    }

    @JvmName("xkdtjehgcucsewtn")
    public suspend fun scopes(vararg values: Output) {
        this.scopes = Output.all(values.asList())
    }

    /**
     * @param values A list of cell scopes for conditional formatting.
     */
    @JvmName("qimnvmbwtxkaoqcy")
    public suspend fun scopes(values: List>) {
        this.scopes = Output.all(values)
    }

    /**
     * @param value The text format of the cell for conditional formatting.
     */
    @JvmName("uembyqebgahnsrqd")
    public suspend fun textFormat(`value`: Output) {
        this.textFormat = value
    }

    /**
     * @param value The field ID of the cell for conditional formatting.
     */
    @JvmName("gbiibjwaixhngvqw")
    public suspend fun fieldId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.fieldId = mapped
    }

    /**
     * @param value The scope of the cell for conditional formatting.
     */
    @JvmName("kyyewogtbxhaaowt")
    public suspend fun scope(`value`: AnalysisPivotTableConditionalFormattingScopeArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.scope = mapped
    }

    /**
     * @param argument The scope of the cell for conditional formatting.
     */
    @JvmName("aynamrbeinfatjnf")
    public suspend fun scope(argument: suspend AnalysisPivotTableConditionalFormattingScopeArgsBuilder.() -> Unit) {
        val toBeMapped = AnalysisPivotTableConditionalFormattingScopeArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.scope = mapped
    }

    /**
     * @param value A list of cell scopes for conditional formatting.
     */
    @JvmName("dnpaarchdwfadoej")
    public suspend fun scopes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.scopes = mapped
    }

    /**
     * @param argument A list of cell scopes for conditional formatting.
     */
    @JvmName("imtfexktkplgchao")
    public suspend fun scopes(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AnalysisPivotTableConditionalFormattingScopeArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.scopes = mapped
    }

    /**
     * @param argument A list of cell scopes for conditional formatting.
     */
    @JvmName("vctxoaoisopskpxl")
    public suspend fun scopes(vararg argument: suspend AnalysisPivotTableConditionalFormattingScopeArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            AnalysisPivotTableConditionalFormattingScopeArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.scopes = mapped
    }

    /**
     * @param argument A list of cell scopes for conditional formatting.
     */
    @JvmName("tpgnaidtvcrjvabv")
    public suspend fun scopes(argument: suspend AnalysisPivotTableConditionalFormattingScopeArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            AnalysisPivotTableConditionalFormattingScopeArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.scopes = mapped
    }

    /**
     * @param values A list of cell scopes for conditional formatting.
     */
    @JvmName("htrkohfwrqqunubf")
    public suspend fun scopes(vararg values: AnalysisPivotTableConditionalFormattingScopeArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.scopes = mapped
    }

    /**
     * @param value The text format of the cell for conditional formatting.
     */
    @JvmName("ivafxbxmdfkchglv")
    public suspend fun textFormat(`value`: AnalysisTextConditionalFormatArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.textFormat = mapped
    }

    /**
     * @param argument The text format of the cell for conditional formatting.
     */
    @JvmName("qbvfctosuodchvow")
    public suspend fun textFormat(argument: suspend AnalysisTextConditionalFormatArgsBuilder.() -> Unit) {
        val toBeMapped = AnalysisTextConditionalFormatArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.textFormat = mapped
    }

    internal fun build(): AnalysisPivotTableCellConditionalFormattingArgs =
        AnalysisPivotTableCellConditionalFormattingArgs(
            fieldId = fieldId ?: throw PulumiNullFieldException("fieldId"),
            scope = scope,
            scopes = scopes,
            textFormat = textFormat,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy