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

com.pulumi.aws.quicksight.kotlin.inputs.AnalysisSourceEntitySourceTemplateArgs.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.AnalysisSourceEntitySourceTemplateArgs.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 List of dataset references. See data_set_references.
 */
public data class AnalysisSourceEntitySourceTemplateArgs(
    public val arn: Output,
    public val dataSetReferences: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.quicksight.inputs.AnalysisSourceEntitySourceTemplateArgs =
        com.pulumi.aws.quicksight.inputs.AnalysisSourceEntitySourceTemplateArgs.builder()
            .arn(arn.applyValue({ args0 -> args0 }))
            .dataSetReferences(
                dataSetReferences.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var dataSetReferences:
        Output>? = null

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

    /**
     * @param value List of dataset references. See data_set_references.
     */
    @JvmName("sssyukqdhuqwsfit")
    public suspend fun dataSetReferences(`value`: Output>) {
        this.dataSetReferences = value
    }

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

    /**
     * @param values List of dataset references. See data_set_references.
     */
    @JvmName("rpiommnbdiftcouh")
    public suspend fun dataSetReferences(values: List>) {
        this.dataSetReferences = Output.all(values)
    }

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

    /**
     * @param value List of dataset references. See data_set_references.
     */
    @JvmName("lovueynbiwhxfgsx")
    public suspend fun dataSetReferences(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.dataSetReferences = mapped
    }

    /**
     * @param argument List of dataset references. See data_set_references.
     */
    @JvmName("dihpfpqofuuqvnev")
    public suspend fun dataSetReferences(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AnalysisSourceEntitySourceTemplateDataSetReferenceArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.dataSetReferences = mapped
    }

    /**
     * @param argument List of dataset references. See data_set_references.
     */
    @JvmName("uiqvqvtvagembekd")
    public suspend fun dataSetReferences(vararg argument: suspend AnalysisSourceEntitySourceTemplateDataSetReferenceArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            AnalysisSourceEntitySourceTemplateDataSetReferenceArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.dataSetReferences = mapped
    }

    /**
     * @param argument List of dataset references. See data_set_references.
     */
    @JvmName("uoqbjdvhlvpocliv")
    public suspend fun dataSetReferences(argument: suspend AnalysisSourceEntitySourceTemplateDataSetReferenceArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                AnalysisSourceEntitySourceTemplateDataSetReferenceArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.dataSetReferences = mapped
    }

    /**
     * @param values List of dataset references. See data_set_references.
     */
    @JvmName("rfaboawkkdrodtbp")
    public suspend fun dataSetReferences(vararg values: AnalysisSourceEntitySourceTemplateDataSetReferenceArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.dataSetReferences = mapped
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy