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

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

@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.RegionPerInstanceConfigPreservedStateArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property disks Stateful disks for the instance.
 * Structure is documented below.
 * @property externalIps Preserved external IPs defined for this instance. This map is keyed with the name of the network interface.
 * Structure is documented below.
 * @property internalIps Preserved internal IPs defined for this instance. This map is keyed with the name of the network interface.
 * Structure is documented below.
 * @property metadata Preserved metadata defined for this instance. This is a list of key->value pairs.
 */
public data class RegionPerInstanceConfigPreservedStateArgs(
    public val disks: Output>? = null,
    public val externalIps: Output>? = null,
    public val internalIps: Output>? = null,
    public val metadata: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.compute.inputs.RegionPerInstanceConfigPreservedStateArgs =
        com.pulumi.gcp.compute.inputs.RegionPerInstanceConfigPreservedStateArgs.builder()
            .disks(disks?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .externalIps(
                externalIps?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .internalIps(
                internalIps?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .metadata(
                metadata?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [RegionPerInstanceConfigPreservedStateArgs].
 */
@PulumiTagMarker
public class RegionPerInstanceConfigPreservedStateArgsBuilder internal constructor() {
    private var disks: Output>? = null

    private var externalIps: Output>? = null

    private var internalIps: Output>? = null

    private var metadata: Output>? = null

    /**
     * @param value Stateful disks for the instance.
     * Structure is documented below.
     */
    @JvmName("uncuyffrslomocvj")
    public suspend fun disks(`value`: Output>) {
        this.disks = value
    }

    @JvmName("wctyjlmaptfmjflb")
    public suspend fun disks(vararg values: Output) {
        this.disks = Output.all(values.asList())
    }

    /**
     * @param values Stateful disks for the instance.
     * Structure is documented below.
     */
    @JvmName("ttvcgffxysiewwak")
    public suspend fun disks(values: List>) {
        this.disks = Output.all(values)
    }

    /**
     * @param value Preserved external IPs defined for this instance. This map is keyed with the name of the network interface.
     * Structure is documented below.
     */
    @JvmName("jpomanqxyfrqmpyb")
    public suspend fun externalIps(`value`: Output>) {
        this.externalIps = value
    }

    @JvmName("yaklkrwgnnhgytvh")
    public suspend fun externalIps(vararg values: Output) {
        this.externalIps = Output.all(values.asList())
    }

    /**
     * @param values Preserved external IPs defined for this instance. This map is keyed with the name of the network interface.
     * Structure is documented below.
     */
    @JvmName("jyagxmrupxxudhhj")
    public suspend fun externalIps(values: List>) {
        this.externalIps = Output.all(values)
    }

    /**
     * @param value Preserved internal IPs defined for this instance. This map is keyed with the name of the network interface.
     * Structure is documented below.
     */
    @JvmName("wnmjjomwyukrsfrm")
    public suspend fun internalIps(`value`: Output>) {
        this.internalIps = value
    }

    @JvmName("lxojtxwaxwyqftlj")
    public suspend fun internalIps(vararg values: Output) {
        this.internalIps = Output.all(values.asList())
    }

    /**
     * @param values Preserved internal IPs defined for this instance. This map is keyed with the name of the network interface.
     * Structure is documented below.
     */
    @JvmName("arrsmqbajqygtmqn")
    public suspend fun internalIps(values: List>) {
        this.internalIps = Output.all(values)
    }

    /**
     * @param value Preserved metadata defined for this instance. This is a list of key->value pairs.
     */
    @JvmName("qkafyaiopmsokbue")
    public suspend fun metadata(`value`: Output>) {
        this.metadata = value
    }

    /**
     * @param value Stateful disks for the instance.
     * Structure is documented below.
     */
    @JvmName("mmakvotkpdmhsymk")
    public suspend fun disks(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.disks = mapped
    }

    /**
     * @param argument Stateful disks for the instance.
     * Structure is documented below.
     */
    @JvmName("yofouxuojqmpuwde")
    public suspend fun disks(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            RegionPerInstanceConfigPreservedStateDiskArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.disks = mapped
    }

    /**
     * @param argument Stateful disks for the instance.
     * Structure is documented below.
     */
    @JvmName("lnjwlofteuoqntbl")
    public suspend fun disks(vararg argument: suspend RegionPerInstanceConfigPreservedStateDiskArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            RegionPerInstanceConfigPreservedStateDiskArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.disks = mapped
    }

    /**
     * @param argument Stateful disks for the instance.
     * Structure is documented below.
     */
    @JvmName("nqpqtmfgylraqxrp")
    public suspend fun disks(argument: suspend RegionPerInstanceConfigPreservedStateDiskArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            RegionPerInstanceConfigPreservedStateDiskArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.disks = mapped
    }

    /**
     * @param values Stateful disks for the instance.
     * Structure is documented below.
     */
    @JvmName("cverinbmmtucrfqi")
    public suspend fun disks(vararg values: RegionPerInstanceConfigPreservedStateDiskArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.disks = mapped
    }

    /**
     * @param value Preserved external IPs defined for this instance. This map is keyed with the name of the network interface.
     * Structure is documented below.
     */
    @JvmName("axookaplqcieunmf")
    public suspend fun externalIps(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.externalIps = mapped
    }

    /**
     * @param argument Preserved external IPs defined for this instance. This map is keyed with the name of the network interface.
     * Structure is documented below.
     */
    @JvmName("hrssqmogpkudplie")
    public suspend fun externalIps(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            RegionPerInstanceConfigPreservedStateExternalIpArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.externalIps = mapped
    }

    /**
     * @param argument Preserved external IPs defined for this instance. This map is keyed with the name of the network interface.
     * Structure is documented below.
     */
    @JvmName("xfcgccxnvaagljru")
    public suspend fun externalIps(vararg argument: suspend RegionPerInstanceConfigPreservedStateExternalIpArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            RegionPerInstanceConfigPreservedStateExternalIpArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.externalIps = mapped
    }

    /**
     * @param argument Preserved external IPs defined for this instance. This map is keyed with the name of the network interface.
     * Structure is documented below.
     */
    @JvmName("dpcxlrijnjfpvjbu")
    public suspend fun externalIps(argument: suspend RegionPerInstanceConfigPreservedStateExternalIpArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                RegionPerInstanceConfigPreservedStateExternalIpArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.externalIps = mapped
    }

    /**
     * @param values Preserved external IPs defined for this instance. This map is keyed with the name of the network interface.
     * Structure is documented below.
     */
    @JvmName("cynnbhrvjpfrkyqs")
    public suspend fun externalIps(vararg values: RegionPerInstanceConfigPreservedStateExternalIpArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.externalIps = mapped
    }

    /**
     * @param value Preserved internal IPs defined for this instance. This map is keyed with the name of the network interface.
     * Structure is documented below.
     */
    @JvmName("qteupfehkpwjljvg")
    public suspend fun internalIps(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.internalIps = mapped
    }

    /**
     * @param argument Preserved internal IPs defined for this instance. This map is keyed with the name of the network interface.
     * Structure is documented below.
     */
    @JvmName("skwveexsfodlksep")
    public suspend fun internalIps(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            RegionPerInstanceConfigPreservedStateInternalIpArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.internalIps = mapped
    }

    /**
     * @param argument Preserved internal IPs defined for this instance. This map is keyed with the name of the network interface.
     * Structure is documented below.
     */
    @JvmName("grghjaoismfxrptn")
    public suspend fun internalIps(vararg argument: suspend RegionPerInstanceConfigPreservedStateInternalIpArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            RegionPerInstanceConfigPreservedStateInternalIpArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.internalIps = mapped
    }

    /**
     * @param argument Preserved internal IPs defined for this instance. This map is keyed with the name of the network interface.
     * Structure is documented below.
     */
    @JvmName("fkxuvtluldjbncvv")
    public suspend fun internalIps(argument: suspend RegionPerInstanceConfigPreservedStateInternalIpArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                RegionPerInstanceConfigPreservedStateInternalIpArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.internalIps = mapped
    }

    /**
     * @param values Preserved internal IPs defined for this instance. This map is keyed with the name of the network interface.
     * Structure is documented below.
     */
    @JvmName("rvtsnykacjcvwxlo")
    public suspend fun internalIps(vararg values: RegionPerInstanceConfigPreservedStateInternalIpArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.internalIps = mapped
    }

    /**
     * @param value Preserved metadata defined for this instance. This is a list of key->value pairs.
     */
    @JvmName("aemymqfxosqwhywh")
    public suspend fun metadata(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.metadata = mapped
    }

    /**
     * @param values Preserved metadata defined for this instance. This is a list of key->value pairs.
     */
    @JvmName("pbgfbxuixbbsuslo")
    public fun metadata(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.metadata = mapped
    }

    internal fun build(): RegionPerInstanceConfigPreservedStateArgs =
        RegionPerInstanceConfigPreservedStateArgs(
            disks = disks,
            externalIps = externalIps,
            internalIps = internalIps,
            metadata = metadata,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy