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

com.pulumi.gcp.container.kotlin.inputs.NodePoolNodeConfigLinuxNodeConfigArgs.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.container.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.container.inputs.NodePoolNodeConfigLinuxNodeConfigArgs.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 cgroupMode cgroupMode specifies the cgroup mode to be used on the node.
 * @property sysctls The Linux kernel parameters to be applied to the nodes and all pods running on the nodes.
 */
public data class NodePoolNodeConfigLinuxNodeConfigArgs(
    public val cgroupMode: Output? = null,
    public val sysctls: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.container.inputs.NodePoolNodeConfigLinuxNodeConfigArgs =
        com.pulumi.gcp.container.inputs.NodePoolNodeConfigLinuxNodeConfigArgs.builder()
            .cgroupMode(cgroupMode?.applyValue({ args0 -> args0 }))
            .sysctls(
                sysctls?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [NodePoolNodeConfigLinuxNodeConfigArgs].
 */
@PulumiTagMarker
public class NodePoolNodeConfigLinuxNodeConfigArgsBuilder internal constructor() {
    private var cgroupMode: Output? = null

    private var sysctls: Output>? = null

    /**
     * @param value cgroupMode specifies the cgroup mode to be used on the node.
     */
    @JvmName("nkdgoalpwlgoosxr")
    public suspend fun cgroupMode(`value`: Output) {
        this.cgroupMode = value
    }

    /**
     * @param value The Linux kernel parameters to be applied to the nodes and all pods running on the nodes.
     */
    @JvmName("rpiunuoejwybxgjm")
    public suspend fun sysctls(`value`: Output>) {
        this.sysctls = value
    }

    /**
     * @param value cgroupMode specifies the cgroup mode to be used on the node.
     */
    @JvmName("dlnaovyifyajiwgi")
    public suspend fun cgroupMode(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cgroupMode = mapped
    }

    /**
     * @param value The Linux kernel parameters to be applied to the nodes and all pods running on the nodes.
     */
    @JvmName("ihrawwfhwrjgsubl")
    public suspend fun sysctls(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sysctls = mapped
    }

    /**
     * @param values The Linux kernel parameters to be applied to the nodes and all pods running on the nodes.
     */
    @JvmName("uhmsfguydwqirdud")
    public fun sysctls(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sysctls = mapped
    }

    internal fun build(): NodePoolNodeConfigLinuxNodeConfigArgs =
        NodePoolNodeConfigLinuxNodeConfigArgs(
            cgroupMode = cgroupMode,
            sysctls = sysctls,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy