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

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

/**
 * Power Query 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 documentLocale Locale of the Power query mashup document.
 * @property folder The folder that this data flow is in. If not specified, Data flow will appear at the root level.
 * @property script Power query mashup script.
 * @property sources List of sources in Power Query.
 * @property type Type of data flow.
 * Expected value is 'WranglingDataFlow'.
 */
public data class WranglingDataFlowArgs(
    public val annotations: Output>? = null,
    public val description: Output? = null,
    public val documentLocale: Output? = null,
    public val folder: Output? = null,
    public val script: Output? = null,
    public val sources: Output>? = null,
    public val type: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.datafactory.inputs.WranglingDataFlowArgs =
        com.pulumi.azurenative.datafactory.inputs.WranglingDataFlowArgs.builder()
            .annotations(annotations?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .description(description?.applyValue({ args0 -> args0 }))
            .documentLocale(documentLocale?.applyValue({ args0 -> args0 }))
            .folder(folder?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .script(script?.applyValue({ args0 -> args0 }))
            .sources(
                sources?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .type(type.applyValue({ args0 -> args0 })).build()
}

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

    private var description: Output? = null

    private var documentLocale: Output? = null

    private var folder: Output? = null

    private var script: Output? = null

    private var sources: Output>? = null

    private var type: Output? = null

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

    @JvmName("owtayjaeoqoydaao")
    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("gauforlmicvtrqkl")
    public suspend fun annotations(values: List>) {
        this.annotations = Output.all(values)
    }

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

    /**
     * @param value Locale of the Power query mashup document.
     */
    @JvmName("ofddnqtikxlhjmkc")
    public suspend fun documentLocale(`value`: Output) {
        this.documentLocale = value
    }

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

    /**
     * @param value Power query mashup script.
     */
    @JvmName("nwlortpyvtokrwfc")
    public suspend fun script(`value`: Output) {
        this.script = value
    }

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

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

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

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

    /**
     * @param value List of tags that can be used for describing the data flow.
     */
    @JvmName("rdgyndmrjgpthqpr")
    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("avvpyaatpshvcgkr")
    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("gwkotfixlvyhfdvc")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value Locale of the Power query mashup document.
     */
    @JvmName("crwlwtjwvddidcgs")
    public suspend fun documentLocale(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.documentLocale = mapped
    }

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

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

    /**
     * @param value List of sources in Power Query.
     */
    @JvmName("eosfsudxdyfymjyw")
    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 Power Query.
     */
    @JvmName("aqkjpbjcgxjkvdsm")
    public suspend fun sources(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            PowerQuerySourceArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.sources = mapped
    }

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

    /**
     * @param argument List of sources in Power Query.
     */
    @JvmName("mvmpcsfwnwdeyjun")
    public suspend fun sources(argument: suspend PowerQuerySourceArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(PowerQuerySourceArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.sources = mapped
    }

    /**
     * @param values List of sources in Power Query.
     */
    @JvmName("vcpgnynalhwerewb")
    public suspend fun sources(vararg values: PowerQuerySourceArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sources = mapped
    }

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

    internal fun build(): WranglingDataFlowArgs = WranglingDataFlowArgs(
        annotations = annotations,
        description = description,
        documentLocale = documentLocale,
        folder = folder,
        script = script,
        sources = sources,
        type = type ?: throw PulumiNullFieldException("type"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy