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

com.pulumi.gcp.compute.kotlin.inputs.RegionInstanceGroupManagerStatefulInternalIpArgs.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.12.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.RegionInstanceGroupManagerStatefulInternalIpArgs.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 RegionInstanceGroupManagerStatefulInternalIpArgs(
    public val deleteRule: Output? = null,
    public val interfaceName: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.compute.inputs.RegionInstanceGroupManagerStatefulInternalIpArgs =
        com.pulumi.gcp.compute.inputs.RegionInstanceGroupManagerStatefulInternalIpArgs.builder()
            .deleteRule(deleteRule?.applyValue({ args0 -> args0 }))
            .interfaceName(interfaceName?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [RegionInstanceGroupManagerStatefulInternalIpArgs].
 */
@PulumiTagMarker
public class RegionInstanceGroupManagerStatefulInternalIpArgsBuilder 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("lyqxyobwlsfkiopc")
    public suspend fun deleteRule(`value`: Output) {
        this.deleteRule = value
    }

    /**
     * @param value , The network interface name of the internal Ip. Possible value: `nic0`.
     */
    @JvmName("npswmbuokinrybcm")
    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("afqakrgspswferwk")
    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("jovviwgfqmlrtxpq")
    public suspend fun interfaceName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.interfaceName = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy