
com.pulumi.azurenative.azurestackhci.outputs.VirtualMachinePropertiesResponseDynamicMemoryConfig Maven / Gradle / Ivy
// *** 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.azurenative.azurestackhci.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.Double;
import java.lang.Integer;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class VirtualMachinePropertiesResponseDynamicMemoryConfig {
private @Nullable Double maximumMemoryMB;
private @Nullable Double minimumMemoryMB;
/**
* @return Defines the amount of extra memory that should be reserved for a virtual machine at runtime, as a percentage of the total memory that the virtual machine is thought to need. This only applies to virtual systems with dynamic memory enabled. This property can be in the range of 5 to 2000.
*
*/
private @Nullable Integer targetMemoryBuffer;
private VirtualMachinePropertiesResponseDynamicMemoryConfig() {}
public Optional maximumMemoryMB() {
return Optional.ofNullable(this.maximumMemoryMB);
}
public Optional minimumMemoryMB() {
return Optional.ofNullable(this.minimumMemoryMB);
}
/**
* @return Defines the amount of extra memory that should be reserved for a virtual machine at runtime, as a percentage of the total memory that the virtual machine is thought to need. This only applies to virtual systems with dynamic memory enabled. This property can be in the range of 5 to 2000.
*
*/
public Optional targetMemoryBuffer() {
return Optional.ofNullable(this.targetMemoryBuffer);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(VirtualMachinePropertiesResponseDynamicMemoryConfig defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Double maximumMemoryMB;
private @Nullable Double minimumMemoryMB;
private @Nullable Integer targetMemoryBuffer;
public Builder() {}
public Builder(VirtualMachinePropertiesResponseDynamicMemoryConfig defaults) {
Objects.requireNonNull(defaults);
this.maximumMemoryMB = defaults.maximumMemoryMB;
this.minimumMemoryMB = defaults.minimumMemoryMB;
this.targetMemoryBuffer = defaults.targetMemoryBuffer;
}
@CustomType.Setter
public Builder maximumMemoryMB(@Nullable Double maximumMemoryMB) {
this.maximumMemoryMB = maximumMemoryMB;
return this;
}
@CustomType.Setter
public Builder minimumMemoryMB(@Nullable Double minimumMemoryMB) {
this.minimumMemoryMB = minimumMemoryMB;
return this;
}
@CustomType.Setter
public Builder targetMemoryBuffer(@Nullable Integer targetMemoryBuffer) {
this.targetMemoryBuffer = targetMemoryBuffer;
return this;
}
public VirtualMachinePropertiesResponseDynamicMemoryConfig build() {
final var _resultValue = new VirtualMachinePropertiesResponseDynamicMemoryConfig();
_resultValue.maximumMemoryMB = maximumMemoryMB;
_resultValue.minimumMemoryMB = minimumMemoryMB;
_resultValue.targetMemoryBuffer = targetMemoryBuffer;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy