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

com.pulumi.azure.containerservice.kotlin.inputs.KubernetesClusterNodePoolLinuxOsConfigArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

import com.pulumi.azure.containerservice.inputs.KubernetesClusterNodePoolLinuxOsConfigArgs.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 swap file on each node in MB. Changing this forces a new resource to be created.
 * @property sysctlConfig A `sysctl_config` block as defined below. Changing this forces a new resource to be created.
 * @property transparentHugePageDefrag specifies the defrag configuration for Transparent Huge Page. Possible values are `always`, `defer`, `defer+madvise`, `madvise` and `never`. Changing this forces a new resource to be created.
 * @property transparentHugePageEnabled Specifies the Transparent Huge Page enabled configuration. Possible values are `always`, `madvise` and `never`. Changing this forces a new resource to be created.
 */
public data class KubernetesClusterNodePoolLinuxOsConfigArgs(
    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.KubernetesClusterNodePoolLinuxOsConfigArgs =
        com.pulumi.azure.containerservice.inputs.KubernetesClusterNodePoolLinuxOsConfigArgs.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 [KubernetesClusterNodePoolLinuxOsConfigArgs].
 */
@PulumiTagMarker
public class KubernetesClusterNodePoolLinuxOsConfigArgsBuilder 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 swap file on each node in MB. Changing this forces a new resource to be created.
     */
    @JvmName("pokmvvtsatrcgtki")
    public suspend fun swapFileSizeMb(`value`: Output) {
        this.swapFileSizeMb = value
    }

    /**
     * @param value A `sysctl_config` block as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("xrqtajlvlexcxmpo")
    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`. Changing this forces a new resource to be created.
     */
    @JvmName("gjfcknbnqifmplek")
    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`. Changing this forces a new resource to be created.
     */
    @JvmName("hcayreydueorlmuf")
    public suspend fun transparentHugePageEnabled(`value`: Output) {
        this.transparentHugePageEnabled = value
    }

    /**
     * @param value Specifies the size of swap file on each node in MB. Changing this forces a new resource to be created.
     */
    @JvmName("cqiqxtepmcypnwas")
    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. Changing this forces a new resource to be created.
     */
    @JvmName("fvhkkosbmndcqhpj")
    public suspend fun sysctlConfig(`value`: KubernetesClusterNodePoolLinuxOsConfigSysctlConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sysctlConfig = mapped
    }

    /**
     * @param argument A `sysctl_config` block as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("rmpkkrefcunoeqqv")
    public suspend fun sysctlConfig(argument: suspend KubernetesClusterNodePoolLinuxOsConfigSysctlConfigArgsBuilder.() -> Unit) {
        val toBeMapped = KubernetesClusterNodePoolLinuxOsConfigSysctlConfigArgsBuilder().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`. Changing this forces a new resource to be created.
     */
    @JvmName("qdvjtdvephbrepuj")
    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`. Changing this forces a new resource to be created.
     */
    @JvmName("vjagmysvbjjesjvd")
    public suspend fun transparentHugePageEnabled(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.transparentHugePageEnabled = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy