![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.batch.kotlin.inputs.PoolDataDiskArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-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.azure.batch.kotlin.inputs
import com.pulumi.azure.batch.inputs.PoolDataDiskArgs.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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property caching Values are: "none" - The caching mode for the disk is not enabled. "readOnly" - The caching mode for the disk is read only. "readWrite" - The caching mode for the disk is read and write. For information about the caching options see: . Possible values are `None`, `ReadOnly` and `ReadWrite`. Defaults to `ReadOnly`.
* @property diskSizeGb The initial disk size in GB when creating new data disk.
* @property lun The lun is used to uniquely identify each data disk. If attaching multiple disks, each should have a distinct lun. The value must be between 0 and 63, inclusive.
* @property storageAccountType The storage account type to be used for the data disk. Values are: Possible values are `Standard_LRS` - The data disk should use standard locally redundant storage. `Premium_LRS` - The data disk should use premium locally redundant storage. Defaults to `Standard_LRS`.
*/
public data class PoolDataDiskArgs(
public val caching: Output? = null,
public val diskSizeGb: Output,
public val lun: Output,
public val storageAccountType: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.batch.inputs.PoolDataDiskArgs =
com.pulumi.azure.batch.inputs.PoolDataDiskArgs.builder()
.caching(caching?.applyValue({ args0 -> args0 }))
.diskSizeGb(diskSizeGb.applyValue({ args0 -> args0 }))
.lun(lun.applyValue({ args0 -> args0 }))
.storageAccountType(storageAccountType?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [PoolDataDiskArgs].
*/
@PulumiTagMarker
public class PoolDataDiskArgsBuilder internal constructor() {
private var caching: Output? = null
private var diskSizeGb: Output? = null
private var lun: Output? = null
private var storageAccountType: Output? = null
/**
* @param value Values are: "none" - The caching mode for the disk is not enabled. "readOnly" - The caching mode for the disk is read only. "readWrite" - The caching mode for the disk is read and write. For information about the caching options see: . Possible values are `None`, `ReadOnly` and `ReadWrite`. Defaults to `ReadOnly`.
*/
@JvmName("jmnrxxmltgrspchm")
public suspend fun caching(`value`: Output) {
this.caching = value
}
/**
* @param value The initial disk size in GB when creating new data disk.
*/
@JvmName("drlavievsrsjoslo")
public suspend fun diskSizeGb(`value`: Output) {
this.diskSizeGb = value
}
/**
* @param value The lun is used to uniquely identify each data disk. If attaching multiple disks, each should have a distinct lun. The value must be between 0 and 63, inclusive.
*/
@JvmName("aeneibfiyexdfwsd")
public suspend fun lun(`value`: Output) {
this.lun = value
}
/**
* @param value The storage account type to be used for the data disk. Values are: Possible values are `Standard_LRS` - The data disk should use standard locally redundant storage. `Premium_LRS` - The data disk should use premium locally redundant storage. Defaults to `Standard_LRS`.
*/
@JvmName("ejmsqqeerrmqcfvx")
public suspend fun storageAccountType(`value`: Output) {
this.storageAccountType = value
}
/**
* @param value Values are: "none" - The caching mode for the disk is not enabled. "readOnly" - The caching mode for the disk is read only. "readWrite" - The caching mode for the disk is read and write. For information about the caching options see: . Possible values are `None`, `ReadOnly` and `ReadWrite`. Defaults to `ReadOnly`.
*/
@JvmName("tjcalheniegmfqmf")
public suspend fun caching(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.caching = mapped
}
/**
* @param value The initial disk size in GB when creating new data disk.
*/
@JvmName("ajjynresvsyoswyw")
public suspend fun diskSizeGb(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.diskSizeGb = mapped
}
/**
* @param value The lun is used to uniquely identify each data disk. If attaching multiple disks, each should have a distinct lun. The value must be between 0 and 63, inclusive.
*/
@JvmName("hhujkuovovfujmjb")
public suspend fun lun(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.lun = mapped
}
/**
* @param value The storage account type to be used for the data disk. Values are: Possible values are `Standard_LRS` - The data disk should use standard locally redundant storage. `Premium_LRS` - The data disk should use premium locally redundant storage. Defaults to `Standard_LRS`.
*/
@JvmName("krljqniabprrbqxy")
public suspend fun storageAccountType(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.storageAccountType = mapped
}
internal fun build(): PoolDataDiskArgs = PoolDataDiskArgs(
caching = caching,
diskSizeGb = diskSizeGb ?: throw PulumiNullFieldException("diskSizeGb"),
lun = lun ?: throw PulumiNullFieldException("lun"),
storageAccountType = storageAccountType,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy