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

com.pulumi.gcp.edgecontainer.kotlin.inputs.NodePoolNodeConfigArgs.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.edgecontainer.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.edgecontainer.inputs.NodePoolNodeConfigArgs.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 Kubernetes node labels"
 */
public data class NodePoolNodeConfigArgs(
    public val labels: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.edgecontainer.inputs.NodePoolNodeConfigArgs =
        com.pulumi.gcp.edgecontainer.inputs.NodePoolNodeConfigArgs.builder()
            .labels(
                labels?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

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

    /**
     * @param value "The Kubernetes node labels"
     */
    @JvmName("xehbawfjbyrncgmb")
    public suspend fun labels(`value`: Output>) {
        this.labels = value
    }

    /**
     * @param value "The Kubernetes node labels"
     */
    @JvmName("iwollphqsqjthnbf")
    public suspend fun labels(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.labels = mapped
    }

    /**
     * @param values "The Kubernetes node labels"
     */
    @JvmName("bbfoqhpchmbcefls")
    public fun labels(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.labels = mapped
    }

    internal fun build(): NodePoolNodeConfigArgs = NodePoolNodeConfigArgs(
        labels = labels,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy