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

com.pulumi.azure.cognitive.kotlin.inputs.AccountStorageArgs.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: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.cognitive.kotlin.inputs

import com.pulumi.azure.cognitive.inputs.AccountStorageArgs.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.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property identityClientId The client ID of the managed identity associated with the storage resource.
 * > **NOTE:** Not all `kind` support a `storage` block. For example the `kind` `OpenAI` does not support it.
 * @property storageAccountId Full resource id of a Microsoft.Storage resource.
 */
public data class AccountStorageArgs(
    public val identityClientId: Output? = null,
    public val storageAccountId: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.cognitive.inputs.AccountStorageArgs =
        com.pulumi.azure.cognitive.inputs.AccountStorageArgs.builder()
            .identityClientId(identityClientId?.applyValue({ args0 -> args0 }))
            .storageAccountId(storageAccountId.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AccountStorageArgs].
 */
@PulumiTagMarker
public class AccountStorageArgsBuilder internal constructor() {
    private var identityClientId: Output? = null

    private var storageAccountId: Output? = null

    /**
     * @param value The client ID of the managed identity associated with the storage resource.
     * > **NOTE:** Not all `kind` support a `storage` block. For example the `kind` `OpenAI` does not support it.
     */
    @JvmName("hvpwwjktwumdxaow")
    public suspend fun identityClientId(`value`: Output) {
        this.identityClientId = value
    }

    /**
     * @param value Full resource id of a Microsoft.Storage resource.
     */
    @JvmName("smioihvvqkpbaocg")
    public suspend fun storageAccountId(`value`: Output) {
        this.storageAccountId = value
    }

    /**
     * @param value The client ID of the managed identity associated with the storage resource.
     * > **NOTE:** Not all `kind` support a `storage` block. For example the `kind` `OpenAI` does not support it.
     */
    @JvmName("aekyisiuvcbhwiid")
    public suspend fun identityClientId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.identityClientId = mapped
    }

    /**
     * @param value Full resource id of a Microsoft.Storage resource.
     */
    @JvmName("allawlpumtqsvcso")
    public suspend fun storageAccountId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.storageAccountId = mapped
    }

    internal fun build(): AccountStorageArgs = AccountStorageArgs(
        identityClientId = identityClientId,
        storageAccountId = storageAccountId ?: throw PulumiNullFieldException("storageAccountId"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy