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

com.pulumi.azurenative.sql.kotlin.inputs.SyncGroupSchemaArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.sql.kotlin.inputs

import com.pulumi.azurenative.sql.inputs.SyncGroupSchemaArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
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

/**
 * Properties of sync group schema.
 * @property masterSyncMemberName Name of master sync member where the schema is from.
 * @property tables List of tables in sync group schema.
 */
public data class SyncGroupSchemaArgs(
    public val masterSyncMemberName: Output? = null,
    public val tables: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.sql.inputs.SyncGroupSchemaArgs =
        com.pulumi.azurenative.sql.inputs.SyncGroupSchemaArgs.builder()
            .masterSyncMemberName(masterSyncMemberName?.applyValue({ args0 -> args0 }))
            .tables(
                tables?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [SyncGroupSchemaArgs].
 */
@PulumiTagMarker
public class SyncGroupSchemaArgsBuilder internal constructor() {
    private var masterSyncMemberName: Output? = null

    private var tables: Output>? = null

    /**
     * @param value Name of master sync member where the schema is from.
     */
    @JvmName("uhctqgmgrhqelcab")
    public suspend fun masterSyncMemberName(`value`: Output) {
        this.masterSyncMemberName = value
    }

    /**
     * @param value List of tables in sync group schema.
     */
    @JvmName("mbyerclabhcbobiq")
    public suspend fun tables(`value`: Output>) {
        this.tables = value
    }

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

    /**
     * @param values List of tables in sync group schema.
     */
    @JvmName("whaqphayvkpnexxf")
    public suspend fun tables(values: List>) {
        this.tables = Output.all(values)
    }

    /**
     * @param value Name of master sync member where the schema is from.
     */
    @JvmName("vgwgqbqtndxahlye")
    public suspend fun masterSyncMemberName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.masterSyncMemberName = mapped
    }

    /**
     * @param value List of tables in sync group schema.
     */
    @JvmName("riaraoslpfdehmbj")
    public suspend fun tables(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tables = mapped
    }

    /**
     * @param argument List of tables in sync group schema.
     */
    @JvmName("wexugvfjaughssre")
    public suspend fun tables(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            SyncGroupSchemaTableArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.tables = mapped
    }

    /**
     * @param argument List of tables in sync group schema.
     */
    @JvmName("rtquwyoyjlvcljhk")
    public suspend fun tables(vararg argument: suspend SyncGroupSchemaTableArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            SyncGroupSchemaTableArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.tables = mapped
    }

    /**
     * @param argument List of tables in sync group schema.
     */
    @JvmName("ujwgqwvxuqybdotd")
    public suspend fun tables(argument: suspend SyncGroupSchemaTableArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(SyncGroupSchemaTableArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tables = mapped
    }

    /**
     * @param values List of tables in sync group schema.
     */
    @JvmName("hhnbqmoqkfurbnvb")
    public suspend fun tables(vararg values: SyncGroupSchemaTableArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tables = mapped
    }

    internal fun build(): SyncGroupSchemaArgs = SyncGroupSchemaArgs(
        masterSyncMemberName = masterSyncMemberName,
        tables = tables,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy