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

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

/**
 *
 * @property arcOptions The option for define the arc of the chart shape. Valid values are as follows:
 * - `WHOLE` - A pie chart
 * - `SMALL` - A small-sized donut chart
 * - `MEDIUM` - A medium-sized donut chart
 * - `LARGE` - A large-sized donut chart
 * @property donutCenterOptions The label options of the label that is displayed in the center of a donut chart. This option isn't available for pie charts.
 */
public data class DashboardDonutOptionsArgs(
    public val arcOptions: Output? = null,
    public val donutCenterOptions: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.quicksight.inputs.DashboardDonutOptionsArgs =
        com.pulumi.awsnative.quicksight.inputs.DashboardDonutOptionsArgs.builder()
            .arcOptions(arcOptions?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .donutCenterOptions(
                donutCenterOptions?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [DashboardDonutOptionsArgs].
 */
@PulumiTagMarker
public class DashboardDonutOptionsArgsBuilder internal constructor() {
    private var arcOptions: Output? = null

    private var donutCenterOptions: Output? = null

    /**
     * @param value The option for define the arc of the chart shape. Valid values are as follows:
     * - `WHOLE` - A pie chart
     * - `SMALL` - A small-sized donut chart
     * - `MEDIUM` - A medium-sized donut chart
     * - `LARGE` - A large-sized donut chart
     */
    @JvmName("yewwbubfgcfvpggq")
    public suspend fun arcOptions(`value`: Output) {
        this.arcOptions = value
    }

    /**
     * @param value The label options of the label that is displayed in the center of a donut chart. This option isn't available for pie charts.
     */
    @JvmName("sywhgemgtbvqdrth")
    public suspend fun donutCenterOptions(`value`: Output) {
        this.donutCenterOptions = value
    }

    /**
     * @param value The option for define the arc of the chart shape. Valid values are as follows:
     * - `WHOLE` - A pie chart
     * - `SMALL` - A small-sized donut chart
     * - `MEDIUM` - A medium-sized donut chart
     * - `LARGE` - A large-sized donut chart
     */
    @JvmName("xgnvfubgoudffgav")
    public suspend fun arcOptions(`value`: DashboardArcOptionsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.arcOptions = mapped
    }

    /**
     * @param argument The option for define the arc of the chart shape. Valid values are as follows:
     * - `WHOLE` - A pie chart
     * - `SMALL` - A small-sized donut chart
     * - `MEDIUM` - A medium-sized donut chart
     * - `LARGE` - A large-sized donut chart
     */
    @JvmName("afgahcwvjopjyxau")
    public suspend fun arcOptions(argument: suspend DashboardArcOptionsArgsBuilder.() -> Unit) {
        val toBeMapped = DashboardArcOptionsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.arcOptions = mapped
    }

    /**
     * @param value The label options of the label that is displayed in the center of a donut chart. This option isn't available for pie charts.
     */
    @JvmName("ivhclvcaiebdahsa")
    public suspend fun donutCenterOptions(`value`: DashboardDonutCenterOptionsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.donutCenterOptions = mapped
    }

    /**
     * @param argument The label options of the label that is displayed in the center of a donut chart. This option isn't available for pie charts.
     */
    @JvmName("iptikitoxspbalki")
    public suspend fun donutCenterOptions(argument: suspend DashboardDonutCenterOptionsArgsBuilder.() -> Unit) {
        val toBeMapped = DashboardDonutCenterOptionsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.donutCenterOptions = mapped
    }

    internal fun build(): DashboardDonutOptionsArgs = DashboardDonutOptionsArgs(
        arcOptions = arcOptions,
        donutCenterOptions = donutCenterOptions,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy