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

@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("loqodmtobmpuutfh")
    public suspend fun categoryLabelOptions(`value`: Output) {
        this.categoryLabelOptions = value
    }

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

    @JvmName("kdjjenebfjmmongb")
    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("eaeatdytikawjhql")
    public suspend fun contributionAnalysisDefaults(values: List>) {
        this.contributionAnalysisDefaults = Output.all(values)
    }

    /**
     * @param value The options that determine if visual data labels are displayed.
     */
    @JvmName("gnwcbywobrlppxps")
    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("kdwqxlhgvfkaqaid")
    public suspend fun donutOptions(`value`: Output) {
        this.donutOptions = value
    }

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

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

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

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

    /**
     * @param value The tooltip display setup of the visual.
     */
    @JvmName("hplexamsbemkkxpb")
    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("pppfyfspetirlfxe")
    public suspend fun valueLabelOptions(`value`: Output) {
        this.valueLabelOptions = value
    }

    /**
     * @param value The palette (chart color) display setup of the visual.
     */
    @JvmName("xnmjlaqlrcrhhxbu")
    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("hoqytsqsyqaiemsc")
    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("vwrkmgjakonlixok")
    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("tlfrjorqqqvexfce")
    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("lbaprdmrnftyagag")
    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("tugollfcwpbwmdpw")
    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("endcgysnceveumdn")
    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("eiidperttrmeqcng")
    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("kssvsktpuclspips")
    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("aibdvfowlllunexn")
    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("ngmcoxuteemygdan")
    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("ghvpxyhtwceafepv")
    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("yreereancrpbpgkq")
    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("pwrtuysepscbvche")
    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("dcqbfdgwnxkgvrrs")
    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("fwxqkmvcjqhhadhh")
    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("umbwtopajplakkfi")
    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("uoknnfmaadovpioy")
    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("cdnyarkethteemyo")
    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("ugiqwondmvgnyeiv")
    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("kkurnjagsjmgvmjf")
    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("fusfemmorchherqk")
    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("ykcbnnntjvtxgccy")
    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("cdmouayfibcjkxdp")
    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("qxyrcfepdrmcqxks")
    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("mcwnyunchcyluhxw")
    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