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

com.pulumi.azurenative.datafactory.kotlin.inputs.MapperTableArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.datafactory.kotlin.inputs

import com.pulumi.azurenative.datafactory.inputs.MapperTableArgs.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

/**
 * CDC table details.
 * @property dslConnectorProperties List of name/value pairs for connection properties.
 * @property name Name of the table.
 * @property schema List of columns for the source table.
 */
public data class MapperTableArgs(
    public val dslConnectorProperties: Output>? = null,
    public val name: Output? = null,
    public val schema: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.datafactory.inputs.MapperTableArgs =
        com.pulumi.azurenative.datafactory.inputs.MapperTableArgs.builder()
            .dslConnectorProperties(
                dslConnectorProperties?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .name(name?.applyValue({ args0 -> args0 }))
            .schema(
                schema?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var name: Output? = null

    private var schema: Output>? = null

    /**
     * @param value List of name/value pairs for connection properties.
     */
    @JvmName("yonoxkdqyrmqomwr")
    public suspend fun dslConnectorProperties(`value`: Output>) {
        this.dslConnectorProperties = value
    }

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

    /**
     * @param values List of name/value pairs for connection properties.
     */
    @JvmName("rsnosikaevroyjhc")
    public suspend fun dslConnectorProperties(values: List>) {
        this.dslConnectorProperties = Output.all(values)
    }

    /**
     * @param value Name of the table.
     */
    @JvmName("nyvyttokvetyjxtv")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value List of columns for the source table.
     */
    @JvmName("pmyaejwpnjlmwvxe")
    public suspend fun schema(`value`: Output>) {
        this.schema = value
    }

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

    /**
     * @param values List of columns for the source table.
     */
    @JvmName("usdtfcggblgxfgrd")
    public suspend fun schema(values: List>) {
        this.schema = Output.all(values)
    }

    /**
     * @param value List of name/value pairs for connection properties.
     */
    @JvmName("wtfwvdownhralhrk")
    public suspend fun dslConnectorProperties(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dslConnectorProperties = mapped
    }

    /**
     * @param argument List of name/value pairs for connection properties.
     */
    @JvmName("fbpcwuqdcopoxtgs")
    public suspend fun dslConnectorProperties(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            MapperDslConnectorPropertiesArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.dslConnectorProperties = mapped
    }

    /**
     * @param argument List of name/value pairs for connection properties.
     */
    @JvmName("lbxtxahxygdcxwlc")
    public suspend fun dslConnectorProperties(vararg argument: suspend MapperDslConnectorPropertiesArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            MapperDslConnectorPropertiesArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.dslConnectorProperties = mapped
    }

    /**
     * @param argument List of name/value pairs for connection properties.
     */
    @JvmName("dimonqjpmcgtcxwu")
    public suspend fun dslConnectorProperties(argument: suspend MapperDslConnectorPropertiesArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            MapperDslConnectorPropertiesArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.dslConnectorProperties = mapped
    }

    /**
     * @param values List of name/value pairs for connection properties.
     */
    @JvmName("lisfguidnersqlou")
    public suspend fun dslConnectorProperties(vararg values: MapperDslConnectorPropertiesArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.dslConnectorProperties = mapped
    }

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

    /**
     * @param value List of columns for the source table.
     */
    @JvmName("anubyeejbunnfsar")
    public suspend fun schema(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.schema = mapped
    }

    /**
     * @param argument List of columns for the source table.
     */
    @JvmName("ssutmcqflvhduoas")
    public suspend fun schema(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            MapperTableSchemaArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.schema = mapped
    }

    /**
     * @param argument List of columns for the source table.
     */
    @JvmName("octwqfgjhavbrsuh")
    public suspend fun schema(vararg argument: suspend MapperTableSchemaArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            MapperTableSchemaArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.schema = mapped
    }

    /**
     * @param argument List of columns for the source table.
     */
    @JvmName("oqgxtqvmgwcqkexw")
    public suspend fun schema(argument: suspend MapperTableSchemaArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(MapperTableSchemaArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.schema = mapped
    }

    /**
     * @param values List of columns for the source table.
     */
    @JvmName("itpwpfhpsspultxk")
    public suspend fun schema(vararg values: MapperTableSchemaArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.schema = mapped
    }

    internal fun build(): MapperTableArgs = MapperTableArgs(
        dslConnectorProperties = dslConnectorProperties,
        name = name,
        schema = schema,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy