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

com.pulumi.awsnative.quicksight.kotlin.inputs.AnalysisInsightConfigurationArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.quicksight.kotlin.inputs

import com.pulumi.awsnative.quicksight.inputs.AnalysisInsightConfigurationArgs.builder
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 computations The computations configurations of the insight visual
 * @property customNarrative The custom narrative of the insight visual.
 */
public data class AnalysisInsightConfigurationArgs(
    public val computations: Output>? = null,
    public val customNarrative: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.quicksight.inputs.AnalysisInsightConfigurationArgs =
        com.pulumi.awsnative.quicksight.inputs.AnalysisInsightConfigurationArgs.builder()
            .computations(
                computations?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .customNarrative(
                customNarrative?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

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

    private var customNarrative: Output? = null

    /**
     * @param value The computations configurations of the insight visual
     */
    @JvmName("ysftnrgmqrgrtnpc")
    public suspend fun computations(`value`: Output>) {
        this.computations = value
    }

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

    /**
     * @param values The computations configurations of the insight visual
     */
    @JvmName("lyxtpudqhomipapr")
    public suspend fun computations(values: List>) {
        this.computations = Output.all(values)
    }

    /**
     * @param value The custom narrative of the insight visual.
     */
    @JvmName("uwjgjgiutqpqfkoj")
    public suspend fun customNarrative(`value`: Output) {
        this.customNarrative = value
    }

    /**
     * @param value The computations configurations of the insight visual
     */
    @JvmName("hswoqsweuyckwtyx")
    public suspend fun computations(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.computations = mapped
    }

    /**
     * @param argument The computations configurations of the insight visual
     */
    @JvmName("kmphjfdgqeautjnd")
    public suspend fun computations(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AnalysisComputationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.computations = mapped
    }

    /**
     * @param argument The computations configurations of the insight visual
     */
    @JvmName("gyyowmjupipvmuar")
    public suspend fun computations(vararg argument: suspend AnalysisComputationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            AnalysisComputationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.computations = mapped
    }

    /**
     * @param argument The computations configurations of the insight visual
     */
    @JvmName("jevkxfaidfmdpljb")
    public suspend fun computations(argument: suspend AnalysisComputationArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(AnalysisComputationArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.computations = mapped
    }

    /**
     * @param values The computations configurations of the insight visual
     */
    @JvmName("sgxatfofvhtcmoeg")
    public suspend fun computations(vararg values: AnalysisComputationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.computations = mapped
    }

    /**
     * @param value The custom narrative of the insight visual.
     */
    @JvmName("ehcngegtkicublfl")
    public suspend fun customNarrative(`value`: AnalysisCustomNarrativeOptionsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.customNarrative = mapped
    }

    /**
     * @param argument The custom narrative of the insight visual.
     */
    @JvmName("ymklhkdrtxlsdquq")
    public suspend fun customNarrative(argument: suspend AnalysisCustomNarrativeOptionsArgsBuilder.() -> Unit) {
        val toBeMapped = AnalysisCustomNarrativeOptionsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.customNarrative = mapped
    }

    internal fun build(): AnalysisInsightConfigurationArgs = AnalysisInsightConfigurationArgs(
        computations = computations,
        customNarrative = customNarrative,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy