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

com.pulumi.azurenative.datafactory.kotlin.inputs.SparkConfigurationParametrizationReferenceArgs.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.SparkConfigurationParametrizationReferenceArgs.builder
import com.pulumi.azurenative.datafactory.kotlin.enums.SparkConfigurationReferenceType
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.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Spark configuration reference.
 * @property referenceName Reference spark configuration name. Type: string (or Expression with resultType string).
 * @property type Spark configuration reference type.
 */
public data class SparkConfigurationParametrizationReferenceArgs(
    public val referenceName: Output,
    public val type: Output>,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.datafactory.inputs.SparkConfigurationParametrizationReferenceArgs =
        com.pulumi.azurenative.datafactory.inputs.SparkConfigurationParametrizationReferenceArgs.builder()
            .referenceName(referenceName.applyValue({ args0 -> args0 }))
            .type(
                type.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [SparkConfigurationParametrizationReferenceArgs].
 */
@PulumiTagMarker
public class SparkConfigurationParametrizationReferenceArgsBuilder internal constructor() {
    private var referenceName: Output? = null

    private var type: Output>? = null

    /**
     * @param value Reference spark configuration name. Type: string (or Expression with resultType string).
     */
    @JvmName("enbsuovatjryckxx")
    public suspend fun referenceName(`value`: Output) {
        this.referenceName = value
    }

    /**
     * @param value Spark configuration reference type.
     */
    @JvmName("qlyesdgxloytcpok")
    public suspend fun type(`value`: Output>) {
        this.type = value
    }

    /**
     * @param value Reference spark configuration name. Type: string (or Expression with resultType string).
     */
    @JvmName("lqybhsvocavrjlbo")
    public suspend fun referenceName(`value`: Any) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.referenceName = mapped
    }

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

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

    /**
     * @param value Spark configuration reference type.
     */
    @JvmName("noiqiclbgpfxhjlc")
    public fun type(`value`: SparkConfigurationReferenceType) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy