// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.azure.containerservice.outputs;

import com.pulumi.azure.containerservice.outputs.KubernetesClusterDefaultNodePoolLinuxOsConfigSysctlConfig;
import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class KubernetesClusterDefaultNodePoolLinuxOsConfig {
    /**
     * @return Specifies the size of the swap file on each node in MB. Changing this forces a new resource to be created.
     * 
     */
    private @Nullable Integer swapFileSizeMb;
    /**
     * @return A `sysctl_config` block as defined below. Changing this forces a new resource to be created.
     * 
     */
    private @Nullable KubernetesClusterDefaultNodePoolLinuxOsConfigSysctlConfig sysctlConfig;
    /**
     * @return 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.
     * 
     */
    private @Nullable String transparentHugePageDefrag;
    /**
     * @return Specifies the Transparent Huge Page enabled configuration. Possible values are `always`, `madvise` and `never`. Changing this forces a new resource to be created.
     * 
     */
    private @Nullable String transparentHugePageEnabled;

    private KubernetesClusterDefaultNodePoolLinuxOsConfig() {}
    /**
     * @return Specifies the size of the swap file on each node in MB. Changing this forces a new resource to be created.
     * 
     */
    public Optional<Integer> swapFileSizeMb() {
        return Optional.ofNullable(this.swapFileSizeMb);
    }
    /**
     * @return A `sysctl_config` block as defined below. Changing this forces a new resource to be created.
     * 
     */
    public Optional<KubernetesClusterDefaultNodePoolLinuxOsConfigSysctlConfig> sysctlConfig() {
        return Optional.ofNullable(this.sysctlConfig);
    }
    /**
     * @return 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.
     * 
     */
    public Optional<String> transparentHugePageDefrag() {
        return Optional.ofNullable(this.transparentHugePageDefrag);
    }
    /**
     * @return Specifies the Transparent Huge Page enabled configuration. Possible values are `always`, `madvise` and `never`. Changing this forces a new resource to be created.
     * 
     */
    public Optional<String> transparentHugePageEnabled() {
        return Optional.ofNullable(this.transparentHugePageEnabled);
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(KubernetesClusterDefaultNodePoolLinuxOsConfig defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Integer swapFileSizeMb;
        private @Nullable KubernetesClusterDefaultNodePoolLinuxOsConfigSysctlConfig sysctlConfig;
        private @Nullable String transparentHugePageDefrag;
        private @Nullable String transparentHugePageEnabled;
        public Builder() {}
        public Builder(KubernetesClusterDefaultNodePoolLinuxOsConfig defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.swapFileSizeMb = defaults.swapFileSizeMb;
    	      this.sysctlConfig = defaults.sysctlConfig;
    	      this.transparentHugePageDefrag = defaults.transparentHugePageDefrag;
    	      this.transparentHugePageEnabled = defaults.transparentHugePageEnabled;
        }

        @CustomType.Setter
        public Builder swapFileSizeMb(@Nullable Integer swapFileSizeMb) {
            this.swapFileSizeMb = swapFileSizeMb;
            return this;
        }
        @CustomType.Setter
        public Builder sysctlConfig(@Nullable KubernetesClusterDefaultNodePoolLinuxOsConfigSysctlConfig sysctlConfig) {
            this.sysctlConfig = sysctlConfig;
            return this;
        }
        @CustomType.Setter
        public Builder transparentHugePageDefrag(@Nullable String transparentHugePageDefrag) {
            this.transparentHugePageDefrag = transparentHugePageDefrag;
            return this;
        }
        @CustomType.Setter
        public Builder transparentHugePageEnabled(@Nullable String transparentHugePageEnabled) {
            this.transparentHugePageEnabled = transparentHugePageEnabled;
            return this;
        }
        public KubernetesClusterDefaultNodePoolLinuxOsConfig build() {
            final var o = new KubernetesClusterDefaultNodePoolLinuxOsConfig();
            o.swapFileSizeMb = swapFileSizeMb;
            o.sysctlConfig = sysctlConfig;
            o.transparentHugePageDefrag = transparentHugePageDefrag;
            o.transparentHugePageEnabled = transparentHugePageEnabled;
            return o;
        }
    }
}
