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

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

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

    private var mysqlTables:
        Output>? =
        null

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

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

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

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

    /**
     * @param value Database name.
     */
    @JvmName("pojtotafscgsoefu")
    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("ogtyihdiniahkivk")
    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("snkyyeblxfrclngp")
    public suspend fun mysqlTables(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            StreamSourceConfigMysqlSourceConfigIncludeObjectsMysqlDatabaseMysqlTableArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.mysqlTables = mapped
    }

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

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy