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

com.pulumi.gcp.datastream.kotlin.inputs.StreamBackfillAllSqlServerExcludedObjectsSchemaArgs.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.12.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.StreamBackfillAllSqlServerExcludedObjectsSchemaArgs.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 StreamBackfillAllSqlServerExcludedObjectsSchemaArgs(
    public val schema: Output,
    public val tables: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.datastream.inputs.StreamBackfillAllSqlServerExcludedObjectsSchemaArgs =
        com.pulumi.gcp.datastream.inputs.StreamBackfillAllSqlServerExcludedObjectsSchemaArgs.builder()
            .schema(schema.applyValue({ args0 -> args0 }))
            .tables(
                tables?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var tables: Output>? = null

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

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

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

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

    /**
     * @param value Schema name.
     */
    @JvmName("iepalpimfaiemnlq")
    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("lpdxgecrsxcyqyev")
    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("mknxxeurlylrgsmf")
    public suspend fun tables(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            StreamBackfillAllSqlServerExcludedObjectsSchemaTableArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.tables = mapped
    }

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

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy