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

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.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("dneorcfjgfpsdyde")
    public suspend fun disks(`value`: Output>) {
        this.disks = value
    }

    @JvmName("fmqugithkwwqunhq")
    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("aartghbpygigbadg")
    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("upgrwuwaykgkgcyf")
    public suspend fun externalIps(`value`: Output>) {
        this.externalIps = value
    }

    @JvmName("abmujdwcalymmcja")
    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("lhawngyyhxkejjfr")
    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("gkruxxvgwyqfkxhh")
    public suspend fun internalIps(`value`: Output>) {
        this.internalIps = value
    }

    @JvmName("bkgrkgdjmurumsqy")
    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("awmqeulvvlusvsma")
    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("vrlnqskybmlusiof")
    public suspend fun metadata(`value`: Output>) {
        this.metadata = value
    }

    /**
     * @param value Stateful disks for the instance.
     * Structure is documented below.
     */
    @JvmName("haibjbeaunorksde")
    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("kyhhllmkhrtmuqlq")
    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("pgvhndoholfvcfvp")
    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("bnxvsaicpslxpdup")
    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("ybyfbbvebudtcdkn")
    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("ugguguburgvwaihq")
    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("fpdvbihkhsvdfoky")
    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("vtyghhqucxqdwrur")
    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("prrrhnvgjgiuhudi")
    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("qhnqjatsnqysjqxf")
    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("lubwaqwypnnmgxdl")
    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("thpdelrsphedfjri")
    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("jrdmvdugjxyxtxuy")
    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("fcllbxpuhruoadyu")
    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("mkreiilkkhltdyry")
    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("gpvagftoimcswipq")
    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("yeycvempcmjomwxs")
    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 - 2024 Weber Informatics LLC | Privacy Policy