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

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

/**
 * Builder for [StreamBackfillAllMysqlExcludedObjectsMysqlDatabaseArgs].
 */
@PulumiTagMarker
public class StreamBackfillAllMysqlExcludedObjectsMysqlDatabaseArgsBuilder internal constructor() {
    private var database: Output? = null

    private var mysqlTables:
        Output>? = null

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

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

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

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

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

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

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

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

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

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

    internal fun build(): StreamBackfillAllMysqlExcludedObjectsMysqlDatabaseArgs =
        StreamBackfillAllMysqlExcludedObjectsMysqlDatabaseArgs(
            database = database ?: throw PulumiNullFieldException("database"),
            mysqlTables = mysqlTables,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy