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

com.pulumi.gcp.compute.kotlin.inputs.PerInstanceConfigPreservedStateExternalIpArgs.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.PerInstanceConfigPreservedStateExternalIpArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property autoDelete These stateful IPs will never be released during autohealing, update or VM instance recreate operations. This flag is used to configure if the IP reservation should be deleted after it is no longer used by the group, e.g. when the given instance or the whole group is deleted.
 * Default value is `NEVER`.
 * Possible values are: `NEVER`, `ON_PERMANENT_INSTANCE_DELETION`.
 * @property interfaceName The identifier for this object. Format specified above.
 * @property ipAddress Ip address representation
 * Structure is documented below.
 */
public data class PerInstanceConfigPreservedStateExternalIpArgs(
    public val autoDelete: Output? = null,
    public val interfaceName: Output,
    public val ipAddress: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.compute.inputs.PerInstanceConfigPreservedStateExternalIpArgs = com.pulumi.gcp.compute.inputs.PerInstanceConfigPreservedStateExternalIpArgs.builder()
        .autoDelete(autoDelete?.applyValue({ args0 -> args0 }))
        .interfaceName(interfaceName.applyValue({ args0 -> args0 }))
        .ipAddress(ipAddress?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [PerInstanceConfigPreservedStateExternalIpArgs].
 */
@PulumiTagMarker
public class PerInstanceConfigPreservedStateExternalIpArgsBuilder internal constructor() {
    private var autoDelete: Output? = null

    private var interfaceName: Output? = null

    private var ipAddress: Output? = null

    /**
     * @param value These stateful IPs will never be released during autohealing, update or VM instance recreate operations. This flag is used to configure if the IP reservation should be deleted after it is no longer used by the group, e.g. when the given instance or the whole group is deleted.
     * Default value is `NEVER`.
     * Possible values are: `NEVER`, `ON_PERMANENT_INSTANCE_DELETION`.
     */
    @JvmName("rfqppagdvuwstgpi")
    public suspend fun autoDelete(`value`: Output) {
        this.autoDelete = value
    }

    /**
     * @param value The identifier for this object. Format specified above.
     */
    @JvmName("eslifnakhucbnwdb")
    public suspend fun interfaceName(`value`: Output) {
        this.interfaceName = value
    }

    /**
     * @param value Ip address representation
     * Structure is documented below.
     */
    @JvmName("llwtufetkplbxlvt")
    public suspend fun ipAddress(`value`: Output) {
        this.ipAddress = value
    }

    /**
     * @param value These stateful IPs will never be released during autohealing, update or VM instance recreate operations. This flag is used to configure if the IP reservation should be deleted after it is no longer used by the group, e.g. when the given instance or the whole group is deleted.
     * Default value is `NEVER`.
     * Possible values are: `NEVER`, `ON_PERMANENT_INSTANCE_DELETION`.
     */
    @JvmName("xnplpktqeiryljmb")
    public suspend fun autoDelete(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.autoDelete = mapped
    }

    /**
     * @param value The identifier for this object. Format specified above.
     */
    @JvmName("domgqjxqtyvhbmnv")
    public suspend fun interfaceName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.interfaceName = mapped
    }

    /**
     * @param value Ip address representation
     * Structure is documented below.
     */
    @JvmName("voejivfumuicwsyl")
    public suspend fun ipAddress(`value`: PerInstanceConfigPreservedStateExternalIpIpAddressArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ipAddress = mapped
    }

    /**
     * @param argument Ip address representation
     * Structure is documented below.
     */
    @JvmName("sspymsxnmkeoofqf")
    public suspend fun ipAddress(argument: suspend PerInstanceConfigPreservedStateExternalIpIpAddressArgsBuilder.() -> Unit) {
        val toBeMapped = PerInstanceConfigPreservedStateExternalIpIpAddressArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.ipAddress = mapped
    }

    internal fun build(): PerInstanceConfigPreservedStateExternalIpArgs =
        PerInstanceConfigPreservedStateExternalIpArgs(
            autoDelete = autoDelete,
            interfaceName = interfaceName ?: throw PulumiNullFieldException("interfaceName"),
            ipAddress = ipAddress,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy