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

com.pulumi.azure.containerservice.kotlin.inputs.KubernetesClusterDefaultNodePoolLinuxOsConfigArgs.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: 6.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.containerservice.kotlin.inputs

import com.pulumi.azure.containerservice.inputs.KubernetesClusterDefaultNodePoolLinuxOsConfigArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property swapFileSizeMb Specifies the size of the swap file on each node in MB.
 * @property sysctlConfig A `sysctl_config` block as defined below.
 * @property transparentHugePageDefrag specifies the defrag configuration for Transparent Huge Page. Possible values are `always`, `defer`, `defer+madvise`, `madvise` and `never`.
 * @property transparentHugePageEnabled Specifies the Transparent Huge Page enabled configuration. Possible values are `always`, `madvise` and `never`.
 */
public data class KubernetesClusterDefaultNodePoolLinuxOsConfigArgs(
    public val swapFileSizeMb: Output? = null,
    public val sysctlConfig: Output? =
        null,
    public val transparentHugePageDefrag: Output? = null,
    public val transparentHugePageEnabled: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava():
        com.pulumi.azure.containerservice.inputs.KubernetesClusterDefaultNodePoolLinuxOsConfigArgs =
        com.pulumi.azure.containerservice.inputs.KubernetesClusterDefaultNodePoolLinuxOsConfigArgs.builder()
            .swapFileSizeMb(swapFileSizeMb?.applyValue({ args0 -> args0 }))
            .sysctlConfig(sysctlConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .transparentHugePageDefrag(transparentHugePageDefrag?.applyValue({ args0 -> args0 }))
            .transparentHugePageEnabled(transparentHugePageEnabled?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [KubernetesClusterDefaultNodePoolLinuxOsConfigArgs].
 */
@PulumiTagMarker
public class KubernetesClusterDefaultNodePoolLinuxOsConfigArgsBuilder internal constructor() {
    private var swapFileSizeMb: Output? = null

    private var sysctlConfig: Output? =
        null

    private var transparentHugePageDefrag: Output? = null

    private var transparentHugePageEnabled: Output? = null

    /**
     * @param value Specifies the size of the swap file on each node in MB.
     */
    @JvmName("cmvcqlllxbthxlbb")
    public suspend fun swapFileSizeMb(`value`: Output) {
        this.swapFileSizeMb = value
    }

    /**
     * @param value A `sysctl_config` block as defined below.
     */
    @JvmName("vghjsyoqukghlmjh")
    public suspend
    fun sysctlConfig(`value`: Output) {
        this.sysctlConfig = value
    }

    /**
     * @param value specifies the defrag configuration for Transparent Huge Page. Possible values are `always`, `defer`, `defer+madvise`, `madvise` and `never`.
     */
    @JvmName("kxmbdivtdgvcdowq")
    public suspend fun transparentHugePageDefrag(`value`: Output) {
        this.transparentHugePageDefrag = value
    }

    /**
     * @param value Specifies the Transparent Huge Page enabled configuration. Possible values are `always`, `madvise` and `never`.
     */
    @JvmName("drfuavskwucvimyn")
    public suspend fun transparentHugePageEnabled(`value`: Output) {
        this.transparentHugePageEnabled = value
    }

    /**
     * @param value Specifies the size of the swap file on each node in MB.
     */
    @JvmName("mbcbaiiedunyutjx")
    public suspend fun swapFileSizeMb(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.swapFileSizeMb = mapped
    }

    /**
     * @param value A `sysctl_config` block as defined below.
     */
    @JvmName("ogbrhgnlhgrelgqo")
    public suspend
    fun sysctlConfig(`value`: KubernetesClusterDefaultNodePoolLinuxOsConfigSysctlConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sysctlConfig = mapped
    }

    /**
     * @param argument A `sysctl_config` block as defined below.
     */
    @JvmName("cytayiknrrgbwxqg")
    public suspend
    fun sysctlConfig(argument: suspend KubernetesClusterDefaultNodePoolLinuxOsConfigSysctlConfigArgsBuilder.() -> Unit) {
        val toBeMapped =
            KubernetesClusterDefaultNodePoolLinuxOsConfigSysctlConfigArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.sysctlConfig = mapped
    }

    /**
     * @param value specifies the defrag configuration for Transparent Huge Page. Possible values are `always`, `defer`, `defer+madvise`, `madvise` and `never`.
     */
    @JvmName("sfirrsnqphupbuyu")
    public suspend fun transparentHugePageDefrag(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.transparentHugePageDefrag = mapped
    }

    /**
     * @param value Specifies the Transparent Huge Page enabled configuration. Possible values are `always`, `madvise` and `never`.
     */
    @JvmName("plhtrgjqpctbngmc")
    public suspend fun transparentHugePageEnabled(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.transparentHugePageEnabled = mapped
    }

    internal fun build(): KubernetesClusterDefaultNodePoolLinuxOsConfigArgs =
        KubernetesClusterDefaultNodePoolLinuxOsConfigArgs(
            swapFileSizeMb = swapFileSizeMb,
            sysctlConfig = sysctlConfig,
            transparentHugePageDefrag = transparentHugePageDefrag,
            transparentHugePageEnabled = transparentHugePageEnabled,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy