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

com.pulumi.awsnative.quicksight.kotlin.TopicArgs.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: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.quicksight.kotlin

import com.pulumi.awsnative.quicksight.TopicArgs.builder
import com.pulumi.awsnative.quicksight.kotlin.enums.TopicUserExperienceVersion
import com.pulumi.awsnative.quicksight.kotlin.inputs.TopicDatasetMetadataArgs
import com.pulumi.awsnative.quicksight.kotlin.inputs.TopicDatasetMetadataArgsBuilder
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Definition of the AWS::QuickSight::Topic Resource Type.
 * @property awsAccountId The ID of the AWS account that you want to create a topic in.
 * @property dataSets The data sets that the topic is associated with.
 * @property description The description of the topic.
 * @property name The name of the topic.
 * @property topicId The ID for the topic. This ID is unique per AWS Region for each AWS account.
 * @property userExperienceVersion The user experience version of the topic.
 */
public data class TopicArgs(
    public val awsAccountId: Output? = null,
    public val dataSets: Output>? = null,
    public val description: Output? = null,
    public val name: Output? = null,
    public val topicId: Output? = null,
    public val userExperienceVersion: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.quicksight.TopicArgs =
        com.pulumi.awsnative.quicksight.TopicArgs.builder()
            .awsAccountId(awsAccountId?.applyValue({ args0 -> args0 }))
            .dataSets(
                dataSets?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .description(description?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .topicId(topicId?.applyValue({ args0 -> args0 }))
            .userExperienceVersion(
                userExperienceVersion?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [TopicArgs].
 */
@PulumiTagMarker
public class TopicArgsBuilder internal constructor() {
    private var awsAccountId: Output? = null

    private var dataSets: Output>? = null

    private var description: Output? = null

    private var name: Output? = null

    private var topicId: Output? = null

    private var userExperienceVersion: Output? = null

    /**
     * @param value The ID of the AWS account that you want to create a topic in.
     */
    @JvmName("rftutxlndtmrfelt")
    public suspend fun awsAccountId(`value`: Output) {
        this.awsAccountId = value
    }

    /**
     * @param value The data sets that the topic is associated with.
     */
    @JvmName("ccqsyvsurpxyggex")
    public suspend fun dataSets(`value`: Output>) {
        this.dataSets = value
    }

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

    /**
     * @param values The data sets that the topic is associated with.
     */
    @JvmName("vhyhrbiqocqpnxjn")
    public suspend fun dataSets(values: List>) {
        this.dataSets = Output.all(values)
    }

    /**
     * @param value The description of the topic.
     */
    @JvmName("devchqnolkgbvolh")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The name of the topic.
     */
    @JvmName("smbbtnmhsgwaejlc")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The ID for the topic. This ID is unique per AWS Region for each AWS account.
     */
    @JvmName("cuvmbppapahjnudt")
    public suspend fun topicId(`value`: Output) {
        this.topicId = value
    }

    /**
     * @param value The user experience version of the topic.
     */
    @JvmName("ifcsubrcfhjrdfqp")
    public suspend fun userExperienceVersion(`value`: Output) {
        this.userExperienceVersion = value
    }

    /**
     * @param value The ID of the AWS account that you want to create a topic in.
     */
    @JvmName("aaigfdnhxapbawfj")
    public suspend fun awsAccountId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.awsAccountId = mapped
    }

    /**
     * @param value The data sets that the topic is associated with.
     */
    @JvmName("fdvogiapyirvnlob")
    public suspend fun dataSets(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dataSets = mapped
    }

    /**
     * @param argument The data sets that the topic is associated with.
     */
    @JvmName("nurnncnyyxhrewyj")
    public suspend fun dataSets(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            TopicDatasetMetadataArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.dataSets = mapped
    }

    /**
     * @param argument The data sets that the topic is associated with.
     */
    @JvmName("cdgphrgmvvvfrntu")
    public suspend fun dataSets(vararg argument: suspend TopicDatasetMetadataArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            TopicDatasetMetadataArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.dataSets = mapped
    }

    /**
     * @param argument The data sets that the topic is associated with.
     */
    @JvmName("olwlvkaliwwfqiux")
    public suspend fun dataSets(argument: suspend TopicDatasetMetadataArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TopicDatasetMetadataArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.dataSets = mapped
    }

    /**
     * @param values The data sets that the topic is associated with.
     */
    @JvmName("oqmvidpnpirkwgwp")
    public suspend fun dataSets(vararg values: TopicDatasetMetadataArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.dataSets = mapped
    }

    /**
     * @param value The description of the topic.
     */
    @JvmName("hmwaqalcrptolxaw")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The name of the topic.
     */
    @JvmName("amupidsththldioa")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The ID for the topic. This ID is unique per AWS Region for each AWS account.
     */
    @JvmName("eaksvschkxthjkum")
    public suspend fun topicId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.topicId = mapped
    }

    /**
     * @param value The user experience version of the topic.
     */
    @JvmName("ucnfqylumfgdouxb")
    public suspend fun userExperienceVersion(`value`: TopicUserExperienceVersion?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.userExperienceVersion = mapped
    }

    internal fun build(): TopicArgs = TopicArgs(
        awsAccountId = awsAccountId,
        dataSets = dataSets,
        description = description,
        name = name,
        topicId = topicId,
        userExperienceVersion = userExperienceVersion,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy