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

com.pulumi.gcp.datastream.kotlin.inputs.StreamSourceConfigSqlServerSourceConfigExcludeObjectsSchemaTableArgs.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.StreamSourceConfigSqlServerSourceConfigExcludeObjectsSchemaTableArgs.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 columns SQL Server columns in the schema. When unspecified as part of include/exclude objects, includes/excludes everything.
 * Structure is documented below.
 * @property table Table name.
 */
public data class StreamSourceConfigSqlServerSourceConfigExcludeObjectsSchemaTableArgs(
    public val columns: Output>? =
        null,
    public val table: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.datastream.inputs.StreamSourceConfigSqlServerSourceConfigExcludeObjectsSchemaTableArgs =
        com.pulumi.gcp.datastream.inputs.StreamSourceConfigSqlServerSourceConfigExcludeObjectsSchemaTableArgs.builder()
            .columns(
                columns?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .table(table.applyValue({ args0 -> args0 })).build()
}

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

    private var table: Output? = null

    /**
     * @param value SQL Server columns in the schema. When unspecified as part of include/exclude objects, includes/excludes everything.
     * Structure is documented below.
     */
    @JvmName("rhptroxosoyfcvbi")
    public suspend fun columns(`value`: Output>) {
        this.columns = value
    }

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

    /**
     * @param values SQL Server columns in the schema. When unspecified as part of include/exclude objects, includes/excludes everything.
     * Structure is documented below.
     */
    @JvmName("rmmtjpbfypelstgl")
    public suspend fun columns(values: List>) {
        this.columns = Output.all(values)
    }

    /**
     * @param value Table name.
     */
    @JvmName("hufcgixsrxhphjxa")
    public suspend fun table(`value`: Output) {
        this.table = value
    }

    /**
     * @param value SQL Server columns in the schema. When unspecified as part of include/exclude objects, includes/excludes everything.
     * Structure is documented below.
     */
    @JvmName("iaaiahdbwuhyriyl")
    public suspend fun columns(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.columns = mapped
    }

    /**
     * @param argument SQL Server columns in the schema. When unspecified as part of include/exclude objects, includes/excludes everything.
     * Structure is documented below.
     */
    @JvmName("ogiibcaxrfcrvssh")
    public suspend fun columns(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            StreamSourceConfigSqlServerSourceConfigExcludeObjectsSchemaTableColumnArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.columns = mapped
    }

    /**
     * @param argument SQL Server columns in the schema. When unspecified as part of include/exclude objects, includes/excludes everything.
     * Structure is documented below.
     */
    @JvmName("ydjipkbsvmpavxkl")
    public suspend fun columns(vararg argument: suspend StreamSourceConfigSqlServerSourceConfigExcludeObjectsSchemaTableColumnArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            StreamSourceConfigSqlServerSourceConfigExcludeObjectsSchemaTableColumnArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.columns = mapped
    }

    /**
     * @param argument SQL Server columns in the schema. When unspecified as part of include/exclude objects, includes/excludes everything.
     * Structure is documented below.
     */
    @JvmName("xnvcuohwksqnsham")
    public suspend fun columns(argument: suspend StreamSourceConfigSqlServerSourceConfigExcludeObjectsSchemaTableColumnArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                StreamSourceConfigSqlServerSourceConfigExcludeObjectsSchemaTableColumnArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.columns = mapped
    }

    /**
     * @param values SQL Server columns in the schema. When unspecified as part of include/exclude objects, includes/excludes everything.
     * Structure is documented below.
     */
    @JvmName("sdjfphsjjfqqbmpv")
    public suspend fun columns(vararg values: StreamSourceConfigSqlServerSourceConfigExcludeObjectsSchemaTableColumnArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.columns = mapped
    }

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

    internal fun build(): StreamSourceConfigSqlServerSourceConfigExcludeObjectsSchemaTableArgs =
        StreamSourceConfigSqlServerSourceConfigExcludeObjectsSchemaTableArgs(
            columns = columns,
            table = table ?: throw PulumiNullFieldException("table"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy