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

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

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

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

import com.pulumi.awsnative.quicksight.inputs.AnalysisFilledMapShapeConditionalFormattingArgs.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.jvm.JvmName

/**
 *
 * @property fieldId The field ID of the filled map shape.
 * @property format The conditional formatting that determines the background color of a filled map's shape.
 */
public data class AnalysisFilledMapShapeConditionalFormattingArgs(
    public val fieldId: Output,
    public val format: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.quicksight.inputs.AnalysisFilledMapShapeConditionalFormattingArgs =
        com.pulumi.awsnative.quicksight.inputs.AnalysisFilledMapShapeConditionalFormattingArgs.builder()
            .fieldId(fieldId.applyValue({ args0 -> args0 }))
            .format(format?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

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

    private var format: Output? = null

    /**
     * @param value The field ID of the filled map shape.
     */
    @JvmName("xqttoafvrscikfgb")
    public suspend fun fieldId(`value`: Output) {
        this.fieldId = value
    }

    /**
     * @param value The conditional formatting that determines the background color of a filled map's shape.
     */
    @JvmName("wbotqqaoamxamweb")
    public suspend fun format(`value`: Output) {
        this.format = value
    }

    /**
     * @param value The field ID of the filled map shape.
     */
    @JvmName("mkhofejvjxaejebw")
    public suspend fun fieldId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.fieldId = mapped
    }

    /**
     * @param value The conditional formatting that determines the background color of a filled map's shape.
     */
    @JvmName("xbispxdkitedjlkl")
    public suspend fun format(`value`: AnalysisShapeConditionalFormatArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.format = mapped
    }

    /**
     * @param argument The conditional formatting that determines the background color of a filled map's shape.
     */
    @JvmName("ohqvekrvjxnpnftn")
    public suspend fun format(argument: suspend AnalysisShapeConditionalFormatArgsBuilder.() -> Unit) {
        val toBeMapped = AnalysisShapeConditionalFormatArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.format = mapped
    }

    internal fun build(): AnalysisFilledMapShapeConditionalFormattingArgs =
        AnalysisFilledMapShapeConditionalFormattingArgs(
            fieldId = fieldId ?: throw PulumiNullFieldException("fieldId"),
            format = format,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy