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

com.pulumi.azurenative.datafactory.kotlin.inputs.MappingDataFlowArgs.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.datafactory.kotlin.inputs

import com.pulumi.azurenative.datafactory.inputs.MappingDataFlowArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Any
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Mapping data flow.
 * @property annotations List of tags that can be used for describing the data flow.
 * @property description The description of the data flow.
 * @property folder The folder that this data flow is in. If not specified, Data flow will appear at the root level.
 * @property script DataFlow script.
 * @property scriptLines Data flow script lines.
 * @property sinks List of sinks in data flow.
 * @property sources List of sources in data flow.
 * @property transformations List of transformations in data flow.
 * @property type Type of data flow.
 * Expected value is 'MappingDataFlow'.
 */
public data class MappingDataFlowArgs(
    public val annotations: Output>? = null,
    public val description: Output? = null,
    public val folder: Output? = null,
    public val script: Output? = null,
    public val scriptLines: Output>? = null,
    public val sinks: Output>? = null,
    public val sources: Output>? = null,
    public val transformations: Output>? = null,
    public val type: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.datafactory.inputs.MappingDataFlowArgs =
        com.pulumi.azurenative.datafactory.inputs.MappingDataFlowArgs.builder()
            .annotations(annotations?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .description(description?.applyValue({ args0 -> args0 }))
            .folder(folder?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .script(script?.applyValue({ args0 -> args0 }))
            .scriptLines(scriptLines?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .sinks(sinks?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .sources(
                sources?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .transformations(
                transformations?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .type(type.applyValue({ args0 -> args0 })).build()
}

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

    private var description: Output? = null

    private var folder: Output? = null

    private var script: Output? = null

    private var scriptLines: Output>? = null

    private var sinks: Output>? = null

    private var sources: Output>? = null

    private var transformations: Output>? = null

    private var type: Output? = null

    /**
     * @param value List of tags that can be used for describing the data flow.
     */
    @JvmName("ddtkeclipjrmeomt")
    public suspend fun annotations(`value`: Output>) {
        this.annotations = value
    }

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

    /**
     * @param values List of tags that can be used for describing the data flow.
     */
    @JvmName("wjwmjidcnehxlhym")
    public suspend fun annotations(values: List>) {
        this.annotations = Output.all(values)
    }

    /**
     * @param value The description of the data flow.
     */
    @JvmName("ophqbxwrebkwhydo")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The folder that this data flow is in. If not specified, Data flow will appear at the root level.
     */
    @JvmName("anfkdwvfoxnxeyds")
    public suspend fun folder(`value`: Output) {
        this.folder = value
    }

    /**
     * @param value DataFlow script.
     */
    @JvmName("ysryrcvuyxthsmhy")
    public suspend fun script(`value`: Output) {
        this.script = value
    }

    /**
     * @param value Data flow script lines.
     */
    @JvmName("aulxjerwtmyogutn")
    public suspend fun scriptLines(`value`: Output>) {
        this.scriptLines = value
    }

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

    /**
     * @param values Data flow script lines.
     */
    @JvmName("khdoehqwnfpldfid")
    public suspend fun scriptLines(values: List>) {
        this.scriptLines = Output.all(values)
    }

    /**
     * @param value List of sinks in data flow.
     */
    @JvmName("yhitbiesempdmted")
    public suspend fun sinks(`value`: Output>) {
        this.sinks = value
    }

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

    /**
     * @param values List of sinks in data flow.
     */
    @JvmName("hvdtaokpqjwmtogq")
    public suspend fun sinks(values: List>) {
        this.sinks = Output.all(values)
    }

    /**
     * @param value List of sources in data flow.
     */
    @JvmName("kitcfdsoelsaxwhe")
    public suspend fun sources(`value`: Output>) {
        this.sources = value
    }

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

    /**
     * @param values List of sources in data flow.
     */
    @JvmName("vrjugshhaifhqsnw")
    public suspend fun sources(values: List>) {
        this.sources = Output.all(values)
    }

    /**
     * @param value List of transformations in data flow.
     */
    @JvmName("kinmpcjchvoxthqp")
    public suspend fun transformations(`value`: Output>) {
        this.transformations = value
    }

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

    /**
     * @param values List of transformations in data flow.
     */
    @JvmName("ybvsnntxomwmjcmf")
    public suspend fun transformations(values: List>) {
        this.transformations = Output.all(values)
    }

    /**
     * @param value Type of data flow.
     * Expected value is 'MappingDataFlow'.
     */
    @JvmName("nafdrpmmpocefvsq")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value List of tags that can be used for describing the data flow.
     */
    @JvmName("lfypfxsnaipjkylp")
    public suspend fun annotations(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.annotations = mapped
    }

    /**
     * @param values List of tags that can be used for describing the data flow.
     */
    @JvmName("evbdgruuqrnvwiqe")
    public suspend fun annotations(vararg values: Any) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.annotations = mapped
    }

    /**
     * @param value The description of the data flow.
     */
    @JvmName("vmltfbtwtfhipsnx")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The folder that this data flow is in. If not specified, Data flow will appear at the root level.
     */
    @JvmName("tpkatcbxssbvglpg")
    public suspend fun folder(`value`: DataFlowFolderArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.folder = mapped
    }

    /**
     * @param argument The folder that this data flow is in. If not specified, Data flow will appear at the root level.
     */
    @JvmName("hnksmjtdsjjdhgnm")
    public suspend fun folder(argument: suspend DataFlowFolderArgsBuilder.() -> Unit) {
        val toBeMapped = DataFlowFolderArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.folder = mapped
    }

    /**
     * @param value DataFlow script.
     */
    @JvmName("kobmoqobpaogxflq")
    public suspend fun script(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.script = mapped
    }

    /**
     * @param value Data flow script lines.
     */
    @JvmName("pmrtthlvinydgdci")
    public suspend fun scriptLines(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.scriptLines = mapped
    }

    /**
     * @param values Data flow script lines.
     */
    @JvmName("mqfiihthbqclydcc")
    public suspend fun scriptLines(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.scriptLines = mapped
    }

    /**
     * @param value List of sinks in data flow.
     */
    @JvmName("wgtopssaemhmpnfb")
    public suspend fun sinks(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sinks = mapped
    }

    /**
     * @param argument List of sinks in data flow.
     */
    @JvmName("vkoqqwwawcyscrvl")
    public suspend fun sinks(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            DataFlowSinkArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.sinks = mapped
    }

    /**
     * @param argument List of sinks in data flow.
     */
    @JvmName("eanjhqodhbesftdc")
    public suspend fun sinks(vararg argument: suspend DataFlowSinkArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            DataFlowSinkArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.sinks = mapped
    }

    /**
     * @param argument List of sinks in data flow.
     */
    @JvmName("nklrtjtccacogpux")
    public suspend fun sinks(argument: suspend DataFlowSinkArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(DataFlowSinkArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.sinks = mapped
    }

    /**
     * @param values List of sinks in data flow.
     */
    @JvmName("vsmqomaptrgycvui")
    public suspend fun sinks(vararg values: DataFlowSinkArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sinks = mapped
    }

    /**
     * @param value List of sources in data flow.
     */
    @JvmName("xmydnoejgovvnsjw")
    public suspend fun sources(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sources = mapped
    }

    /**
     * @param argument List of sources in data flow.
     */
    @JvmName("mofoqrdxvrwfosei")
    public suspend fun sources(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            DataFlowSourceArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.sources = mapped
    }

    /**
     * @param argument List of sources in data flow.
     */
    @JvmName("deeifjuubyoufqqo")
    public suspend fun sources(vararg argument: suspend DataFlowSourceArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            DataFlowSourceArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.sources = mapped
    }

    /**
     * @param argument List of sources in data flow.
     */
    @JvmName("iuqdvyekfojwbwqa")
    public suspend fun sources(argument: suspend DataFlowSourceArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(DataFlowSourceArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.sources = mapped
    }

    /**
     * @param values List of sources in data flow.
     */
    @JvmName("hcruvxacumndvdeh")
    public suspend fun sources(vararg values: DataFlowSourceArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sources = mapped
    }

    /**
     * @param value List of transformations in data flow.
     */
    @JvmName("wunwnvomgyymhurv")
    public suspend fun transformations(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.transformations = mapped
    }

    /**
     * @param argument List of transformations in data flow.
     */
    @JvmName("gwjmerpalnrtthtl")
    public suspend fun transformations(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            TransformationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.transformations = mapped
    }

    /**
     * @param argument List of transformations in data flow.
     */
    @JvmName("cvepiihujbfbwckj")
    public suspend fun transformations(vararg argument: suspend TransformationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            TransformationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.transformations = mapped
    }

    /**
     * @param argument List of transformations in data flow.
     */
    @JvmName("egysiyyvokaifjos")
    public suspend fun transformations(argument: suspend TransformationArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TransformationArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.transformations = mapped
    }

    /**
     * @param values List of transformations in data flow.
     */
    @JvmName("sealktqwuryxkeax")
    public suspend fun transformations(vararg values: TransformationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.transformations = mapped
    }

    /**
     * @param value Type of data flow.
     * Expected value is 'MappingDataFlow'.
     */
    @JvmName("kvtfofbftlmlnjda")
    public suspend fun type(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): MappingDataFlowArgs = MappingDataFlowArgs(
        annotations = annotations,
        description = description,
        folder = folder,
        script = script,
        scriptLines = scriptLines,
        sinks = sinks,
        sources = sources,
        transformations = transformations,
        type = type ?: throw PulumiNullFieldException("type"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy