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

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

/**
 * Azure Batch linked service.
 * @property accessKey The Azure Batch account access key.
 * @property accountName The Azure Batch account name. Type: string (or Expression with resultType string).
 * @property annotations List of tags that can be used for describing the linked service.
 * @property batchUri The Azure Batch URI. Type: string (or Expression with resultType string).
 * @property connectVia The integration runtime reference.
 * @property credential The credential reference containing authentication information.
 * @property description Linked service description.
 * @property encryptedCredential The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string.
 * @property linkedServiceName The Azure Storage linked service reference.
 * @property parameters Parameters for linked service.
 * @property poolName The Azure Batch pool name. Type: string (or Expression with resultType string).
 * @property type Type of linked service.
 * Expected value is 'AzureBatch'.
 * @property version Version of the linked service.
 */
public data class AzureBatchLinkedServiceArgs(
    public val accessKey: Output>? = null,
    public val accountName: Output,
    public val annotations: Output>? = null,
    public val batchUri: Output,
    public val connectVia: Output? = null,
    public val credential: Output? = null,
    public val description: Output? = null,
    public val encryptedCredential: Output? = null,
    public val linkedServiceName: Output,
    public val parameters: Output>? = null,
    public val poolName: Output,
    public val type: Output,
    public val version: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.datafactory.inputs.AzureBatchLinkedServiceArgs =
        com.pulumi.azurenative.datafactory.inputs.AzureBatchLinkedServiceArgs.builder()
            .accessKey(
                accessKey?.applyValue({ args0 ->
                    args0.transform({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    }, { args0 -> args0.let({ args0 -> args0.toJava() }) })
                }),
            )
            .accountName(accountName.applyValue({ args0 -> args0 }))
            .annotations(annotations?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .batchUri(batchUri.applyValue({ args0 -> args0 }))
            .connectVia(connectVia?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .credential(credential?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .description(description?.applyValue({ args0 -> args0 }))
            .encryptedCredential(encryptedCredential?.applyValue({ args0 -> args0 }))
            .linkedServiceName(linkedServiceName.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .parameters(
                parameters?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value.let({ args0 -> args0.toJava() }))
                    }).toMap()
                }),
            )
            .poolName(poolName.applyValue({ args0 -> args0 }))
            .type(type.applyValue({ args0 -> args0 }))
            .version(version?.applyValue({ args0 -> args0 })).build()
}

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

    private var accountName: Output? = null

    private var annotations: Output>? = null

    private var batchUri: Output? = null

    private var connectVia: Output? = null

    private var credential: Output? = null

    private var description: Output? = null

    private var encryptedCredential: Output? = null

    private var linkedServiceName: Output? = null

    private var parameters: Output>? = null

    private var poolName: Output? = null

    private var type: Output? = null

    private var version: Output? = null

    /**
     * @param value The Azure Batch account access key.
     */
    @JvmName("msrwfahywxelcvuu")
    public suspend fun accessKey(`value`: Output>) {
        this.accessKey = value
    }

    /**
     * @param value The Azure Batch account name. Type: string (or Expression with resultType string).
     */
    @JvmName("gcbpwerorguisdso")
    public suspend fun accountName(`value`: Output) {
        this.accountName = value
    }

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

    @JvmName("bsejahdpxesvnpwp")
    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 linked service.
     */
    @JvmName("ichapodtxyrpwubi")
    public suspend fun annotations(values: List>) {
        this.annotations = Output.all(values)
    }

    /**
     * @param value The Azure Batch URI. Type: string (or Expression with resultType string).
     */
    @JvmName("asptfawiuguyesao")
    public suspend fun batchUri(`value`: Output) {
        this.batchUri = value
    }

    /**
     * @param value The integration runtime reference.
     */
    @JvmName("wruxclkotwniagvx")
    public suspend fun connectVia(`value`: Output) {
        this.connectVia = value
    }

    /**
     * @param value The credential reference containing authentication information.
     */
    @JvmName("ulobfujxilkretfg")
    public suspend fun credential(`value`: Output) {
        this.credential = value
    }

    /**
     * @param value Linked service description.
     */
    @JvmName("obihyjuvujhbjfax")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string.
     */
    @JvmName("kbqhfbvfcxljgbyi")
    public suspend fun encryptedCredential(`value`: Output) {
        this.encryptedCredential = value
    }

    /**
     * @param value The Azure Storage linked service reference.
     */
    @JvmName("bbkmmjnxilvaicyh")
    public suspend fun linkedServiceName(`value`: Output) {
        this.linkedServiceName = value
    }

    /**
     * @param value Parameters for linked service.
     */
    @JvmName("ykcemwjxrdmxjgyq")
    public suspend fun parameters(`value`: Output>) {
        this.parameters = value
    }

    /**
     * @param value The Azure Batch pool name. Type: string (or Expression with resultType string).
     */
    @JvmName("hourqfnhbvwitvth")
    public suspend fun poolName(`value`: Output) {
        this.poolName = value
    }

    /**
     * @param value Type of linked service.
     * Expected value is 'AzureBatch'.
     */
    @JvmName("vfhdnqeofjewmkgr")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value Version of the linked service.
     */
    @JvmName("crhkpieesstkdiws")
    public suspend fun version(`value`: Output) {
        this.version = value
    }

    /**
     * @param value The Azure Batch account access key.
     */
    @JvmName("ofujwejcwdkkjyce")
    public suspend fun accessKey(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.accessKey = mapped
    }

    /**
     * @param value The Azure Batch account access key.
     */
    @JvmName("qgiglaapbgkfoocl")
    public fun accessKey(`value`: AzureKeyVaultSecretReferenceArgs) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.accessKey = mapped
    }

    /**
     * @param value The Azure Batch account access key.
     */
    @JvmName("vexblgqcacdjilbl")
    public fun accessKey(`value`: SecureStringArgs) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.accessKey = mapped
    }

    /**
     * @param value The Azure Batch account name. Type: string (or Expression with resultType string).
     */
    @JvmName("pukuvdpufdwhrhcc")
    public suspend fun accountName(`value`: Any) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.accountName = mapped
    }

    /**
     * @param value List of tags that can be used for describing the linked service.
     */
    @JvmName("ffvrimvahojaaroi")
    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 linked service.
     */
    @JvmName("lkxmjfxenwomajey")
    public suspend fun annotations(vararg values: Any) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.annotations = mapped
    }

    /**
     * @param value The Azure Batch URI. Type: string (or Expression with resultType string).
     */
    @JvmName("nheqrvwhchiapfea")
    public suspend fun batchUri(`value`: Any) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.batchUri = mapped
    }

    /**
     * @param value The integration runtime reference.
     */
    @JvmName("inempmhyguxuukjb")
    public suspend fun connectVia(`value`: IntegrationRuntimeReferenceArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.connectVia = mapped
    }

    /**
     * @param argument The integration runtime reference.
     */
    @JvmName("ehqgsnwwwuuqsxxy")
    public suspend fun connectVia(argument: suspend IntegrationRuntimeReferenceArgsBuilder.() -> Unit) {
        val toBeMapped = IntegrationRuntimeReferenceArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.connectVia = mapped
    }

    /**
     * @param value The credential reference containing authentication information.
     */
    @JvmName("tpqymlawqmwwpnbp")
    public suspend fun credential(`value`: CredentialReferenceArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.credential = mapped
    }

    /**
     * @param argument The credential reference containing authentication information.
     */
    @JvmName("pyepnrablqnihbhn")
    public suspend fun credential(argument: suspend CredentialReferenceArgsBuilder.() -> Unit) {
        val toBeMapped = CredentialReferenceArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.credential = mapped
    }

    /**
     * @param value Linked service description.
     */
    @JvmName("ttcrcitqseeugcsc")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string.
     */
    @JvmName("xjpvjaudpqkcrbkd")
    public suspend fun encryptedCredential(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.encryptedCredential = mapped
    }

    /**
     * @param value The Azure Storage linked service reference.
     */
    @JvmName("mcfttvyyqbrhivns")
    public suspend fun linkedServiceName(`value`: LinkedServiceReferenceArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.linkedServiceName = mapped
    }

    /**
     * @param argument The Azure Storage linked service reference.
     */
    @JvmName("rbwiapvwvhifuqxw")
    public suspend fun linkedServiceName(argument: suspend LinkedServiceReferenceArgsBuilder.() -> Unit) {
        val toBeMapped = LinkedServiceReferenceArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.linkedServiceName = mapped
    }

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

    /**
     * @param argument Parameters for linked service.
     */
    @JvmName("cqvbtogkcswpvstv")
    public suspend fun parameters(vararg argument: Pair Unit>) {
        val toBeMapped = argument.toList().map { (left, right) ->
            left to
                ParameterSpecificationArgsBuilder().applySuspend { right() }.build()
        }.toMap()
        val mapped = of(toBeMapped)
        this.parameters = mapped
    }

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

    /**
     * @param value The Azure Batch pool name. Type: string (or Expression with resultType string).
     */
    @JvmName("jajtuhuiofrybytj")
    public suspend fun poolName(`value`: Any) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.poolName = mapped
    }

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

    /**
     * @param value Version of the linked service.
     */
    @JvmName("snuqeqavplxnmmqg")
    public suspend fun version(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.version = mapped
    }

    internal fun build(): AzureBatchLinkedServiceArgs = AzureBatchLinkedServiceArgs(
        accessKey = accessKey,
        accountName = accountName ?: throw PulumiNullFieldException("accountName"),
        annotations = annotations,
        batchUri = batchUri ?: throw PulumiNullFieldException("batchUri"),
        connectVia = connectVia,
        credential = credential,
        description = description,
        encryptedCredential = encryptedCredential,
        linkedServiceName = linkedServiceName ?: throw PulumiNullFieldException("linkedServiceName"),
        parameters = parameters,
        poolName = poolName ?: throw PulumiNullFieldException("poolName"),
        type = type ?: throw PulumiNullFieldException("type"),
        version = version,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy