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

com.pulumi.gcp.compute.kotlin.inputs.InstanceGroupManagerAllInstancesConfigArgs.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.InstanceGroupManagerAllInstancesConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property labels , The label key-value pairs that you want to patch onto the instance.
 * - - -
 * @property metadata , The metadata key-value pairs that you want to patch onto the instance. For more information, see [Project and instance metadata](https://cloud.google.com/compute/docs/metadata#project_and_instance_metadata).
 */
public data class InstanceGroupManagerAllInstancesConfigArgs(
    public val labels: Output>? = null,
    public val metadata: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.compute.inputs.InstanceGroupManagerAllInstancesConfigArgs =
        com.pulumi.gcp.compute.inputs.InstanceGroupManagerAllInstancesConfigArgs.builder()
            .labels(labels?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .metadata(
                metadata?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

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

    private var metadata: Output>? = null

    /**
     * @param value , The label key-value pairs that you want to patch onto the instance.
     * - - -
     */
    @JvmName("rafdfupkglvoborl")
    public suspend fun labels(`value`: Output>) {
        this.labels = value
    }

    /**
     * @param value , The metadata key-value pairs that you want to patch onto the instance. For more information, see [Project and instance metadata](https://cloud.google.com/compute/docs/metadata#project_and_instance_metadata).
     */
    @JvmName("hwyrgcsbujpsekmi")
    public suspend fun metadata(`value`: Output>) {
        this.metadata = value
    }

    /**
     * @param value , The label key-value pairs that you want to patch onto the instance.
     * - - -
     */
    @JvmName("rykdkhcguoxiexth")
    public suspend fun labels(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.labels = mapped
    }

    /**
     * @param values , The label key-value pairs that you want to patch onto the instance.
     * - - -
     */
    @JvmName("ggehqjepacdhwsbv")
    public fun labels(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.labels = mapped
    }

    /**
     * @param value , The metadata key-value pairs that you want to patch onto the instance. For more information, see [Project and instance metadata](https://cloud.google.com/compute/docs/metadata#project_and_instance_metadata).
     */
    @JvmName("tawmvjcyxuvgfoqm")
    public suspend fun metadata(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.metadata = mapped
    }

    /**
     * @param values , The metadata key-value pairs that you want to patch onto the instance. For more information, see [Project and instance metadata](https://cloud.google.com/compute/docs/metadata#project_and_instance_metadata).
     */
    @JvmName("ovwvootqodowqadh")
    public fun metadata(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.metadata = mapped
    }

    internal fun build(): InstanceGroupManagerAllInstancesConfigArgs =
        InstanceGroupManagerAllInstancesConfigArgs(
            labels = labels,
            metadata = metadata,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy