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

com.pulumi.awsnative.quicksight.kotlin.inputs.TemplateDataLabelOptionsArgs.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.TemplateDataLabelOptionsArgs.builder
import com.pulumi.awsnative.quicksight.kotlin.enums.TemplateDataLabelContent
import com.pulumi.awsnative.quicksight.kotlin.enums.TemplateDataLabelOverlap
import com.pulumi.awsnative.quicksight.kotlin.enums.TemplateDataLabelPosition
import com.pulumi.awsnative.quicksight.kotlin.enums.TemplateVisibility
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 TemplateDataLabelOptionsArgs(
    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.TemplateDataLabelOptionsArgs =
        com.pulumi.awsnative.quicksight.inputs.TemplateDataLabelOptionsArgs.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 [TemplateDataLabelOptionsArgs].
 */
@PulumiTagMarker
public class TemplateDataLabelOptionsArgsBuilder 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("rvfshtcchufltbse")
    public suspend fun categoryLabelVisibility(`value`: Output) {
        this.categoryLabelVisibility = value
    }

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @param value The option that determines the data label type.
     */
    @JvmName("jremcadaaaquscxb")
    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("wdqeexuhpgxgjksa")
    public suspend fun dataLabelTypes(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            TemplateDataLabelTypeArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.dataLabelTypes = mapped
    }

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

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

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

    /**
     * @param value Determines the color of the data labels.
     */
    @JvmName("iorajwkylgktirrr")
    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("egjmieobamydjvst")
    public suspend fun labelContent(`value`: TemplateDataLabelContent?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.labelContent = mapped
    }

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

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

    /**
     * @param value Determines the visibility of the measure field labels.
     */
    @JvmName("ktixbindodjsonil")
    public suspend fun measureLabelVisibility(`value`: TemplateVisibility?) {
        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("nuqagykevyinvmia")
    public suspend fun overlap(`value`: TemplateDataLabelOverlap?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.overlap = mapped
    }

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

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

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

    internal fun build(): TemplateDataLabelOptionsArgs = TemplateDataLabelOptionsArgs(
        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