![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.compute.kotlin.inputs.DiffDiskSettingsArgs.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.compute.kotlin.inputs
import com.pulumi.azurenative.compute.inputs.DiffDiskSettingsArgs.builder
import com.pulumi.azurenative.compute.kotlin.enums.DiffDiskOptions
import com.pulumi.azurenative.compute.kotlin.enums.DiffDiskPlacement
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
/**
* Describes the parameters of ephemeral disk settings that can be specified for operating system disk. **Note:** The ephemeral disk settings can only be specified for managed disk.
* @property option Specifies the ephemeral disk settings for operating system disk.
* @property placement Specifies the ephemeral disk placement for operating system disk. Possible values are: **CacheDisk,** **ResourceDisk.** The defaulting behavior is: **CacheDisk** if one is configured for the VM size otherwise **ResourceDisk** is used. Refer to the VM size documentation for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk.
*/
public data class DiffDiskSettingsArgs(
public val option: Output>? = null,
public val placement: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.compute.inputs.DiffDiskSettingsArgs =
com.pulumi.azurenative.compute.inputs.DiffDiskSettingsArgs.builder()
.option(
option?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.placement(
placement?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
).build()
}
/**
* Builder for [DiffDiskSettingsArgs].
*/
@PulumiTagMarker
public class DiffDiskSettingsArgsBuilder internal constructor() {
private var option: Output>? = null
private var placement: Output>? = null
/**
* @param value Specifies the ephemeral disk settings for operating system disk.
*/
@JvmName("kydlwyjigjtyihxq")
public suspend fun option(`value`: Output>) {
this.option = value
}
/**
* @param value Specifies the ephemeral disk placement for operating system disk. Possible values are: **CacheDisk,** **ResourceDisk.** The defaulting behavior is: **CacheDisk** if one is configured for the VM size otherwise **ResourceDisk** is used. Refer to the VM size documentation for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk.
*/
@JvmName("defjikdikyfikpkj")
public suspend fun placement(`value`: Output>) {
this.placement = value
}
/**
* @param value Specifies the ephemeral disk settings for operating system disk.
*/
@JvmName("gdcrcsnaiacoonrh")
public suspend fun option(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.option = mapped
}
/**
* @param value Specifies the ephemeral disk settings for operating system disk.
*/
@JvmName("twuorrrdsglmplju")
public fun option(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.option = mapped
}
/**
* @param value Specifies the ephemeral disk settings for operating system disk.
*/
@JvmName("olmotlfqaifxboaw")
public fun option(`value`: DiffDiskOptions) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.option = mapped
}
/**
* @param value Specifies the ephemeral disk placement for operating system disk. Possible values are: **CacheDisk,** **ResourceDisk.** The defaulting behavior is: **CacheDisk** if one is configured for the VM size otherwise **ResourceDisk** is used. Refer to the VM size documentation for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk.
*/
@JvmName("wqupuwebojfytskp")
public suspend fun placement(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.placement = mapped
}
/**
* @param value Specifies the ephemeral disk placement for operating system disk. Possible values are: **CacheDisk,** **ResourceDisk.** The defaulting behavior is: **CacheDisk** if one is configured for the VM size otherwise **ResourceDisk** is used. Refer to the VM size documentation for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk.
*/
@JvmName("rnyrpklxpdvetvxw")
public fun placement(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.placement = mapped
}
/**
* @param value Specifies the ephemeral disk placement for operating system disk. Possible values are: **CacheDisk,** **ResourceDisk.** The defaulting behavior is: **CacheDisk** if one is configured for the VM size otherwise **ResourceDisk** is used. Refer to the VM size documentation for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk.
*/
@JvmName("pwjftfqwtykwvwpv")
public fun placement(`value`: DiffDiskPlacement) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.placement = mapped
}
internal fun build(): DiffDiskSettingsArgs = DiffDiskSettingsArgs(
option = option,
placement = placement,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy