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

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

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

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

import com.pulumi.azurenative.datafactory.inputs.ManagedIdentityCredentialArgs.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.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Managed identity credential.
 * @property annotations List of tags that can be used for describing the Credential.
 * @property description Credential description.
 * @property resourceId The resource id of user assigned managed identity
 * @property type Type of credential.
 * Expected value is 'ManagedIdentity'.
 */
public data class ManagedIdentityCredentialArgs(
    public val annotations: Output>? = null,
    public val description: Output? = null,
    public val resourceId: Output? = null,
    public val type: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.datafactory.inputs.ManagedIdentityCredentialArgs =
        com.pulumi.azurenative.datafactory.inputs.ManagedIdentityCredentialArgs.builder()
            .annotations(annotations?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .description(description?.applyValue({ args0 -> args0 }))
            .resourceId(resourceId?.applyValue({ args0 -> args0 }))
            .type(type.applyValue({ args0 -> args0 })).build()
}

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

    private var description: Output? = null

    private var resourceId: Output? = null

    private var type: Output? = null

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

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

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

    /**
     * @param value The resource id of user assigned managed identity
     */
    @JvmName("fvlguyowayxyvgrr")
    public suspend fun resourceId(`value`: Output) {
        this.resourceId = value
    }

    /**
     * @param value Type of credential.
     * Expected value is 'ManagedIdentity'.
     */
    @JvmName("fnunrcfbbhwxwyyo")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

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

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

    /**
     * @param value The resource id of user assigned managed identity
     */
    @JvmName("hhgnvfnqnyqmwrhf")
    public suspend fun resourceId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceId = mapped
    }

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

    internal fun build(): ManagedIdentityCredentialArgs = ManagedIdentityCredentialArgs(
        annotations = annotations,
        description = description,
        resourceId = resourceId,
        type = type ?: throw PulumiNullFieldException("type"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy