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

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

/**
 * Builder for [StreamSourceConfigSqlServerSourceConfigIncludeObjectsSchemaTableArgs].
 */
@PulumiTagMarker
public class StreamSourceConfigSqlServerSourceConfigIncludeObjectsSchemaTableArgsBuilder 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("arcsailxhkdeojvw")
    public suspend fun columns(`value`: Output>) {
        this.columns = value
    }

    @JvmName("udvdxxgcqrdttkhv")
    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("sjukuckvswpcypkg")
    public suspend fun columns(values: List>) {
        this.columns = Output.all(values)
    }

    /**
     * @param value Table name.
     */
    @JvmName("pvuxhlclojufjgep")
    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("roejqgthascscspl")
    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("xgoewajampyjxgik")
    public suspend fun columns(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            StreamSourceConfigSqlServerSourceConfigIncludeObjectsSchemaTableColumnArgsBuilder().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("gakojnctmokoanhk")
    public suspend fun columns(vararg argument: suspend StreamSourceConfigSqlServerSourceConfigIncludeObjectsSchemaTableColumnArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            StreamSourceConfigSqlServerSourceConfigIncludeObjectsSchemaTableColumnArgsBuilder().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("xvryhvvvvnynpasc")
    public suspend fun columns(argument: suspend StreamSourceConfigSqlServerSourceConfigIncludeObjectsSchemaTableColumnArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                StreamSourceConfigSqlServerSourceConfigIncludeObjectsSchemaTableColumnArgsBuilder().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("oqtypjpiqwaljnxc")
    public suspend fun columns(vararg values: StreamSourceConfigSqlServerSourceConfigIncludeObjectsSchemaTableColumnArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.columns = mapped
    }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy