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

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

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

    private var schema: Output? = null

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

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

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

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

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

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

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

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

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

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

    internal fun build(): StreamSourceConfigPostgresqlSourceConfigIncludeObjectsPostgresqlSchemaArgs =
        StreamSourceConfigPostgresqlSourceConfigIncludeObjectsPostgresqlSchemaArgs(
            postgresqlTables = postgresqlTables,
            schema = schema ?: throw PulumiNullFieldException("schema"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy