com.pulumi.gcp.compute.kotlin.inputs.InstanceGroupManagerStatefulDiskArgs.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.InstanceGroupManagerStatefulDiskArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property deleteRule , A value that prescribes what should happen to the stateful disk when the VM instance is deleted. The available options are `NEVER` and `ON_PERMANENT_INSTANCE_DELETION`. `NEVER` - detach the disk when the VM is deleted, but do not delete the disk. `ON_PERMANENT_INSTANCE_DELETION` will delete the stateful disk when the VM is permanently deleted from the instance group. The default is `NEVER`.
* @property deviceName , The device name of the disk to be attached.
*/
public data class InstanceGroupManagerStatefulDiskArgs(
public val deleteRule: Output? = null,
public val deviceName: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.compute.inputs.InstanceGroupManagerStatefulDiskArgs =
com.pulumi.gcp.compute.inputs.InstanceGroupManagerStatefulDiskArgs.builder()
.deleteRule(deleteRule?.applyValue({ args0 -> args0 }))
.deviceName(deviceName.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [InstanceGroupManagerStatefulDiskArgs].
*/
@PulumiTagMarker
public class InstanceGroupManagerStatefulDiskArgsBuilder internal constructor() {
private var deleteRule: Output? = null
private var deviceName: Output? = null
/**
* @param value , A value that prescribes what should happen to the stateful disk when the VM instance is deleted. The available options are `NEVER` and `ON_PERMANENT_INSTANCE_DELETION`. `NEVER` - detach the disk when the VM is deleted, but do not delete the disk. `ON_PERMANENT_INSTANCE_DELETION` will delete the stateful disk when the VM is permanently deleted from the instance group. The default is `NEVER`.
*/
@JvmName("ckspcmalenmygkkk")
public suspend fun deleteRule(`value`: Output) {
this.deleteRule = value
}
/**
* @param value , The device name of the disk to be attached.
*/
@JvmName("qcrvxgifvxboukxl")
public suspend fun deviceName(`value`: Output) {
this.deviceName = value
}
/**
* @param value , A value that prescribes what should happen to the stateful disk when the VM instance is deleted. The available options are `NEVER` and `ON_PERMANENT_INSTANCE_DELETION`. `NEVER` - detach the disk when the VM is deleted, but do not delete the disk. `ON_PERMANENT_INSTANCE_DELETION` will delete the stateful disk when the VM is permanently deleted from the instance group. The default is `NEVER`.
*/
@JvmName("sjgawafmvdqnvyad")
public suspend fun deleteRule(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.deleteRule = mapped
}
/**
* @param value , The device name of the disk to be attached.
*/
@JvmName("jcnkpwiwxvhfqwyx")
public suspend fun deviceName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.deviceName = mapped
}
internal fun build(): InstanceGroupManagerStatefulDiskArgs = InstanceGroupManagerStatefulDiskArgs(
deleteRule = deleteRule,
deviceName = deviceName ?: throw PulumiNullFieldException("deviceName"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy