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

com.pulumi.azurenative.datafactory.kotlin.inputs.DatasetReferenceArgs.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.DatasetReferenceArgs.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 kotlin.Any
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

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

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

    private var referenceName: Output? = null

    private var type: Output? = null

    /**
     * @param value Arguments for dataset.
     */
    @JvmName("miutclivtckknhdi")
    public suspend fun parameters(`value`: Output>) {
        this.parameters = value
    }

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

    /**
     * @param value Dataset reference type.
     */
    @JvmName("udfsryqjpuhwinrm")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

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

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

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy