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

com.pulumi.awsnative.quicksight.kotlin.inputs.TopicDatasetMetadataArgs.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.inputs

import com.pulumi.awsnative.quicksight.inputs.TopicDatasetMetadataArgs.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 calculatedFields The list of calculated field definitions.
 * @property columns The list of column definitions.
 * @property dataAggregation The definition of a data aggregation.
 * @property datasetArn The Amazon Resource Name (ARN) of the dataset.
 * @property datasetDescription The description of the dataset.
 * @property datasetName The name of the dataset.
 * @property filters The list of filter definitions.
 * @property namedEntities The list of named entities definitions.
 */
public data class TopicDatasetMetadataArgs(
    public val calculatedFields: Output>? = null,
    public val columns: Output>? = null,
    public val dataAggregation: Output? = null,
    public val datasetArn: Output,
    public val datasetDescription: Output? = null,
    public val datasetName: Output? = null,
    public val filters: Output>? = null,
    public val namedEntities: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.quicksight.inputs.TopicDatasetMetadataArgs =
        com.pulumi.awsnative.quicksight.inputs.TopicDatasetMetadataArgs.builder()
            .calculatedFields(
                calculatedFields?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .columns(
                columns?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .dataAggregation(dataAggregation?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .datasetArn(datasetArn.applyValue({ args0 -> args0 }))
            .datasetDescription(datasetDescription?.applyValue({ args0 -> args0 }))
            .datasetName(datasetName?.applyValue({ args0 -> args0 }))
            .filters(
                filters?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .namedEntities(
                namedEntities?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var columns: Output>? = null

    private var dataAggregation: Output? = null

    private var datasetArn: Output? = null

    private var datasetDescription: Output? = null

    private var datasetName: Output? = null

    private var filters: Output>? = null

    private var namedEntities: Output>? = null

    /**
     * @param value The list of calculated field definitions.
     */
    @JvmName("mdmesbxsctwqdhmv")
    public suspend fun calculatedFields(`value`: Output>) {
        this.calculatedFields = value
    }

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

    /**
     * @param values The list of calculated field definitions.
     */
    @JvmName("yidukmjmdmkfwdhq")
    public suspend fun calculatedFields(values: List>) {
        this.calculatedFields = Output.all(values)
    }

    /**
     * @param value The list of column definitions.
     */
    @JvmName("pugvwliognqkncer")
    public suspend fun columns(`value`: Output>) {
        this.columns = value
    }

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

    /**
     * @param values The list of column definitions.
     */
    @JvmName("rhuwitdtvkgqxema")
    public suspend fun columns(values: List>) {
        this.columns = Output.all(values)
    }

    /**
     * @param value The definition of a data aggregation.
     */
    @JvmName("eyqvjbmdqsdhmjou")
    public suspend fun dataAggregation(`value`: Output) {
        this.dataAggregation = value
    }

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

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

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

    /**
     * @param value The list of filter definitions.
     */
    @JvmName("iwlygdrbgknafccs")
    public suspend fun filters(`value`: Output>) {
        this.filters = value
    }

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

    /**
     * @param values The list of filter definitions.
     */
    @JvmName("jantfonaxhkpgkaa")
    public suspend fun filters(values: List>) {
        this.filters = Output.all(values)
    }

    /**
     * @param value The list of named entities definitions.
     */
    @JvmName("hwehvjipnnclrgpu")
    public suspend fun namedEntities(`value`: Output>) {
        this.namedEntities = value
    }

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

    /**
     * @param values The list of named entities definitions.
     */
    @JvmName("tvssuebkwkyviamd")
    public suspend fun namedEntities(values: List>) {
        this.namedEntities = Output.all(values)
    }

    /**
     * @param value The list of calculated field definitions.
     */
    @JvmName("fucyvoubmtbfslxf")
    public suspend fun calculatedFields(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.calculatedFields = mapped
    }

    /**
     * @param argument The list of calculated field definitions.
     */
    @JvmName("ssgtosvijegckave")
    public suspend fun calculatedFields(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            TopicCalculatedFieldArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.calculatedFields = mapped
    }

    /**
     * @param argument The list of calculated field definitions.
     */
    @JvmName("gxdtblmmiktkvgqd")
    public suspend fun calculatedFields(vararg argument: suspend TopicCalculatedFieldArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            TopicCalculatedFieldArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.calculatedFields = mapped
    }

    /**
     * @param argument The list of calculated field definitions.
     */
    @JvmName("endiuthxjbbubsqn")
    public suspend fun calculatedFields(argument: suspend TopicCalculatedFieldArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TopicCalculatedFieldArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.calculatedFields = mapped
    }

    /**
     * @param values The list of calculated field definitions.
     */
    @JvmName("uclsmakrwemavhwr")
    public suspend fun calculatedFields(vararg values: TopicCalculatedFieldArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.calculatedFields = mapped
    }

    /**
     * @param value The list of column definitions.
     */
    @JvmName("ororrumotsgyevlh")
    public suspend fun columns(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.columns = mapped
    }

    /**
     * @param argument The list of column definitions.
     */
    @JvmName("cpchnpxalmberkou")
    public suspend fun columns(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TopicColumnArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.columns = mapped
    }

    /**
     * @param argument The list of column definitions.
     */
    @JvmName("rrnrfpprprmggwlj")
    public suspend fun columns(vararg argument: suspend TopicColumnArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TopicColumnArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.columns = mapped
    }

    /**
     * @param argument The list of column definitions.
     */
    @JvmName("ptoiaemktmwbtffp")
    public suspend fun columns(argument: suspend TopicColumnArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TopicColumnArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.columns = mapped
    }

    /**
     * @param values The list of column definitions.
     */
    @JvmName("tidgimcjeildxpfd")
    public suspend fun columns(vararg values: TopicColumnArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.columns = mapped
    }

    /**
     * @param value The definition of a data aggregation.
     */
    @JvmName("dssddbvepckcxryd")
    public suspend fun dataAggregation(`value`: TopicDataAggregationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dataAggregation = mapped
    }

    /**
     * @param argument The definition of a data aggregation.
     */
    @JvmName("jcqqrfcjxvpmutgt")
    public suspend fun dataAggregation(argument: suspend TopicDataAggregationArgsBuilder.() -> Unit) {
        val toBeMapped = TopicDataAggregationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.dataAggregation = mapped
    }

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

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

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

    /**
     * @param value The list of filter definitions.
     */
    @JvmName("kqajtigeembilqsv")
    public suspend fun filters(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.filters = mapped
    }

    /**
     * @param argument The list of filter definitions.
     */
    @JvmName("nvanhxkakdpleamn")
    public suspend fun filters(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TopicFilterArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.filters = mapped
    }

    /**
     * @param argument The list of filter definitions.
     */
    @JvmName("fekdwofouxylqkqe")
    public suspend fun filters(vararg argument: suspend TopicFilterArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TopicFilterArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.filters = mapped
    }

    /**
     * @param argument The list of filter definitions.
     */
    @JvmName("ukyykwrvniudhoan")
    public suspend fun filters(argument: suspend TopicFilterArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TopicFilterArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.filters = mapped
    }

    /**
     * @param values The list of filter definitions.
     */
    @JvmName("xvpcaxoqjbruhwae")
    public suspend fun filters(vararg values: TopicFilterArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.filters = mapped
    }

    /**
     * @param value The list of named entities definitions.
     */
    @JvmName("xxalwqvkrodcupvy")
    public suspend fun namedEntities(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.namedEntities = mapped
    }

    /**
     * @param argument The list of named entities definitions.
     */
    @JvmName("vvesflwegsxktgvo")
    public suspend fun namedEntities(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            TopicNamedEntityArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.namedEntities = mapped
    }

    /**
     * @param argument The list of named entities definitions.
     */
    @JvmName("lvtsvxdpysayoyvj")
    public suspend fun namedEntities(vararg argument: suspend TopicNamedEntityArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            TopicNamedEntityArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.namedEntities = mapped
    }

    /**
     * @param argument The list of named entities definitions.
     */
    @JvmName("fhfkmhsrrsekibpl")
    public suspend fun namedEntities(argument: suspend TopicNamedEntityArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TopicNamedEntityArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.namedEntities = mapped
    }

    /**
     * @param values The list of named entities definitions.
     */
    @JvmName("rcpyliuxmurkqxtl")
    public suspend fun namedEntities(vararg values: TopicNamedEntityArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.namedEntities = mapped
    }

    internal fun build(): TopicDatasetMetadataArgs = TopicDatasetMetadataArgs(
        calculatedFields = calculatedFields,
        columns = columns,
        dataAggregation = dataAggregation,
        datasetArn = datasetArn ?: throw PulumiNullFieldException("datasetArn"),
        datasetDescription = datasetDescription,
        datasetName = datasetName,
        filters = filters,
        namedEntities = namedEntities,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy