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

com.pulumi.awsnative.quicksight.kotlin.inputs.DashboardDataLabelOptionsArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

import com.pulumi.awsnative.quicksight.inputs.DashboardDataLabelOptionsArgs.builder
import com.pulumi.awsnative.quicksight.kotlin.enums.DashboardDataLabelContent
import com.pulumi.awsnative.quicksight.kotlin.enums.DashboardDataLabelOverlap
import com.pulumi.awsnative.quicksight.kotlin.enums.DashboardDataLabelPosition
import com.pulumi.awsnative.quicksight.kotlin.enums.DashboardVisibility
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 categoryLabelVisibility Determines the visibility of the category field labels.
 * @property dataLabelTypes The option that determines the data label type.
 * @property labelColor Determines the color of the data labels.
 * @property labelContent Determines the content of the data labels.
 * @property labelFontConfiguration Determines the font configuration of the data labels.
 * @property measureLabelVisibility Determines the visibility of the measure field labels.
 * @property overlap Determines whether overlap is enabled or disabled for the data labels.
 * @property position Determines the position of the data labels.
 * @property totalsVisibility Determines the visibility of the total.
 * @property visibility Determines the visibility of the data labels.
 */
public data class DashboardDataLabelOptionsArgs(
    public val categoryLabelVisibility: Output? = null,
    public val dataLabelTypes: Output>? = null,
    public val labelColor: Output? = null,
    public val labelContent: Output? = null,
    public val labelFontConfiguration: Output? = null,
    public val measureLabelVisibility: Output? = null,
    public val overlap: Output? = null,
    public val position: Output? = null,
    public val totalsVisibility: Output? = null,
    public val visibility: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.quicksight.inputs.DashboardDataLabelOptionsArgs =
        com.pulumi.awsnative.quicksight.inputs.DashboardDataLabelOptionsArgs.builder()
            .categoryLabelVisibility(
                categoryLabelVisibility?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .dataLabelTypes(
                dataLabelTypes?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .labelColor(labelColor?.applyValue({ args0 -> args0 }))
            .labelContent(labelContent?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .labelFontConfiguration(
                labelFontConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .measureLabelVisibility(
                measureLabelVisibility?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .overlap(overlap?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .position(position?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .totalsVisibility(totalsVisibility?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .visibility(visibility?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [DashboardDataLabelOptionsArgs].
 */
@PulumiTagMarker
public class DashboardDataLabelOptionsArgsBuilder internal constructor() {
    private var categoryLabelVisibility: Output? = null

    private var dataLabelTypes: Output>? = null

    private var labelColor: Output? = null

    private var labelContent: Output? = null

    private var labelFontConfiguration: Output? = null

    private var measureLabelVisibility: Output? = null

    private var overlap: Output? = null

    private var position: Output? = null

    private var totalsVisibility: Output? = null

    private var visibility: Output? = null

    /**
     * @param value Determines the visibility of the category field labels.
     */
    @JvmName("fiesssrwimvsqevx")
    public suspend fun categoryLabelVisibility(`value`: Output) {
        this.categoryLabelVisibility = value
    }

    /**
     * @param value The option that determines the data label type.
     */
    @JvmName("wbhscxkgbbjjtytc")
    public suspend fun dataLabelTypes(`value`: Output>) {
        this.dataLabelTypes = value
    }

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

    /**
     * @param values The option that determines the data label type.
     */
    @JvmName("mneclxvukbienemu")
    public suspend fun dataLabelTypes(values: List>) {
        this.dataLabelTypes = Output.all(values)
    }

    /**
     * @param value Determines the color of the data labels.
     */
    @JvmName("bsrdlvtbvnqxerex")
    public suspend fun labelColor(`value`: Output) {
        this.labelColor = value
    }

    /**
     * @param value Determines the content of the data labels.
     */
    @JvmName("fmhsxerathbsvccj")
    public suspend fun labelContent(`value`: Output) {
        this.labelContent = value
    }

    /**
     * @param value Determines the font configuration of the data labels.
     */
    @JvmName("tugbrlfxawdnkemu")
    public suspend fun labelFontConfiguration(`value`: Output) {
        this.labelFontConfiguration = value
    }

    /**
     * @param value Determines the visibility of the measure field labels.
     */
    @JvmName("qdnqjnldhehdmvml")
    public suspend fun measureLabelVisibility(`value`: Output) {
        this.measureLabelVisibility = value
    }

    /**
     * @param value Determines whether overlap is enabled or disabled for the data labels.
     */
    @JvmName("pbqcwnrhqkumbtym")
    public suspend fun overlap(`value`: Output) {
        this.overlap = value
    }

    /**
     * @param value Determines the position of the data labels.
     */
    @JvmName("ctdynoujsxqnjfwg")
    public suspend fun position(`value`: Output) {
        this.position = value
    }

    /**
     * @param value Determines the visibility of the total.
     */
    @JvmName("gggmhuapuhmticey")
    public suspend fun totalsVisibility(`value`: Output) {
        this.totalsVisibility = value
    }

    /**
     * @param value Determines the visibility of the data labels.
     */
    @JvmName("lyhrlonvegkvydqp")
    public suspend fun visibility(`value`: Output) {
        this.visibility = value
    }

    /**
     * @param value Determines the visibility of the category field labels.
     */
    @JvmName("fghkgvjcakwyaoyp")
    public suspend fun categoryLabelVisibility(`value`: DashboardVisibility?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.categoryLabelVisibility = mapped
    }

    /**
     * @param value The option that determines the data label type.
     */
    @JvmName("ryhcprmpeuiambbm")
    public suspend fun dataLabelTypes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dataLabelTypes = mapped
    }

    /**
     * @param argument The option that determines the data label type.
     */
    @JvmName("kmjxbkbyflbxeplv")
    public suspend fun dataLabelTypes(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            DashboardDataLabelTypeArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.dataLabelTypes = mapped
    }

    /**
     * @param argument The option that determines the data label type.
     */
    @JvmName("qxucgnppfuutoiku")
    public suspend fun dataLabelTypes(vararg argument: suspend DashboardDataLabelTypeArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            DashboardDataLabelTypeArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.dataLabelTypes = mapped
    }

    /**
     * @param argument The option that determines the data label type.
     */
    @JvmName("shpkwmydqhcdgtbb")
    public suspend fun dataLabelTypes(argument: suspend DashboardDataLabelTypeArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(DashboardDataLabelTypeArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.dataLabelTypes = mapped
    }

    /**
     * @param values The option that determines the data label type.
     */
    @JvmName("hqcgxlernkhrjqhj")
    public suspend fun dataLabelTypes(vararg values: DashboardDataLabelTypeArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.dataLabelTypes = mapped
    }

    /**
     * @param value Determines the color of the data labels.
     */
    @JvmName("rsxtcvrkeiubcucf")
    public suspend fun labelColor(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.labelColor = mapped
    }

    /**
     * @param value Determines the content of the data labels.
     */
    @JvmName("lkxjuywxbkkubywv")
    public suspend fun labelContent(`value`: DashboardDataLabelContent?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.labelContent = mapped
    }

    /**
     * @param value Determines the font configuration of the data labels.
     */
    @JvmName("edbdifewnjcrdgoc")
    public suspend fun labelFontConfiguration(`value`: DashboardFontConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.labelFontConfiguration = mapped
    }

    /**
     * @param argument Determines the font configuration of the data labels.
     */
    @JvmName("pquktcmawahjlcsq")
    public suspend fun labelFontConfiguration(argument: suspend DashboardFontConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = DashboardFontConfigurationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.labelFontConfiguration = mapped
    }

    /**
     * @param value Determines the visibility of the measure field labels.
     */
    @JvmName("uwldrinwxumrkhof")
    public suspend fun measureLabelVisibility(`value`: DashboardVisibility?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.measureLabelVisibility = mapped
    }

    /**
     * @param value Determines whether overlap is enabled or disabled for the data labels.
     */
    @JvmName("cbwlxqvubsmixykf")
    public suspend fun overlap(`value`: DashboardDataLabelOverlap?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.overlap = mapped
    }

    /**
     * @param value Determines the position of the data labels.
     */
    @JvmName("pnwokyfrlwyjspfk")
    public suspend fun position(`value`: DashboardDataLabelPosition?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.position = mapped
    }

    /**
     * @param value Determines the visibility of the total.
     */
    @JvmName("hykkgpkegxubgopk")
    public suspend fun totalsVisibility(`value`: DashboardVisibility?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.totalsVisibility = mapped
    }

    /**
     * @param value Determines the visibility of the data labels.
     */
    @JvmName("pchhowxeqqklanfu")
    public suspend fun visibility(`value`: DashboardVisibility?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.visibility = mapped
    }

    internal fun build(): DashboardDataLabelOptionsArgs = DashboardDataLabelOptionsArgs(
        categoryLabelVisibility = categoryLabelVisibility,
        dataLabelTypes = dataLabelTypes,
        labelColor = labelColor,
        labelContent = labelContent,
        labelFontConfiguration = labelFontConfiguration,
        measureLabelVisibility = measureLabelVisibility,
        overlap = overlap,
        position = position,
        totalsVisibility = totalsVisibility,
        visibility = visibility,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy