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

com.pulumi.gcp.datastream.kotlin.inputs.StreamSourceConfigMysqlSourceConfigExcludeObjectsMysqlDatabaseMysqlTableArgs.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.StreamSourceConfigMysqlSourceConfigExcludeObjectsMysqlDatabaseMysqlTableArgs.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 mysqlColumns MySQL columns in the schema. When unspecified as part of include/exclude objects, includes/excludes everything.
 * Structure is documented below.
 * @property table Table name.
 */
public data class StreamSourceConfigMysqlSourceConfigExcludeObjectsMysqlDatabaseMysqlTableArgs(
    public val mysqlColumns: Output>? =
        null,
    public val table: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.datastream.inputs.StreamSourceConfigMysqlSourceConfigExcludeObjectsMysqlDatabaseMysqlTableArgs =
        com.pulumi.gcp.datastream.inputs.StreamSourceConfigMysqlSourceConfigExcludeObjectsMysqlDatabaseMysqlTableArgs.builder()
            .mysqlColumns(
                mysqlColumns?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .table(table.applyValue({ args0 -> args0 })).build()
}

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

    private var table: Output? = null

    /**
     * @param value MySQL columns in the schema. When unspecified as part of include/exclude objects, includes/excludes everything.
     * Structure is documented below.
     */
    @JvmName("thkqnnmvsdvxhvga")
    public suspend fun mysqlColumns(`value`: Output>) {
        this.mysqlColumns = value
    }

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

    /**
     * @param values MySQL columns in the schema. When unspecified as part of include/exclude objects, includes/excludes everything.
     * Structure is documented below.
     */
    @JvmName("kwuglhnhxdkbibpe")
    public suspend fun mysqlColumns(values: List>) {
        this.mysqlColumns = Output.all(values)
    }

    /**
     * @param value Table name.
     */
    @JvmName("gsqdmwjwaskxeybr")
    public suspend fun table(`value`: Output) {
        this.table = value
    }

    /**
     * @param value MySQL columns in the schema. When unspecified as part of include/exclude objects, includes/excludes everything.
     * Structure is documented below.
     */
    @JvmName("ehiwwskptmtuoqqj")
    public suspend fun mysqlColumns(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.mysqlColumns = mapped
    }

    /**
     * @param argument MySQL columns in the schema. When unspecified as part of include/exclude objects, includes/excludes everything.
     * Structure is documented below.
     */
    @JvmName("bnlhelumpqfklseu")
    public suspend fun mysqlColumns(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            StreamSourceConfigMysqlSourceConfigExcludeObjectsMysqlDatabaseMysqlTableMysqlColumnArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.mysqlColumns = mapped
    }

    /**
     * @param argument MySQL columns in the schema. When unspecified as part of include/exclude objects, includes/excludes everything.
     * Structure is documented below.
     */
    @JvmName("nuncoualcknekmjr")
    public suspend fun mysqlColumns(vararg argument: suspend StreamSourceConfigMysqlSourceConfigExcludeObjectsMysqlDatabaseMysqlTableMysqlColumnArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            StreamSourceConfigMysqlSourceConfigExcludeObjectsMysqlDatabaseMysqlTableMysqlColumnArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.mysqlColumns = mapped
    }

    /**
     * @param argument MySQL columns in the schema. When unspecified as part of include/exclude objects, includes/excludes everything.
     * Structure is documented below.
     */
    @JvmName("usgiiatehwksoexe")
    public suspend fun mysqlColumns(argument: suspend StreamSourceConfigMysqlSourceConfigExcludeObjectsMysqlDatabaseMysqlTableMysqlColumnArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                StreamSourceConfigMysqlSourceConfigExcludeObjectsMysqlDatabaseMysqlTableMysqlColumnArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.mysqlColumns = mapped
    }

    /**
     * @param values MySQL columns in the schema. When unspecified as part of include/exclude objects, includes/excludes everything.
     * Structure is documented below.
     */
    @JvmName("jepxiggeigejtxxw")
    public suspend fun mysqlColumns(vararg values: StreamSourceConfigMysqlSourceConfigExcludeObjectsMysqlDatabaseMysqlTableMysqlColumnArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.mysqlColumns = mapped
    }

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

    internal fun build(): StreamSourceConfigMysqlSourceConfigExcludeObjectsMysqlDatabaseMysqlTableArgs = StreamSourceConfigMysqlSourceConfigExcludeObjectsMysqlDatabaseMysqlTableArgs(
        mysqlColumns = mysqlColumns,
        table = table ?: throw PulumiNullFieldException("table"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy