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

com.pulumi.gcp.datastream.kotlin.inputs.StreamSourceConfigMysqlSourceConfigIncludeObjectsArgs.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.12.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.StreamSourceConfigMysqlSourceConfigIncludeObjectsArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property mysqlDatabases MySQL databases on the server
 * Structure is documented below.
 */
public data class StreamSourceConfigMysqlSourceConfigIncludeObjectsArgs(
    public val mysqlDatabases: Output>,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.datastream.inputs.StreamSourceConfigMysqlSourceConfigIncludeObjectsArgs =
        com.pulumi.gcp.datastream.inputs.StreamSourceConfigMysqlSourceConfigIncludeObjectsArgs.builder()
            .mysqlDatabases(
                mysqlDatabases.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    /**
     * @param value MySQL databases on the server
     * Structure is documented below.
     */
    @JvmName("rwoetblimlhimjuu")
    public suspend fun mysqlDatabases(`value`: Output>) {
        this.mysqlDatabases = value
    }

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

    /**
     * @param values MySQL databases on the server
     * Structure is documented below.
     */
    @JvmName("kdymkolorjgnyigd")
    public suspend fun mysqlDatabases(values: List>) {
        this.mysqlDatabases = Output.all(values)
    }

    /**
     * @param value MySQL databases on the server
     * Structure is documented below.
     */
    @JvmName("rtwhfbjokbuirkvn")
    public suspend fun mysqlDatabases(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.mysqlDatabases = mapped
    }

    /**
     * @param argument MySQL databases on the server
     * Structure is documented below.
     */
    @JvmName("cmhtshoxydpkchsg")
    public suspend fun mysqlDatabases(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            StreamSourceConfigMysqlSourceConfigIncludeObjectsMysqlDatabaseArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.mysqlDatabases = mapped
    }

    /**
     * @param argument MySQL databases on the server
     * Structure is documented below.
     */
    @JvmName("cmhxvqcdixaqlgjp")
    public suspend fun mysqlDatabases(vararg argument: suspend StreamSourceConfigMysqlSourceConfigIncludeObjectsMysqlDatabaseArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            StreamSourceConfigMysqlSourceConfigIncludeObjectsMysqlDatabaseArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.mysqlDatabases = mapped
    }

    /**
     * @param argument MySQL databases on the server
     * Structure is documented below.
     */
    @JvmName("goisoajxksfriprx")
    public suspend fun mysqlDatabases(argument: suspend StreamSourceConfigMysqlSourceConfigIncludeObjectsMysqlDatabaseArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                StreamSourceConfigMysqlSourceConfigIncludeObjectsMysqlDatabaseArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.mysqlDatabases = mapped
    }

    /**
     * @param values MySQL databases on the server
     * Structure is documented below.
     */
    @JvmName("trkbetwyuhlyurqv")
    public suspend fun mysqlDatabases(vararg values: StreamSourceConfigMysqlSourceConfigIncludeObjectsMysqlDatabaseArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.mysqlDatabases = mapped
    }

    internal fun build(): StreamSourceConfigMysqlSourceConfigIncludeObjectsArgs =
        StreamSourceConfigMysqlSourceConfigIncludeObjectsArgs(
            mysqlDatabases = mysqlDatabases ?: throw PulumiNullFieldException("mysqlDatabases"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy