com.pulumi.azurenative.compute.kotlin.inputs.DiskSkuArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.compute.kotlin.inputs
import com.pulumi.azurenative.compute.inputs.DiskSkuArgs.builder
import com.pulumi.azurenative.compute.kotlin.enums.DiskStorageAccountTypes
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.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* The disks sku name. Can be Standard_LRS, Premium_LRS, StandardSSD_LRS, UltraSSD_LRS, Premium_ZRS, StandardSSD_ZRS, or PremiumV2_LRS.
* @property name The sku name.
*/
public data class DiskSkuArgs(
public val name: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.compute.inputs.DiskSkuArgs =
com.pulumi.azurenative.compute.inputs.DiskSkuArgs.builder()
.name(
name?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [DiskSkuArgs].
*/
@PulumiTagMarker
public class DiskSkuArgsBuilder internal constructor() {
private var name: Output>? = null
/**
* @param value The sku name.
*/
@JvmName("crgehnaifmhulfwo")
public suspend fun name(`value`: Output>) {
this.name = value
}
/**
* @param value The sku name.
*/
@JvmName("gjdmjxmoneeklojc")
public suspend fun name(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value The sku name.
*/
@JvmName("nlatqbgyftplayvp")
public fun name(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value The sku name.
*/
@JvmName("rqjsrrgcmukkhmbn")
public fun name(`value`: DiskStorageAccountTypes) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
internal fun build(): DiskSkuArgs = DiskSkuArgs(
name = name,
)
}