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

com.pulumi.awsnative.quicksight.kotlin.inputs.TemplateWaterfallVisualArgs.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.TemplateWaterfallVisualArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
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 actions The list of custom actions that are configured for a visual.
 * @property chartConfiguration The configuration for a waterfall visual.
 * @property columnHierarchies The column hierarchy that is used during drill-downs and drill-ups.
 * @property subtitle The subtitle that is displayed on the visual.
 * @property title The title that is displayed on the visual.
 * @property visualId The unique identifier of a visual. This identifier must be unique within the context of a dashboard, template, or analysis. Two dashboards, analyses, or templates can have visuals with the same identifiers.
 */
public data class TemplateWaterfallVisualArgs(
    public val actions: Output>? = null,
    public val chartConfiguration: Output? = null,
    public val columnHierarchies: Output>? = null,
    public val subtitle: Output? = null,
    public val title: Output? = null,
    public val visualId: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.quicksight.inputs.TemplateWaterfallVisualArgs =
        com.pulumi.awsnative.quicksight.inputs.TemplateWaterfallVisualArgs.builder()
            .actions(
                actions?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .chartConfiguration(
                chartConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .columnHierarchies(
                columnHierarchies?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .subtitle(subtitle?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .title(title?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .visualId(visualId.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [TemplateWaterfallVisualArgs].
 */
@PulumiTagMarker
public class TemplateWaterfallVisualArgsBuilder internal constructor() {
    private var actions: Output>? = null

    private var chartConfiguration: Output? = null

    private var columnHierarchies: Output>? = null

    private var subtitle: Output? = null

    private var title: Output? = null

    private var visualId: Output? = null

    /**
     * @param value The list of custom actions that are configured for a visual.
     */
    @JvmName("etpkoidnhtjrarqc")
    public suspend fun actions(`value`: Output>) {
        this.actions = value
    }

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

    /**
     * @param values The list of custom actions that are configured for a visual.
     */
    @JvmName("vgbubbwbfdurbqjp")
    public suspend fun actions(values: List>) {
        this.actions = Output.all(values)
    }

    /**
     * @param value The configuration for a waterfall visual.
     */
    @JvmName("bjqymaqtaxnwkoeh")
    public suspend fun chartConfiguration(`value`: Output) {
        this.chartConfiguration = value
    }

    /**
     * @param value The column hierarchy that is used during drill-downs and drill-ups.
     */
    @JvmName("klpuejkllwjxvcam")
    public suspend fun columnHierarchies(`value`: Output>) {
        this.columnHierarchies = value
    }

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

    /**
     * @param values The column hierarchy that is used during drill-downs and drill-ups.
     */
    @JvmName("dtduqkekufkbkbij")
    public suspend fun columnHierarchies(values: List>) {
        this.columnHierarchies = Output.all(values)
    }

    /**
     * @param value The subtitle that is displayed on the visual.
     */
    @JvmName("hwpabovhhjflpkyw")
    public suspend fun subtitle(`value`: Output) {
        this.subtitle = value
    }

    /**
     * @param value The title that is displayed on the visual.
     */
    @JvmName("hujxxicjifgopnhu")
    public suspend fun title(`value`: Output) {
        this.title = value
    }

    /**
     * @param value The unique identifier of a visual. This identifier must be unique within the context of a dashboard, template, or analysis. Two dashboards, analyses, or templates can have visuals with the same identifiers.
     */
    @JvmName("novvrhpajvbkqrxx")
    public suspend fun visualId(`value`: Output) {
        this.visualId = value
    }

    /**
     * @param value The list of custom actions that are configured for a visual.
     */
    @JvmName("ywhvwxnikkqvqpmx")
    public suspend fun actions(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.actions = mapped
    }

    /**
     * @param argument The list of custom actions that are configured for a visual.
     */
    @JvmName("xonfnbujhlyoteux")
    public suspend fun actions(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            TemplateVisualCustomActionArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.actions = mapped
    }

    /**
     * @param argument The list of custom actions that are configured for a visual.
     */
    @JvmName("ijspvntoqgclshbp")
    public suspend fun actions(vararg argument: suspend TemplateVisualCustomActionArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            TemplateVisualCustomActionArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.actions = mapped
    }

    /**
     * @param argument The list of custom actions that are configured for a visual.
     */
    @JvmName("ofrufbpmopouokqc")
    public suspend fun actions(argument: suspend TemplateVisualCustomActionArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            TemplateVisualCustomActionArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.actions = mapped
    }

    /**
     * @param values The list of custom actions that are configured for a visual.
     */
    @JvmName("atgumrydfinvrkny")
    public suspend fun actions(vararg values: TemplateVisualCustomActionArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.actions = mapped
    }

    /**
     * @param value The configuration for a waterfall visual.
     */
    @JvmName("cbeahbygkhiafgxx")
    public suspend fun chartConfiguration(`value`: TemplateWaterfallChartConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.chartConfiguration = mapped
    }

    /**
     * @param argument The configuration for a waterfall visual.
     */
    @JvmName("rxkbncvllgmftjps")
    public suspend fun chartConfiguration(argument: suspend TemplateWaterfallChartConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = TemplateWaterfallChartConfigurationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.chartConfiguration = mapped
    }

    /**
     * @param value The column hierarchy that is used during drill-downs and drill-ups.
     */
    @JvmName("wuxiejlfwcusdhnw")
    public suspend fun columnHierarchies(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.columnHierarchies = mapped
    }

    /**
     * @param argument The column hierarchy that is used during drill-downs and drill-ups.
     */
    @JvmName("fidptyjeihmfnljv")
    public suspend fun columnHierarchies(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            TemplateColumnHierarchyArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.columnHierarchies = mapped
    }

    /**
     * @param argument The column hierarchy that is used during drill-downs and drill-ups.
     */
    @JvmName("nynvoyoccjpqcmgq")
    public suspend fun columnHierarchies(vararg argument: suspend TemplateColumnHierarchyArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            TemplateColumnHierarchyArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.columnHierarchies = mapped
    }

    /**
     * @param argument The column hierarchy that is used during drill-downs and drill-ups.
     */
    @JvmName("csxshituysqnpemh")
    public suspend fun columnHierarchies(argument: suspend TemplateColumnHierarchyArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            TemplateColumnHierarchyArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.columnHierarchies = mapped
    }

    /**
     * @param values The column hierarchy that is used during drill-downs and drill-ups.
     */
    @JvmName("gwuowrcjfscwlury")
    public suspend fun columnHierarchies(vararg values: TemplateColumnHierarchyArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.columnHierarchies = mapped
    }

    /**
     * @param value The subtitle that is displayed on the visual.
     */
    @JvmName("actnlrxxrsineytq")
    public suspend fun subtitle(`value`: TemplateVisualSubtitleLabelOptionsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.subtitle = mapped
    }

    /**
     * @param argument The subtitle that is displayed on the visual.
     */
    @JvmName("muykfsvtskfungvk")
    public suspend fun subtitle(argument: suspend TemplateVisualSubtitleLabelOptionsArgsBuilder.() -> Unit) {
        val toBeMapped = TemplateVisualSubtitleLabelOptionsArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.subtitle = mapped
    }

    /**
     * @param value The title that is displayed on the visual.
     */
    @JvmName("fjsnqxnhnqlkonul")
    public suspend fun title(`value`: TemplateVisualTitleLabelOptionsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.title = mapped
    }

    /**
     * @param argument The title that is displayed on the visual.
     */
    @JvmName("uqcwtmbcfvjaifyf")
    public suspend fun title(argument: suspend TemplateVisualTitleLabelOptionsArgsBuilder.() -> Unit) {
        val toBeMapped = TemplateVisualTitleLabelOptionsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.title = mapped
    }

    /**
     * @param value The unique identifier of a visual. This identifier must be unique within the context of a dashboard, template, or analysis. Two dashboards, analyses, or templates can have visuals with the same identifiers.
     */
    @JvmName("pojubqceyjfikdpf")
    public suspend fun visualId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.visualId = mapped
    }

    internal fun build(): TemplateWaterfallVisualArgs = TemplateWaterfallVisualArgs(
        actions = actions,
        chartConfiguration = chartConfiguration,
        columnHierarchies = columnHierarchies,
        subtitle = subtitle,
        title = title,
        visualId = visualId ?: throw PulumiNullFieldException("visualId"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy