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

com.pulumi.aws.quicksight.kotlin.inputs.DataSetPhysicalTableMapRelationalTableArgs.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.DataSetPhysicalTableMapRelationalTableArgs.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 catalog Catalog associated with the table.
 * @property dataSourceArn ARN of the data source.
 * @property inputColumns Column schema of the table. See input_columns.
 * @property name Name of the relational table.
 * @property schema Schema name. This name applies to certain relational database engines.
 */
public data class DataSetPhysicalTableMapRelationalTableArgs(
    public val catalog: Output? = null,
    public val dataSourceArn: Output,
    public val inputColumns: Output>,
    public val name: Output,
    public val schema: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.quicksight.inputs.DataSetPhysicalTableMapRelationalTableArgs = com.pulumi.aws.quicksight.inputs.DataSetPhysicalTableMapRelationalTableArgs.builder()
        .catalog(catalog?.applyValue({ args0 -> args0 }))
        .dataSourceArn(dataSourceArn.applyValue({ args0 -> args0 }))
        .inputColumns(
            inputColumns.applyValue({ args0 ->
                args0.map({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                })
            }),
        )
        .name(name.applyValue({ args0 -> args0 }))
        .schema(schema?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [DataSetPhysicalTableMapRelationalTableArgs].
 */
@PulumiTagMarker
public class DataSetPhysicalTableMapRelationalTableArgsBuilder internal constructor() {
    private var catalog: Output? = null

    private var dataSourceArn: Output? = null

    private var inputColumns: Output>? =
        null

    private var name: Output? = null

    private var schema: Output? = null

    /**
     * @param value Catalog associated with the table.
     */
    @JvmName("egaevpbvtpmpglgh")
    public suspend fun catalog(`value`: Output) {
        this.catalog = value
    }

    /**
     * @param value ARN of the data source.
     */
    @JvmName("qmhewogntocnhdda")
    public suspend fun dataSourceArn(`value`: Output) {
        this.dataSourceArn = value
    }

    /**
     * @param value Column schema of the table. See input_columns.
     */
    @JvmName("pwxnfdeibqcyysqi")
    public suspend fun inputColumns(`value`: Output>) {
        this.inputColumns = value
    }

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

    /**
     * @param values Column schema of the table. See input_columns.
     */
    @JvmName("cvbtpwxapdeqgthn")
    public suspend fun inputColumns(values: List>) {
        this.inputColumns = Output.all(values)
    }

    /**
     * @param value Name of the relational table.
     */
    @JvmName("blinoxxbfslrfqfv")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Schema name. This name applies to certain relational database engines.
     */
    @JvmName("knvtrbfdvlfoxwwm")
    public suspend fun schema(`value`: Output) {
        this.schema = value
    }

    /**
     * @param value Catalog associated with the table.
     */
    @JvmName("pitubaexvglltskw")
    public suspend fun catalog(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.catalog = mapped
    }

    /**
     * @param value ARN of the data source.
     */
    @JvmName("vnhcuyowdxfctfpc")
    public suspend fun dataSourceArn(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.dataSourceArn = mapped
    }

    /**
     * @param value Column schema of the table. See input_columns.
     */
    @JvmName("kojbovimjxqdamuj")
    public suspend fun inputColumns(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.inputColumns = mapped
    }

    /**
     * @param argument Column schema of the table. See input_columns.
     */
    @JvmName("xvuqpfffgvmwhjeu")
    public suspend fun inputColumns(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            DataSetPhysicalTableMapRelationalTableInputColumnArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.inputColumns = mapped
    }

    /**
     * @param argument Column schema of the table. See input_columns.
     */
    @JvmName("nglioxtsnxejynun")
    public suspend fun inputColumns(vararg argument: suspend DataSetPhysicalTableMapRelationalTableInputColumnArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            DataSetPhysicalTableMapRelationalTableInputColumnArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.inputColumns = mapped
    }

    /**
     * @param argument Column schema of the table. See input_columns.
     */
    @JvmName("lfthtotejvscnlvy")
    public suspend fun inputColumns(argument: suspend DataSetPhysicalTableMapRelationalTableInputColumnArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                DataSetPhysicalTableMapRelationalTableInputColumnArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.inputColumns = mapped
    }

    /**
     * @param values Column schema of the table. See input_columns.
     */
    @JvmName("xxtmrqpiqwsaqkho")
    public suspend fun inputColumns(vararg values: DataSetPhysicalTableMapRelationalTableInputColumnArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.inputColumns = mapped
    }

    /**
     * @param value Name of the relational table.
     */
    @JvmName("rbscgedmcqnaypip")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Schema name. This name applies to certain relational database engines.
     */
    @JvmName("fnsalfinavyqcsns")
    public suspend fun schema(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.schema = mapped
    }

    internal fun build(): DataSetPhysicalTableMapRelationalTableArgs =
        DataSetPhysicalTableMapRelationalTableArgs(
            catalog = catalog,
            dataSourceArn = dataSourceArn ?: throw PulumiNullFieldException("dataSourceArn"),
            inputColumns = inputColumns ?: throw PulumiNullFieldException("inputColumns"),
            name = name ?: throw PulumiNullFieldException("name"),
            schema = schema,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy