![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.media.kotlin.inputs.StorageAccountArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.media.kotlin.inputs
import com.pulumi.azurenative.media.inputs.StorageAccountArgs.builder
import com.pulumi.azurenative.media.kotlin.enums.StorageAccountType
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* The storage account details.
* @property id The ID of the storage account resource. Media Services relies on tables and queues as well as blobs, so the primary storage account must be a Standard Storage account (either Microsoft.ClassicStorage or Microsoft.Storage). Blob only storage accounts can be added as secondary storage accounts.
* @property identity The storage account identity.
* @property type The type of the storage account.
*/
public data class StorageAccountArgs(
public val id: Output? = null,
public val identity: Output? = null,
public val type: Output>,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.media.inputs.StorageAccountArgs =
com.pulumi.azurenative.media.inputs.StorageAccountArgs.builder()
.id(id?.applyValue({ args0 -> args0 }))
.identity(identity?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.type(
type.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [StorageAccountArgs].
*/
@PulumiTagMarker
public class StorageAccountArgsBuilder internal constructor() {
private var id: Output? = null
private var identity: Output? = null
private var type: Output>? = null
/**
* @param value The ID of the storage account resource. Media Services relies on tables and queues as well as blobs, so the primary storage account must be a Standard Storage account (either Microsoft.ClassicStorage or Microsoft.Storage). Blob only storage accounts can be added as secondary storage accounts.
*/
@JvmName("bppvsbmxhgsoqnql")
public suspend fun id(`value`: Output) {
this.id = value
}
/**
* @param value The storage account identity.
*/
@JvmName("podchervdfygkter")
public suspend fun identity(`value`: Output) {
this.identity = value
}
/**
* @param value The type of the storage account.
*/
@JvmName("nkkvjbesuucrelpc")
public suspend fun type(`value`: Output>) {
this.type = value
}
/**
* @param value The ID of the storage account resource. Media Services relies on tables and queues as well as blobs, so the primary storage account must be a Standard Storage account (either Microsoft.ClassicStorage or Microsoft.Storage). Blob only storage accounts can be added as secondary storage accounts.
*/
@JvmName("qssxspwcjmtydgks")
public suspend fun id(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.id = mapped
}
/**
* @param value The storage account identity.
*/
@JvmName("qgxsvwxiirlixsmx")
public suspend fun identity(`value`: ResourceIdentityArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.identity = mapped
}
/**
* @param argument The storage account identity.
*/
@JvmName("fiyqrcobxxtdcico")
public suspend fun identity(argument: suspend ResourceIdentityArgsBuilder.() -> Unit) {
val toBeMapped = ResourceIdentityArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.identity = mapped
}
/**
* @param value The type of the storage account.
*/
@JvmName("minsdmoykfrbcjkk")
public suspend fun type(`value`: Either) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.type = mapped
}
/**
* @param value The type of the storage account.
*/
@JvmName("lpdchelvhgjovhxd")
public fun type(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.type = mapped
}
/**
* @param value The type of the storage account.
*/
@JvmName("mcpcqpsmiawijsse")
public fun type(`value`: StorageAccountType) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.type = mapped
}
internal fun build(): StorageAccountArgs = StorageAccountArgs(
id = id,
identity = identity,
type = type ?: throw PulumiNullFieldException("type"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy