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

com.pulumi.aws.quicksight.kotlin.inputs.TemplateSourceEntitySourceAnalysisArgs.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.quicksight.kotlin.inputs

import com.pulumi.aws.quicksight.inputs.TemplateSourceEntitySourceAnalysisArgs.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 arn The Amazon Resource Name (ARN) of the resource.
 * @property dataSetReferences A list of dataset references used as placeholders in the template. See data_set_references.
 */
public data class TemplateSourceEntitySourceAnalysisArgs(
    public val arn: Output,
    public val dataSetReferences: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.quicksight.inputs.TemplateSourceEntitySourceAnalysisArgs =
        com.pulumi.aws.quicksight.inputs.TemplateSourceEntitySourceAnalysisArgs.builder()
            .arn(arn.applyValue({ args0 -> args0 }))
            .dataSetReferences(
                dataSetReferences.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [TemplateSourceEntitySourceAnalysisArgs].
 */
@PulumiTagMarker
public class TemplateSourceEntitySourceAnalysisArgsBuilder internal constructor() {
    private var arn: Output? = null

    private var dataSetReferences:
        Output>? = null

    /**
     * @param value The Amazon Resource Name (ARN) of the resource.
     */
    @JvmName("hwaiothbndjsykvr")
    public suspend fun arn(`value`: Output) {
        this.arn = value
    }

    /**
     * @param value A list of dataset references used as placeholders in the template. See data_set_references.
     */
    @JvmName("wtpcggglgommgqvi")
    public suspend fun dataSetReferences(`value`: Output>) {
        this.dataSetReferences = value
    }

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

    /**
     * @param values A list of dataset references used as placeholders in the template. See data_set_references.
     */
    @JvmName("aqcokigpupbnptwv")
    public suspend fun dataSetReferences(values: List>) {
        this.dataSetReferences = Output.all(values)
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the resource.
     */
    @JvmName("vsapvraagylehsbj")
    public suspend fun arn(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.arn = mapped
    }

    /**
     * @param value A list of dataset references used as placeholders in the template. See data_set_references.
     */
    @JvmName("ksaqhsvyfvsxcorc")
    public suspend fun dataSetReferences(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.dataSetReferences = mapped
    }

    /**
     * @param argument A list of dataset references used as placeholders in the template. See data_set_references.
     */
    @JvmName("mrsapfwucltnhivl")
    public suspend fun dataSetReferences(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            TemplateSourceEntitySourceAnalysisDataSetReferenceArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.dataSetReferences = mapped
    }

    /**
     * @param argument A list of dataset references used as placeholders in the template. See data_set_references.
     */
    @JvmName("npfdkjwmbaebqyey")
    public suspend fun dataSetReferences(vararg argument: suspend TemplateSourceEntitySourceAnalysisDataSetReferenceArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            TemplateSourceEntitySourceAnalysisDataSetReferenceArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.dataSetReferences = mapped
    }

    /**
     * @param argument A list of dataset references used as placeholders in the template. See data_set_references.
     */
    @JvmName("vggyniimrumuyhjw")
    public suspend fun dataSetReferences(argument: suspend TemplateSourceEntitySourceAnalysisDataSetReferenceArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                TemplateSourceEntitySourceAnalysisDataSetReferenceArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.dataSetReferences = mapped
    }

    /**
     * @param values A list of dataset references used as placeholders in the template. See data_set_references.
     */
    @JvmName("xclqbxqeechuaeww")
    public suspend fun dataSetReferences(vararg values: TemplateSourceEntitySourceAnalysisDataSetReferenceArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.dataSetReferences = mapped
    }

    internal fun build(): TemplateSourceEntitySourceAnalysisArgs =
        TemplateSourceEntitySourceAnalysisArgs(
            arn = arn ?: throw PulumiNullFieldException("arn"),
            dataSetReferences = dataSetReferences ?: throw PulumiNullFieldException("dataSetReferences"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy