com.pulumi.azure.containerservice.outputs.KubernetesClusterDefaultNodePoolLinuxOsConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.
// *** 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.
*
*/
private @Nullable Integer swapFileSizeMb;
/**
* @return A `sysctl_config` block as defined below.
*
*/
private @Nullable KubernetesClusterDefaultNodePoolLinuxOsConfigSysctlConfig sysctlConfig;
/**
* @return specifies the defrag configuration for Transparent Huge Page. Possible values are `always`, `defer`, `defer+madvise`, `madvise` and `never`.
*
*/
private @Nullable String transparentHugePageDefrag;
/**
* @return Specifies the Transparent Huge Page enabled configuration. Possible values are `always`, `madvise` and `never`.
*
*/
private @Nullable String transparentHugePageEnabled;
private KubernetesClusterDefaultNodePoolLinuxOsConfig() {}
/**
* @return Specifies the size of the swap file on each node in MB.
*
*/
public Optional swapFileSizeMb() {
return Optional.ofNullable(this.swapFileSizeMb);
}
/**
* @return A `sysctl_config` block as defined below.
*
*/
public Optional 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`.
*
*/
public Optional transparentHugePageDefrag() {
return Optional.ofNullable(this.transparentHugePageDefrag);
}
/**
* @return Specifies the Transparent Huge Page enabled configuration. Possible values are `always`, `madvise` and `never`.
*
*/
public Optional 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 _resultValue = new KubernetesClusterDefaultNodePoolLinuxOsConfig();
_resultValue.swapFileSizeMb = swapFileSizeMb;
_resultValue.sysctlConfig = sysctlConfig;
_resultValue.transparentHugePageDefrag = transparentHugePageDefrag;
_resultValue.transparentHugePageEnabled = transparentHugePageEnabled;
return _resultValue;
}
}
}