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

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

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

    private var table: Output? = null

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

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

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

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

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

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

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

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

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

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

    internal fun build(): StreamSourceConfigPostgresqlSourceConfigExcludeObjectsPostgresqlSchemaPostgresqlTableArgs =
        StreamSourceConfigPostgresqlSourceConfigExcludeObjectsPostgresqlSchemaPostgresqlTableArgs(
            postgresqlColumns = postgresqlColumns,
            table = table ?: throw PulumiNullFieldException("table"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy