com.pulumi.gcp.compute.kotlin.inputs.InstanceGroupManagerStatefulExternalIpArgs.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.InstanceGroupManagerStatefulExternalIpArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
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 external ip when the VM instance is deleted. The available options are `NEVER` and `ON_PERMANENT_INSTANCE_DELETION`. `NEVER` - detach the ip when the VM is deleted, but do not delete the ip. `ON_PERMANENT_INSTANCE_DELETION` will delete the external ip when the VM is permanently deleted from the instance group.
* @property interfaceName , The network interface name of the external Ip. Possible value: `nic0`
*/
public data class InstanceGroupManagerStatefulExternalIpArgs(
public val deleteRule: Output? = null,
public val interfaceName: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.compute.inputs.InstanceGroupManagerStatefulExternalIpArgs =
com.pulumi.gcp.compute.inputs.InstanceGroupManagerStatefulExternalIpArgs.builder()
.deleteRule(deleteRule?.applyValue({ args0 -> args0 }))
.interfaceName(interfaceName?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [InstanceGroupManagerStatefulExternalIpArgs].
*/
@PulumiTagMarker
public class InstanceGroupManagerStatefulExternalIpArgsBuilder internal constructor() {
private var deleteRule: Output? = null
private var interfaceName: Output? = null
/**
* @param value , A value that prescribes what should happen to the external ip when the VM instance is deleted. The available options are `NEVER` and `ON_PERMANENT_INSTANCE_DELETION`. `NEVER` - detach the ip when the VM is deleted, but do not delete the ip. `ON_PERMANENT_INSTANCE_DELETION` will delete the external ip when the VM is permanently deleted from the instance group.
*/
@JvmName("adwfuqldrmpevjrx")
public suspend fun deleteRule(`value`: Output) {
this.deleteRule = value
}
/**
* @param value , The network interface name of the external Ip. Possible value: `nic0`
*/
@JvmName("kjtohhtdpyroamwl")
public suspend fun interfaceName(`value`: Output) {
this.interfaceName = value
}
/**
* @param value , A value that prescribes what should happen to the external ip when the VM instance is deleted. The available options are `NEVER` and `ON_PERMANENT_INSTANCE_DELETION`. `NEVER` - detach the ip when the VM is deleted, but do not delete the ip. `ON_PERMANENT_INSTANCE_DELETION` will delete the external ip when the VM is permanently deleted from the instance group.
*/
@JvmName("mtgwphyhruujxupj")
public suspend fun deleteRule(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.deleteRule = mapped
}
/**
* @param value , The network interface name of the external Ip. Possible value: `nic0`
*/
@JvmName("drxhadrwbkxfxlij")
public suspend fun interfaceName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.interfaceName = mapped
}
internal fun build(): InstanceGroupManagerStatefulExternalIpArgs =
InstanceGroupManagerStatefulExternalIpArgs(
deleteRule = deleteRule,
interfaceName = interfaceName,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy