All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.compute.kotlin.inputs.InstanceGroupManagerStatefulInternalIpArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.10.0.0
Show newest version
@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.InstanceGroupManagerStatefulInternalIpArgs.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 internal 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 internal ip when the VM is permanently deleted from the instance group.
 * @property interfaceName , The network interface name of the internal Ip. Possible value: `nic0`
 */
public data class InstanceGroupManagerStatefulInternalIpArgs(
    public val deleteRule: Output? = null,
    public val interfaceName: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.compute.inputs.InstanceGroupManagerStatefulInternalIpArgs =
        com.pulumi.gcp.compute.inputs.InstanceGroupManagerStatefulInternalIpArgs.builder()
            .deleteRule(deleteRule?.applyValue({ args0 -> args0 }))
            .interfaceName(interfaceName?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [InstanceGroupManagerStatefulInternalIpArgs].
 */
@PulumiTagMarker
public class InstanceGroupManagerStatefulInternalIpArgsBuilder internal constructor() {
    private var deleteRule: Output? = null

    private var interfaceName: Output? = null

    /**
     * @param value , A value that prescribes what should happen to the internal 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 internal ip when the VM is permanently deleted from the instance group.
     */
    @JvmName("igvuwriwiapsucnx")
    public suspend fun deleteRule(`value`: Output) {
        this.deleteRule = value
    }

    /**
     * @param value , The network interface name of the internal Ip. Possible value: `nic0`
     */
    @JvmName("hstiihakpeihqifm")
    public suspend fun interfaceName(`value`: Output) {
        this.interfaceName = value
    }

    /**
     * @param value , A value that prescribes what should happen to the internal 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 internal ip when the VM is permanently deleted from the instance group.
     */
    @JvmName("dgrhfixhcdedhsyi")
    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 internal Ip. Possible value: `nic0`
     */
    @JvmName("stwhretdlrvwadpg")
    public suspend fun interfaceName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.interfaceName = mapped
    }

    internal fun build(): InstanceGroupManagerStatefulInternalIpArgs =
        InstanceGroupManagerStatefulInternalIpArgs(
            deleteRule = deleteRule,
            interfaceName = interfaceName,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy