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

com.pulumi.azurenative.datafactory.kotlin.inputs.DataFlowReferenceArgs.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.DataFlowReferenceArgs.builder
import com.pulumi.azurenative.datafactory.kotlin.enums.DataFlowReferenceType
import com.pulumi.core.Either
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 kotlin.Any
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Data flow reference type.
 * @property datasetParameters Reference data flow parameters from dataset.
 * @property parameters Data flow parameters
 * @property referenceName Reference data flow name.
 * @property type Data flow reference type.
 */
public data class DataFlowReferenceArgs(
    public val datasetParameters: Output? = null,
    public val parameters: Output>? = null,
    public val referenceName: Output,
    public val type: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.datafactory.inputs.DataFlowReferenceArgs =
        com.pulumi.azurenative.datafactory.inputs.DataFlowReferenceArgs.builder()
            .datasetParameters(datasetParameters?.applyValue({ args0 -> args0 }))
            .parameters(
                parameters?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .referenceName(referenceName.applyValue({ args0 -> args0 }))
            .type(
                type.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [DataFlowReferenceArgs].
 */
@PulumiTagMarker
public class DataFlowReferenceArgsBuilder internal constructor() {
    private var datasetParameters: Output? = null

    private var parameters: Output>? = null

    private var referenceName: Output? = null

    private var type: Output>? = null

    /**
     * @param value Reference data flow parameters from dataset.
     */
    @JvmName("yhwrtkjdjidfuoml")
    public suspend fun datasetParameters(`value`: Output) {
        this.datasetParameters = value
    }

    /**
     * @param value Data flow parameters
     */
    @JvmName("eqrmskmwibndblce")
    public suspend fun parameters(`value`: Output>) {
        this.parameters = value
    }

    /**
     * @param value Reference data flow name.
     */
    @JvmName("wmqxelhnfhibxflf")
    public suspend fun referenceName(`value`: Output) {
        this.referenceName = value
    }

    /**
     * @param value Data flow reference type.
     */
    @JvmName("nrpbkhjawwliepjj")
    public suspend fun type(`value`: Output>) {
        this.type = value
    }

    /**
     * @param value Reference data flow parameters from dataset.
     */
    @JvmName("uhwcsenchyfkpryw")
    public suspend fun datasetParameters(`value`: Any?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.datasetParameters = mapped
    }

    /**
     * @param value Data flow parameters
     */
    @JvmName("hdstpftqthqsstvb")
    public suspend fun parameters(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.parameters = mapped
    }

    /**
     * @param values Data flow parameters
     */
    @JvmName("bptghebhleoujuob")
    public fun parameters(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.parameters = mapped
    }

    /**
     * @param value Reference data flow name.
     */
    @JvmName("nmddauwcswchutbm")
    public suspend fun referenceName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.referenceName = mapped
    }

    /**
     * @param value Data flow reference type.
     */
    @JvmName("hikkffdfybovtpct")
    public suspend fun type(`value`: Either) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    /**
     * @param value Data flow reference type.
     */
    @JvmName("ldiirnswraufthmx")
    public fun type(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    /**
     * @param value Data flow reference type.
     */
    @JvmName("uptldumjskoelcdq")
    public fun type(`value`: DataFlowReferenceType) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): DataFlowReferenceArgs = DataFlowReferenceArgs(
        datasetParameters = datasetParameters,
        parameters = parameters,
        referenceName = referenceName ?: throw PulumiNullFieldException("referenceName"),
        type = type ?: throw PulumiNullFieldException("type"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy