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

com.pulumi.awsnative.quicksight.kotlin.inputs.TemplatePieChartConfigurationArgs.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: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

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

/**
 *
 * @property categoryLabelOptions The label options of the group/color that is displayed in a pie chart.
 * @property contributionAnalysisDefaults The contribution analysis (anomaly configuration) setup of the visual.
 * @property dataLabels The options that determine if visual data labels are displayed.
 * @property donutOptions The options that determine the shape of the chart. This option determines whether the chart is a pie chart or a donut chart.
 * @property fieldWells The field wells of the visual.
 * @property legend The legend display setup of the visual.
 * @property smallMultiplesOptions The small multiples setup for the visual.
 * @property sortConfiguration The sort configuration of a pie chart.
 * @property tooltip The tooltip display setup of the visual.
 * @property valueLabelOptions The label options for the value that is displayed in a pie chart.
 * @property visualPalette The palette (chart color) display setup of the visual.
 */
public data class TemplatePieChartConfigurationArgs(
    public val categoryLabelOptions: Output? = null,
    public val contributionAnalysisDefaults: Output>? =
        null,
    public val dataLabels: Output? = null,
    public val donutOptions: Output? = null,
    public val fieldWells: Output? = null,
    public val legend: Output? = null,
    public val smallMultiplesOptions: Output? = null,
    public val sortConfiguration: Output? = null,
    public val tooltip: Output? = null,
    public val valueLabelOptions: Output? = null,
    public val visualPalette: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.quicksight.inputs.TemplatePieChartConfigurationArgs =
        com.pulumi.awsnative.quicksight.inputs.TemplatePieChartConfigurationArgs.builder()
            .categoryLabelOptions(
                categoryLabelOptions?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .contributionAnalysisDefaults(
                contributionAnalysisDefaults?.applyValue({ args0 ->
                    args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) })
                }),
            )
            .dataLabels(dataLabels?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .donutOptions(donutOptions?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .fieldWells(fieldWells?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .legend(legend?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .smallMultiplesOptions(
                smallMultiplesOptions?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .sortConfiguration(sortConfiguration?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .tooltip(tooltip?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .valueLabelOptions(valueLabelOptions?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .visualPalette(visualPalette?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [TemplatePieChartConfigurationArgs].
 */
@PulumiTagMarker
public class TemplatePieChartConfigurationArgsBuilder internal constructor() {
    private var categoryLabelOptions: Output? = null

    private var contributionAnalysisDefaults: Output>? =
        null

    private var dataLabels: Output? = null

    private var donutOptions: Output? = null

    private var fieldWells: Output? = null

    private var legend: Output? = null

    private var smallMultiplesOptions: Output? = null

    private var sortConfiguration: Output? = null

    private var tooltip: Output? = null

    private var valueLabelOptions: Output? = null

    private var visualPalette: Output? = null

    /**
     * @param value The label options of the group/color that is displayed in a pie chart.
     */
    @JvmName("bdslhmvwxbpumehf")
    public suspend fun categoryLabelOptions(`value`: Output) {
        this.categoryLabelOptions = value
    }

    /**
     * @param value The contribution analysis (anomaly configuration) setup of the visual.
     */
    @JvmName("rutffjwuflujbisd")
    public suspend fun contributionAnalysisDefaults(`value`: Output>) {
        this.contributionAnalysisDefaults = value
    }

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

    /**
     * @param values The contribution analysis (anomaly configuration) setup of the visual.
     */
    @JvmName("ljluijssjcqujwoh")
    public suspend fun contributionAnalysisDefaults(values: List>) {
        this.contributionAnalysisDefaults = Output.all(values)
    }

    /**
     * @param value The options that determine if visual data labels are displayed.
     */
    @JvmName("vufdrrmqjlkaopdi")
    public suspend fun dataLabels(`value`: Output) {
        this.dataLabels = value
    }

    /**
     * @param value The options that determine the shape of the chart. This option determines whether the chart is a pie chart or a donut chart.
     */
    @JvmName("vdmcucutvupxmmpu")
    public suspend fun donutOptions(`value`: Output) {
        this.donutOptions = value
    }

    /**
     * @param value The field wells of the visual.
     */
    @JvmName("jktbxcldlptpdvky")
    public suspend fun fieldWells(`value`: Output) {
        this.fieldWells = value
    }

    /**
     * @param value The legend display setup of the visual.
     */
    @JvmName("iuajncrjlknstpho")
    public suspend fun legend(`value`: Output) {
        this.legend = value
    }

    /**
     * @param value The small multiples setup for the visual.
     */
    @JvmName("heyoocehuxljldrn")
    public suspend fun smallMultiplesOptions(`value`: Output) {
        this.smallMultiplesOptions = value
    }

    /**
     * @param value The sort configuration of a pie chart.
     */
    @JvmName("ukerbsimisykydbg")
    public suspend fun sortConfiguration(`value`: Output) {
        this.sortConfiguration = value
    }

    /**
     * @param value The tooltip display setup of the visual.
     */
    @JvmName("biiosadkjirkritb")
    public suspend fun tooltip(`value`: Output) {
        this.tooltip = value
    }

    /**
     * @param value The label options for the value that is displayed in a pie chart.
     */
    @JvmName("iusjpxgflarvqmyw")
    public suspend fun valueLabelOptions(`value`: Output) {
        this.valueLabelOptions = value
    }

    /**
     * @param value The palette (chart color) display setup of the visual.
     */
    @JvmName("kdoxkejtmrdgrlyy")
    public suspend fun visualPalette(`value`: Output) {
        this.visualPalette = value
    }

    /**
     * @param value The label options of the group/color that is displayed in a pie chart.
     */
    @JvmName("hhavhvltowsntxfs")
    public suspend fun categoryLabelOptions(`value`: TemplateChartAxisLabelOptionsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.categoryLabelOptions = mapped
    }

    /**
     * @param argument The label options of the group/color that is displayed in a pie chart.
     */
    @JvmName("ecjhixftexwpcivo")
    public suspend fun categoryLabelOptions(argument: suspend TemplateChartAxisLabelOptionsArgsBuilder.() -> Unit) {
        val toBeMapped = TemplateChartAxisLabelOptionsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.categoryLabelOptions = mapped
    }

    /**
     * @param value The contribution analysis (anomaly configuration) setup of the visual.
     */
    @JvmName("maqyxmyyobugnlnc")
    public suspend fun contributionAnalysisDefaults(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.contributionAnalysisDefaults = mapped
    }

    /**
     * @param argument The contribution analysis (anomaly configuration) setup of the visual.
     */
    @JvmName("jbnerxvhplrjicce")
    public suspend fun contributionAnalysisDefaults(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            TemplateContributionAnalysisDefaultArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.contributionAnalysisDefaults = mapped
    }

    /**
     * @param argument The contribution analysis (anomaly configuration) setup of the visual.
     */
    @JvmName("ufggqymgxxinqyks")
    public suspend fun contributionAnalysisDefaults(vararg argument: suspend TemplateContributionAnalysisDefaultArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            TemplateContributionAnalysisDefaultArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.contributionAnalysisDefaults = mapped
    }

    /**
     * @param argument The contribution analysis (anomaly configuration) setup of the visual.
     */
    @JvmName("pkajvdcfkbhhetfc")
    public suspend fun contributionAnalysisDefaults(argument: suspend TemplateContributionAnalysisDefaultArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            TemplateContributionAnalysisDefaultArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.contributionAnalysisDefaults = mapped
    }

    /**
     * @param values The contribution analysis (anomaly configuration) setup of the visual.
     */
    @JvmName("inhjntmofkerlnfc")
    public suspend fun contributionAnalysisDefaults(vararg values: TemplateContributionAnalysisDefaultArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.contributionAnalysisDefaults = mapped
    }

    /**
     * @param value The options that determine if visual data labels are displayed.
     */
    @JvmName("iyaelbbuxdpjmrbj")
    public suspend fun dataLabels(`value`: TemplateDataLabelOptionsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dataLabels = mapped
    }

    /**
     * @param argument The options that determine if visual data labels are displayed.
     */
    @JvmName("byuuxklbtibobyvj")
    public suspend fun dataLabels(argument: suspend TemplateDataLabelOptionsArgsBuilder.() -> Unit) {
        val toBeMapped = TemplateDataLabelOptionsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.dataLabels = mapped
    }

    /**
     * @param value The options that determine the shape of the chart. This option determines whether the chart is a pie chart or a donut chart.
     */
    @JvmName("ilsugbarddxlcrle")
    public suspend fun donutOptions(`value`: TemplateDonutOptionsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.donutOptions = mapped
    }

    /**
     * @param argument The options that determine the shape of the chart. This option determines whether the chart is a pie chart or a donut chart.
     */
    @JvmName("hdmrmdvpxhltnyvv")
    public suspend fun donutOptions(argument: suspend TemplateDonutOptionsArgsBuilder.() -> Unit) {
        val toBeMapped = TemplateDonutOptionsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.donutOptions = mapped
    }

    /**
     * @param value The field wells of the visual.
     */
    @JvmName("xfriyhwvncwxdqho")
    public suspend fun fieldWells(`value`: TemplatePieChartFieldWellsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.fieldWells = mapped
    }

    /**
     * @param argument The field wells of the visual.
     */
    @JvmName("mhluspyxdnhqvmcx")
    public suspend fun fieldWells(argument: suspend TemplatePieChartFieldWellsArgsBuilder.() -> Unit) {
        val toBeMapped = TemplatePieChartFieldWellsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.fieldWells = mapped
    }

    /**
     * @param value The legend display setup of the visual.
     */
    @JvmName("uxcqljquwjasrdnk")
    public suspend fun legend(`value`: TemplateLegendOptionsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.legend = mapped
    }

    /**
     * @param argument The legend display setup of the visual.
     */
    @JvmName("ologagfbvwcwijoo")
    public suspend fun legend(argument: suspend TemplateLegendOptionsArgsBuilder.() -> Unit) {
        val toBeMapped = TemplateLegendOptionsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.legend = mapped
    }

    /**
     * @param value The small multiples setup for the visual.
     */
    @JvmName("nobadoddpukappsr")
    public suspend fun smallMultiplesOptions(`value`: TemplateSmallMultiplesOptionsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.smallMultiplesOptions = mapped
    }

    /**
     * @param argument The small multiples setup for the visual.
     */
    @JvmName("vhmnpcqpphhnbafb")
    public suspend fun smallMultiplesOptions(argument: suspend TemplateSmallMultiplesOptionsArgsBuilder.() -> Unit) {
        val toBeMapped = TemplateSmallMultiplesOptionsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.smallMultiplesOptions = mapped
    }

    /**
     * @param value The sort configuration of a pie chart.
     */
    @JvmName("biflrnovxbcwmfov")
    public suspend fun sortConfiguration(`value`: TemplatePieChartSortConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sortConfiguration = mapped
    }

    /**
     * @param argument The sort configuration of a pie chart.
     */
    @JvmName("nvekvspowhvmbxic")
    public suspend fun sortConfiguration(argument: suspend TemplatePieChartSortConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = TemplatePieChartSortConfigurationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.sortConfiguration = mapped
    }

    /**
     * @param value The tooltip display setup of the visual.
     */
    @JvmName("idnckqcbnytbvcdq")
    public suspend fun tooltip(`value`: TemplateTooltipOptionsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tooltip = mapped
    }

    /**
     * @param argument The tooltip display setup of the visual.
     */
    @JvmName("reivalgkwhausnrb")
    public suspend fun tooltip(argument: suspend TemplateTooltipOptionsArgsBuilder.() -> Unit) {
        val toBeMapped = TemplateTooltipOptionsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.tooltip = mapped
    }

    /**
     * @param value The label options for the value that is displayed in a pie chart.
     */
    @JvmName("sprngmoyqyydnfkc")
    public suspend fun valueLabelOptions(`value`: TemplateChartAxisLabelOptionsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.valueLabelOptions = mapped
    }

    /**
     * @param argument The label options for the value that is displayed in a pie chart.
     */
    @JvmName("qijvaikvxtxbrawp")
    public suspend fun valueLabelOptions(argument: suspend TemplateChartAxisLabelOptionsArgsBuilder.() -> Unit) {
        val toBeMapped = TemplateChartAxisLabelOptionsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.valueLabelOptions = mapped
    }

    /**
     * @param value The palette (chart color) display setup of the visual.
     */
    @JvmName("hivxlkhdfvojydbg")
    public suspend fun visualPalette(`value`: TemplateVisualPaletteArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.visualPalette = mapped
    }

    /**
     * @param argument The palette (chart color) display setup of the visual.
     */
    @JvmName("oitemdnkkjflcncu")
    public suspend fun visualPalette(argument: suspend TemplateVisualPaletteArgsBuilder.() -> Unit) {
        val toBeMapped = TemplateVisualPaletteArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.visualPalette = mapped
    }

    internal fun build(): TemplatePieChartConfigurationArgs = TemplatePieChartConfigurationArgs(
        categoryLabelOptions = categoryLabelOptions,
        contributionAnalysisDefaults = contributionAnalysisDefaults,
        dataLabels = dataLabels,
        donutOptions = donutOptions,
        fieldWells = fieldWells,
        legend = legend,
        smallMultiplesOptions = smallMultiplesOptions,
        sortConfiguration = sortConfiguration,
        tooltip = tooltip,
        valueLabelOptions = valueLabelOptions,
        visualPalette = visualPalette,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy