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

com.pulumi.gcp.datastream.kotlin.inputs.StreamSourceConfigSqlServerSourceConfigIncludeObjectsSchemaArgs.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: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.datastream.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.datastream.inputs.StreamSourceConfigSqlServerSourceConfigIncludeObjectsSchemaArgs.builder
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 schema Schema name.
 * @property tables Tables in the database.
 * Structure is documented below.
 */
public data class StreamSourceConfigSqlServerSourceConfigIncludeObjectsSchemaArgs(
    public val schema: Output,
    public val tables: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.datastream.inputs.StreamSourceConfigSqlServerSourceConfigIncludeObjectsSchemaArgs =
        com.pulumi.gcp.datastream.inputs.StreamSourceConfigSqlServerSourceConfigIncludeObjectsSchemaArgs.builder()
            .schema(schema.applyValue({ args0 -> args0 }))
            .tables(
                tables?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [StreamSourceConfigSqlServerSourceConfigIncludeObjectsSchemaArgs].
 */
@PulumiTagMarker
public class StreamSourceConfigSqlServerSourceConfigIncludeObjectsSchemaArgsBuilder internal constructor() {
    private var schema: Output? = null

    private var tables:
        Output>? = null

    /**
     * @param value Schema name.
     */
    @JvmName("wkxylohrreaatrji")
    public suspend fun schema(`value`: Output) {
        this.schema = value
    }

    /**
     * @param value Tables in the database.
     * Structure is documented below.
     */
    @JvmName("vgdcygtafugrwtwn")
    public suspend fun tables(`value`: Output>) {
        this.tables = value
    }

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

    /**
     * @param values Tables in the database.
     * Structure is documented below.
     */
    @JvmName("trhugdmegldkgwod")
    public suspend fun tables(values: List>) {
        this.tables = Output.all(values)
    }

    /**
     * @param value Schema name.
     */
    @JvmName("wigufbhcsloevvmh")
    public suspend fun schema(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.schema = mapped
    }

    /**
     * @param value Tables in the database.
     * Structure is documented below.
     */
    @JvmName("pnydhvyeanraqqwl")
    public suspend fun tables(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tables = mapped
    }

    /**
     * @param argument Tables in the database.
     * Structure is documented below.
     */
    @JvmName("petghtcssfiuksks")
    public suspend fun tables(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            StreamSourceConfigSqlServerSourceConfigIncludeObjectsSchemaTableArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.tables = mapped
    }

    /**
     * @param argument Tables in the database.
     * Structure is documented below.
     */
    @JvmName("tjpidsrceviiivfj")
    public suspend fun tables(vararg argument: suspend StreamSourceConfigSqlServerSourceConfigIncludeObjectsSchemaTableArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            StreamSourceConfigSqlServerSourceConfigIncludeObjectsSchemaTableArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.tables = mapped
    }

    /**
     * @param argument Tables in the database.
     * Structure is documented below.
     */
    @JvmName("iocbnaocvalyaldl")
    public suspend fun tables(argument: suspend StreamSourceConfigSqlServerSourceConfigIncludeObjectsSchemaTableArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                StreamSourceConfigSqlServerSourceConfigIncludeObjectsSchemaTableArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.tables = mapped
    }

    /**
     * @param values Tables in the database.
     * Structure is documented below.
     */
    @JvmName("cuoeyhfsjxeyxaco")
    public suspend fun tables(vararg values: StreamSourceConfigSqlServerSourceConfigIncludeObjectsSchemaTableArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tables = mapped
    }

    internal fun build(): StreamSourceConfigSqlServerSourceConfigIncludeObjectsSchemaArgs =
        StreamSourceConfigSqlServerSourceConfigIncludeObjectsSchemaArgs(
            schema = schema ?: throw PulumiNullFieldException("schema"),
            tables = tables,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy