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

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

/**
 *
 * @property chartColor The chart color options for the visual palette.
 * @property colorMap The color map options for the visual palette.
 */
public data class TemplateVisualPaletteArgs(
    public val chartColor: Output? = null,
    public val colorMap: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.quicksight.inputs.TemplateVisualPaletteArgs =
        com.pulumi.awsnative.quicksight.inputs.TemplateVisualPaletteArgs.builder()
            .chartColor(chartColor?.applyValue({ args0 -> args0 }))
            .colorMap(
                colorMap?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [TemplateVisualPaletteArgs].
 */
@PulumiTagMarker
public class TemplateVisualPaletteArgsBuilder internal constructor() {
    private var chartColor: Output? = null

    private var colorMap: Output>? = null

    /**
     * @param value The chart color options for the visual palette.
     */
    @JvmName("xotyetsjdmfmffit")
    public suspend fun chartColor(`value`: Output) {
        this.chartColor = value
    }

    /**
     * @param value The color map options for the visual palette.
     */
    @JvmName("vurlkvoxyruyudgk")
    public suspend fun colorMap(`value`: Output>) {
        this.colorMap = value
    }

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

    /**
     * @param values The color map options for the visual palette.
     */
    @JvmName("lyfrlovijpntmorc")
    public suspend fun colorMap(values: List>) {
        this.colorMap = Output.all(values)
    }

    /**
     * @param value The chart color options for the visual palette.
     */
    @JvmName("ubmefwkqjnbtlliq")
    public suspend fun chartColor(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.chartColor = mapped
    }

    /**
     * @param value The color map options for the visual palette.
     */
    @JvmName("frpefeiujsvhvdrk")
    public suspend fun colorMap(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.colorMap = mapped
    }

    /**
     * @param argument The color map options for the visual palette.
     */
    @JvmName("miwkwtuliuiwpduk")
    public suspend fun colorMap(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            TemplateDataPathColorArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.colorMap = mapped
    }

    /**
     * @param argument The color map options for the visual palette.
     */
    @JvmName("akxierowuufhurqq")
    public suspend fun colorMap(vararg argument: suspend TemplateDataPathColorArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            TemplateDataPathColorArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.colorMap = mapped
    }

    /**
     * @param argument The color map options for the visual palette.
     */
    @JvmName("flgjfjpjjueisdxj")
    public suspend fun colorMap(argument: suspend TemplateDataPathColorArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TemplateDataPathColorArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.colorMap = mapped
    }

    /**
     * @param values The color map options for the visual palette.
     */
    @JvmName("brluxaoxwxpsmnqn")
    public suspend fun colorMap(vararg values: TemplateDataPathColorArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.colorMap = mapped
    }

    internal fun build(): TemplateVisualPaletteArgs = TemplateVisualPaletteArgs(
        chartColor = chartColor,
        colorMap = colorMap,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy