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

com.pulumi.awsnative.quicksight.kotlin.inputs.AnalysisInsightVisualArgs.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.AnalysisInsightVisualArgs.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 dataset that is used in the insight visual.
 * @property insightConfiguration The configuration of an insight visual.
 * @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 AnalysisInsightVisualArgs(
    public val actions: Output>? = null,
    public val dataSetIdentifier: Output,
    public val insightConfiguration: 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.AnalysisInsightVisualArgs =
        com.pulumi.awsnative.quicksight.inputs.AnalysisInsightVisualArgs.builder()
            .actions(
                actions?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .dataSetIdentifier(dataSetIdentifier.applyValue({ args0 -> args0 }))
            .insightConfiguration(
                insightConfiguration?.applyValue({ 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 [AnalysisInsightVisualArgs].
 */
@PulumiTagMarker
public class AnalysisInsightVisualArgsBuilder internal constructor() {
    private var actions: Output>? = null

    private var dataSetIdentifier: Output? = null

    private var insightConfiguration: 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("jdmxksokccvtitfa")
    public suspend fun actions(`value`: Output>) {
        this.actions = value
    }

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

    /**
     * @param value The dataset that is used in the insight visual.
     */
    @JvmName("hbjqirbgcwbiroda")
    public suspend fun dataSetIdentifier(`value`: Output) {
        this.dataSetIdentifier = value
    }

    /**
     * @param value The configuration of an insight visual.
     */
    @JvmName("hrjpdhepgtjebyvr")
    public suspend fun insightConfiguration(`value`: Output) {
        this.insightConfiguration = value
    }

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

    /**
     * @param value The title that is displayed on the visual.
     */
    @JvmName("rnofrbrmfsopbdkj")
    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("vqinhxrnkqdskcjw")
    public suspend fun visualId(`value`: Output) {
        this.visualId = value
    }

    /**
     * @param value The list of custom actions that are configured for a visual.
     */
    @JvmName("ndsfsbvuyqojbsxq")
    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("fhkjcecviovcitdy")
    public suspend fun actions(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AnalysisVisualCustomActionArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.actions = mapped
    }

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

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

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

    /**
     * @param value The dataset that is used in the insight visual.
     */
    @JvmName("xirbmkpwdfmthfyt")
    public suspend fun dataSetIdentifier(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.dataSetIdentifier = mapped
    }

    /**
     * @param value The configuration of an insight visual.
     */
    @JvmName("aucesvagsdatuwrt")
    public suspend fun insightConfiguration(`value`: AnalysisInsightConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.insightConfiguration = mapped
    }

    /**
     * @param argument The configuration of an insight visual.
     */
    @JvmName("dcmwbuhqpwamghri")
    public suspend fun insightConfiguration(argument: suspend AnalysisInsightConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = AnalysisInsightConfigurationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.insightConfiguration = mapped
    }

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

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

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

    /**
     * @param argument The title that is displayed on the visual.
     */
    @JvmName("fsyiilcrvepnvclx")
    public suspend fun title(argument: suspend AnalysisVisualTitleLabelOptionsArgsBuilder.() -> Unit) {
        val toBeMapped = AnalysisVisualTitleLabelOptionsArgsBuilder().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("rtxajelsyyxfoagu")
    public suspend fun visualId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.visualId = mapped
    }

    internal fun build(): AnalysisInsightVisualArgs = AnalysisInsightVisualArgs(
        actions = actions,
        dataSetIdentifier = dataSetIdentifier ?: throw PulumiNullFieldException("dataSetIdentifier"),
        insightConfiguration = insightConfiguration,
        subtitle = subtitle,
        title = title,
        visualId = visualId ?: throw PulumiNullFieldException("visualId"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy