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

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

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

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

import com.pulumi.azurenative.datafactory.inputs.MapperTargetConnectionsInfoArgs.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.Any
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * A object which contains list of tables and connection details for a target connection.
 * @property connection Source connection details.
 * @property dataMapperMappings List of table mappings.
 * @property relationships List of relationship info among the tables.
 * @property targetEntities List of source tables for a target connection.
 */
public data class MapperTargetConnectionsInfoArgs(
    public val connection: Output? = null,
    public val dataMapperMappings: Output>? = null,
    public val relationships: Output>? = null,
    public val targetEntities: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.datafactory.inputs.MapperTargetConnectionsInfoArgs =
        com.pulumi.azurenative.datafactory.inputs.MapperTargetConnectionsInfoArgs.builder()
            .connection(connection?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .dataMapperMappings(
                dataMapperMappings?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .relationships(relationships?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .targetEntities(
                targetEntities?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [MapperTargetConnectionsInfoArgs].
 */
@PulumiTagMarker
public class MapperTargetConnectionsInfoArgsBuilder internal constructor() {
    private var connection: Output? = null

    private var dataMapperMappings: Output>? = null

    private var relationships: Output>? = null

    private var targetEntities: Output>? = null

    /**
     * @param value Source connection details.
     */
    @JvmName("fvrqnxpxwapdsqvx")
    public suspend fun connection(`value`: Output) {
        this.connection = value
    }

    /**
     * @param value List of table mappings.
     */
    @JvmName("iortjjsjwnniwkbe")
    public suspend fun dataMapperMappings(`value`: Output>) {
        this.dataMapperMappings = value
    }

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

    /**
     * @param values List of table mappings.
     */
    @JvmName("nsegaxtkompuaxwp")
    public suspend fun dataMapperMappings(values: List>) {
        this.dataMapperMappings = Output.all(values)
    }

    /**
     * @param value List of relationship info among the tables.
     */
    @JvmName("molhicetcpjmxcxe")
    public suspend fun relationships(`value`: Output>) {
        this.relationships = value
    }

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

    /**
     * @param values List of relationship info among the tables.
     */
    @JvmName("ebuhsrlrpraajkah")
    public suspend fun relationships(values: List>) {
        this.relationships = Output.all(values)
    }

    /**
     * @param value List of source tables for a target connection.
     */
    @JvmName("fxbgwadtescdxvit")
    public suspend fun targetEntities(`value`: Output>) {
        this.targetEntities = value
    }

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

    /**
     * @param values List of source tables for a target connection.
     */
    @JvmName("weoxjlgioigtdetc")
    public suspend fun targetEntities(values: List>) {
        this.targetEntities = Output.all(values)
    }

    /**
     * @param value Source connection details.
     */
    @JvmName("kmulnfhnptpfenlv")
    public suspend fun connection(`value`: MapperConnectionArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.connection = mapped
    }

    /**
     * @param argument Source connection details.
     */
    @JvmName("rpnyynoerxwqqebf")
    public suspend fun connection(argument: suspend MapperConnectionArgsBuilder.() -> Unit) {
        val toBeMapped = MapperConnectionArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.connection = mapped
    }

    /**
     * @param value List of table mappings.
     */
    @JvmName("jtgurvartpkrgbqu")
    public suspend fun dataMapperMappings(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dataMapperMappings = mapped
    }

    /**
     * @param argument List of table mappings.
     */
    @JvmName("bapavmorvfmctoyu")
    public suspend fun dataMapperMappings(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            DataMapperMappingArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.dataMapperMappings = mapped
    }

    /**
     * @param argument List of table mappings.
     */
    @JvmName("lriadqiauxfkeqvu")
    public suspend fun dataMapperMappings(vararg argument: suspend DataMapperMappingArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            DataMapperMappingArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.dataMapperMappings = mapped
    }

    /**
     * @param argument List of table mappings.
     */
    @JvmName("efsggbrpqthsgdwd")
    public suspend fun dataMapperMappings(argument: suspend DataMapperMappingArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(DataMapperMappingArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.dataMapperMappings = mapped
    }

    /**
     * @param values List of table mappings.
     */
    @JvmName("jmevrlsagiacheen")
    public suspend fun dataMapperMappings(vararg values: DataMapperMappingArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.dataMapperMappings = mapped
    }

    /**
     * @param value List of relationship info among the tables.
     */
    @JvmName("skbsnexiondjihhc")
    public suspend fun relationships(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.relationships = mapped
    }

    /**
     * @param values List of relationship info among the tables.
     */
    @JvmName("eojvqmmwsegmjdvt")
    public suspend fun relationships(vararg values: Any) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.relationships = mapped
    }

    /**
     * @param value List of source tables for a target connection.
     */
    @JvmName("mqwqqodaxccipfqk")
    public suspend fun targetEntities(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.targetEntities = mapped
    }

    /**
     * @param argument List of source tables for a target connection.
     */
    @JvmName("byjkqwqijqanpago")
    public suspend fun targetEntities(argument: List Unit>) {
        val toBeMapped = argument.toList().map { MapperTableArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.targetEntities = mapped
    }

    /**
     * @param argument List of source tables for a target connection.
     */
    @JvmName("ndpvoigjjnllrvqa")
    public suspend fun targetEntities(vararg argument: suspend MapperTableArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { MapperTableArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.targetEntities = mapped
    }

    /**
     * @param argument List of source tables for a target connection.
     */
    @JvmName("ilkcmmixmwrosgfs")
    public suspend fun targetEntities(argument: suspend MapperTableArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(MapperTableArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.targetEntities = mapped
    }

    /**
     * @param values List of source tables for a target connection.
     */
    @JvmName("tmlsptbwlawkkvhw")
    public suspend fun targetEntities(vararg values: MapperTableArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.targetEntities = mapped
    }

    internal fun build(): MapperTargetConnectionsInfoArgs = MapperTargetConnectionsInfoArgs(
        connection = connection,
        dataMapperMappings = dataMapperMappings,
        relationships = relationships,
        targetEntities = targetEntities,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy