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

com.pulumi.awsnative.quicksight.kotlin.inputs.DashboardFieldBasedTooltipArgs.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.DashboardFieldBasedTooltipArgs.builder
import com.pulumi.awsnative.quicksight.kotlin.enums.DashboardTooltipTitleType
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.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property aggregationVisibility The visibility of `Show aggregations` .
 * @property tooltipFields The fields configuration in the tooltip.
 * @property tooltipTitleType The type for the >tooltip title. Choose one of the following options:
 * - `NONE` : Doesn't use the primary value as the title.
 * - `PRIMARY_VALUE` : Uses primary value as the title.
 */
public data class DashboardFieldBasedTooltipArgs(
    public val aggregationVisibility: Output? = null,
    public val tooltipFields: Output>? = null,
    public val tooltipTitleType: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.quicksight.inputs.DashboardFieldBasedTooltipArgs =
        com.pulumi.awsnative.quicksight.inputs.DashboardFieldBasedTooltipArgs.builder()
            .aggregationVisibility(
                aggregationVisibility?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .tooltipFields(
                tooltipFields?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .tooltipTitleType(
                tooltipTitleType?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [DashboardFieldBasedTooltipArgs].
 */
@PulumiTagMarker
public class DashboardFieldBasedTooltipArgsBuilder internal constructor() {
    private var aggregationVisibility: Output? = null

    private var tooltipFields: Output>? = null

    private var tooltipTitleType: Output? = null

    /**
     * @param value The visibility of `Show aggregations` .
     */
    @JvmName("bycxnlhchcesovfp")
    public suspend fun aggregationVisibility(`value`: Output) {
        this.aggregationVisibility = value
    }

    /**
     * @param value The fields configuration in the tooltip.
     */
    @JvmName("aaskfptuewyqkgrx")
    public suspend fun tooltipFields(`value`: Output>) {
        this.tooltipFields = value
    }

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

    /**
     * @param values The fields configuration in the tooltip.
     */
    @JvmName("pmludegokeiunvar")
    public suspend fun tooltipFields(values: List>) {
        this.tooltipFields = Output.all(values)
    }

    /**
     * @param value The type for the >tooltip title. Choose one of the following options:
     * - `NONE` : Doesn't use the primary value as the title.
     * - `PRIMARY_VALUE` : Uses primary value as the title.
     */
    @JvmName("uwotshmqmndcsqpp")
    public suspend fun tooltipTitleType(`value`: Output) {
        this.tooltipTitleType = value
    }

    /**
     * @param value The visibility of `Show aggregations` .
     */
    @JvmName("lnxmstgtqukdvpht")
    public suspend fun aggregationVisibility(`value`: DashboardVisibility?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.aggregationVisibility = mapped
    }

    /**
     * @param value The fields configuration in the tooltip.
     */
    @JvmName("yulwykkodakhaeqk")
    public suspend fun tooltipFields(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tooltipFields = mapped
    }

    /**
     * @param argument The fields configuration in the tooltip.
     */
    @JvmName("xydupofgiptcpkxb")
    public suspend fun tooltipFields(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            DashboardTooltipItemArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.tooltipFields = mapped
    }

    /**
     * @param argument The fields configuration in the tooltip.
     */
    @JvmName("bgpcgobnridrjitv")
    public suspend fun tooltipFields(vararg argument: suspend DashboardTooltipItemArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            DashboardTooltipItemArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.tooltipFields = mapped
    }

    /**
     * @param argument The fields configuration in the tooltip.
     */
    @JvmName("soigsylunfxmbyuw")
    public suspend fun tooltipFields(argument: suspend DashboardTooltipItemArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(DashboardTooltipItemArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tooltipFields = mapped
    }

    /**
     * @param values The fields configuration in the tooltip.
     */
    @JvmName("ucryyvfvwntawtsr")
    public suspend fun tooltipFields(vararg values: DashboardTooltipItemArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tooltipFields = mapped
    }

    /**
     * @param value The type for the >tooltip title. Choose one of the following options:
     * - `NONE` : Doesn't use the primary value as the title.
     * - `PRIMARY_VALUE` : Uses primary value as the title.
     */
    @JvmName("qttnxisxraynvyya")
    public suspend fun tooltipTitleType(`value`: DashboardTooltipTitleType?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tooltipTitleType = mapped
    }

    internal fun build(): DashboardFieldBasedTooltipArgs = DashboardFieldBasedTooltipArgs(
        aggregationVisibility = aggregationVisibility,
        tooltipFields = tooltipFields,
        tooltipTitleType = tooltipTitleType,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy