com.pulumi.gcp.compute.kotlin.inputs.InstanceScratchDiskArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.compute.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.compute.inputs.InstanceScratchDiskArgs.builder
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 deviceName Name with which the attached disk is accessible under /dev/disk/by-id/
* @property interface The disk interface to use for attaching this disk; either SCSI or NVME.
* @property size The size of the disk in gigabytes. One of 375 or 3000.
*/
public data class InstanceScratchDiskArgs(
public val deviceName: Output? = null,
public val `interface`: Output,
public val size: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.compute.inputs.InstanceScratchDiskArgs =
com.pulumi.gcp.compute.inputs.InstanceScratchDiskArgs.builder()
.deviceName(deviceName?.applyValue({ args0 -> args0 }))
.interface_(`interface`.applyValue({ args0 -> args0 }))
.size(size?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [InstanceScratchDiskArgs].
*/
@PulumiTagMarker
public class InstanceScratchDiskArgsBuilder internal constructor() {
private var deviceName: Output? = null
private var `interface`: Output? = null
private var size: Output? = null
/**
* @param value Name with which the attached disk is accessible under /dev/disk/by-id/
*/
@JvmName("guqqxkgmbymvnqbu")
public suspend fun deviceName(`value`: Output) {
this.deviceName = value
}
/**
* @param value The disk interface to use for attaching this disk; either SCSI or NVME.
*/
@JvmName("jrqfqlhncefrersa")
public suspend fun `interface`(`value`: Output) {
this.`interface` = value
}
/**
* @param value The size of the disk in gigabytes. One of 375 or 3000.
*/
@JvmName("kkcjpsvswntmprkp")
public suspend fun size(`value`: Output) {
this.size = value
}
/**
* @param value Name with which the attached disk is accessible under /dev/disk/by-id/
*/
@JvmName("kmkbatqxtumkubof")
public suspend fun deviceName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.deviceName = mapped
}
/**
* @param value The disk interface to use for attaching this disk; either SCSI or NVME.
*/
@JvmName("gvjdgaahyabiocmn")
public suspend fun `interface`(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.`interface` = mapped
}
/**
* @param value The size of the disk in gigabytes. One of 375 or 3000.
*/
@JvmName("tfnvtlviepqrcxia")
public suspend fun size(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.size = mapped
}
internal fun build(): InstanceScratchDiskArgs = InstanceScratchDiskArgs(
deviceName = deviceName,
`interface` = `interface` ?: throw PulumiNullFieldException("interface"),
size = size,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy