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

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

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

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

    /**
     * @param value Ip address representation
     * Structure is documented below.
     */
    @JvmName("utfcuvugyslbqmyh")
    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("ifukrgjyoodgpggb")
    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("yftgodhaocioujxt")
    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("woosgpyqowacpbxa")
    public suspend fun ipAddress(`value`: RegionPerInstanceConfigPreservedStateExternalIpIpAddressArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ipAddress = mapped
    }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy