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

com.pulumi.awsnative.quicksight.kotlin.inputs.AnalysisVisualPaletteArgs.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.AnalysisVisualPaletteArgs.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 AnalysisVisualPaletteArgs(
    public val chartColor: Output? = null,
    public val colorMap: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.quicksight.inputs.AnalysisVisualPaletteArgs =
        com.pulumi.awsnative.quicksight.inputs.AnalysisVisualPaletteArgs.builder()
            .chartColor(chartColor?.applyValue({ args0 -> args0 }))
            .colorMap(
                colorMap?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var colorMap: Output>? = null

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

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

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

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

    /**
     * @param value The chart color options for the visual palette.
     */
    @JvmName("lukrowxrslwrbbso")
    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("togyyrnasldxnsha")
    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("nanydhdcnxbyiwfs")
    public suspend fun colorMap(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AnalysisDataPathColorArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.colorMap = mapped
    }

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

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy