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

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

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

    private var schema: Output? = null

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

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

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

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

    /**
     * @param value Tables in the schema.
     * Structure is documented below.
     */
    @JvmName("lnkscaarnuffdaxi")
    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("prteouievdfjnhav")
    public suspend fun postgresqlTables(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            StreamBackfillAllPostgresqlExcludedObjectsPostgresqlSchemaPostgresqlTableArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.postgresqlTables = mapped
    }

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

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

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy