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

com.pulumi.gcp.osconfig.kotlin.inputs.GuestPoliciesAssignmentGroupLabelArgs.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.osconfig.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.osconfig.inputs.GuestPoliciesAssignmentGroupLabelArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property labels Google Compute Engine instance labels that must be present for an instance to be included in this assignment group.
 */
public data class GuestPoliciesAssignmentGroupLabelArgs(
    public val labels: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.osconfig.inputs.GuestPoliciesAssignmentGroupLabelArgs =
        com.pulumi.gcp.osconfig.inputs.GuestPoliciesAssignmentGroupLabelArgs.builder()
            .labels(
                labels.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

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

    /**
     * @param value Google Compute Engine instance labels that must be present for an instance to be included in this assignment group.
     */
    @JvmName("paedwmtnujeybgkn")
    public suspend fun labels(`value`: Output>) {
        this.labels = value
    }

    /**
     * @param value Google Compute Engine instance labels that must be present for an instance to be included in this assignment group.
     */
    @JvmName("rmiseakndwopejab")
    public suspend fun labels(`value`: Map) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.labels = mapped
    }

    /**
     * @param values Google Compute Engine instance labels that must be present for an instance to be included in this assignment group.
     */
    @JvmName("igjnmjfrxbvsqfgp")
    public fun labels(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.labels = mapped
    }

    internal fun build(): GuestPoliciesAssignmentGroupLabelArgs =
        GuestPoliciesAssignmentGroupLabelArgs(
            labels = labels ?: throw PulumiNullFieldException("labels"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy