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

com.pulumi.awsnative.quicksight.kotlin.inputs.TemplateEmptyVisualArgs.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.TemplateEmptyVisualArgs.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 dataSetIdentifier The data set that is used in the empty visual. Every visual requires a dataset to render.
 * @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 TemplateEmptyVisualArgs(
    public val actions: Output>? = null,
    public val dataSetIdentifier: Output,
    public val visualId: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.quicksight.inputs.TemplateEmptyVisualArgs =
        com.pulumi.awsnative.quicksight.inputs.TemplateEmptyVisualArgs.builder()
            .actions(
                actions?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .dataSetIdentifier(dataSetIdentifier.applyValue({ args0 -> args0 }))
            .visualId(visualId.applyValue({ args0 -> args0 })).build()
}

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

    private var dataSetIdentifier: Output? = null

    private var visualId: Output? = null

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

    @JvmName("gncicdemjcpndipy")
    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("spytwaautancjxop")
    public suspend fun actions(values: List>) {
        this.actions = Output.all(values)
    }

    /**
     * @param value The data set that is used in the empty visual. Every visual requires a dataset to render.
     */
    @JvmName("npfhqgvgjdljssys")
    public suspend fun dataSetIdentifier(`value`: Output) {
        this.dataSetIdentifier = 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("nxybjvekksondbnd")
    public suspend fun visualId(`value`: Output) {
        this.visualId = value
    }

    /**
     * @param value The list of custom actions that are configured for a visual.
     */
    @JvmName("tqsviicbdcxjwfnp")
    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("bkgtqfaqpftpgige")
    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("jjnglrtexvypewov")
    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("emxdntdppltxfpjr")
    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("gbfwhvsjlqnxfgjw")
    public suspend fun actions(vararg values: TemplateVisualCustomActionArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.actions = mapped
    }

    /**
     * @param value The data set that is used in the empty visual. Every visual requires a dataset to render.
     */
    @JvmName("eykfxpxgywtsvpvf")
    public suspend fun dataSetIdentifier(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.dataSetIdentifier = 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("xinxvwecnwbblhdx")
    public suspend fun visualId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.visualId = mapped
    }

    internal fun build(): TemplateEmptyVisualArgs = TemplateEmptyVisualArgs(
        actions = actions,
        dataSetIdentifier = dataSetIdentifier ?: throw PulumiNullFieldException("dataSetIdentifier"),
        visualId = visualId ?: throw PulumiNullFieldException("visualId"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy