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

com.pulumi.azurenative.datafactory.kotlin.inputs.LinkedServiceReferenceArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.datafactory.kotlin.inputs

import com.pulumi.azurenative.datafactory.inputs.LinkedServiceReferenceArgs.builder
import com.pulumi.azurenative.datafactory.kotlin.enums.Type
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

/**
 * Linked service reference type.
 * @property parameters Arguments for LinkedService.
 * @property referenceName Reference LinkedService name.
 * @property type Linked service reference type.
 */
public data class LinkedServiceReferenceArgs(
    public val parameters: Output>? = null,
    public val referenceName: Output,
    public val type: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.datafactory.inputs.LinkedServiceReferenceArgs =
        com.pulumi.azurenative.datafactory.inputs.LinkedServiceReferenceArgs.builder()
            .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 [LinkedServiceReferenceArgs].
 */
@PulumiTagMarker
public class LinkedServiceReferenceArgsBuilder internal constructor() {
    private var parameters: Output>? = null

    private var referenceName: Output? = null

    private var type: Output>? = null

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

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

    /**
     * @param value Linked service reference type.
     */
    @JvmName("bwrcjnfbyptoycxs")
    public suspend fun type(`value`: Output>) {
        this.type = value
    }

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

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

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

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

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

    /**
     * @param value Linked service reference type.
     */
    @JvmName("nieyiqaxbtqwwsgj")
    public fun type(`value`: Type) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy