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

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

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

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

import com.pulumi.awsnative.quicksight.inputs.TemplateInsightConfigurationArgs.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 TemplateInsightConfigurationArgs(
    public val computations: Output>? = null,
    public val customNarrative: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.quicksight.inputs.TemplateInsightConfigurationArgs =
        com.pulumi.awsnative.quicksight.inputs.TemplateInsightConfigurationArgs.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 [TemplateInsightConfigurationArgs].
 */
@PulumiTagMarker
public class TemplateInsightConfigurationArgsBuilder internal constructor() {
    private var computations: Output>? = null

    private var customNarrative: Output? = null

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

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

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

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

    /**
     * @param value The computations configurations of the insight visual
     */
    @JvmName("bojraqwqmjufrosx")
    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("ggjqtfygvetkllwi")
    public suspend fun computations(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            TemplateComputationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.computations = mapped
    }

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

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

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

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy