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

com.pulumi.azurenative.azurestackhci.inputs.VirtualMachineInstancePropertiesDynamicMemoryConfigArgs 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.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Double;
import java.lang.Integer;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class VirtualMachineInstancePropertiesDynamicMemoryConfigArgs extends com.pulumi.resources.ResourceArgs {

    public static final VirtualMachineInstancePropertiesDynamicMemoryConfigArgs Empty = new VirtualMachineInstancePropertiesDynamicMemoryConfigArgs();

    @Import(name="maximumMemoryMB")
    private @Nullable Output maximumMemoryMB;

    public Optional> maximumMemoryMB() {
        return Optional.ofNullable(this.maximumMemoryMB);
    }

    @Import(name="minimumMemoryMB")
    private @Nullable Output minimumMemoryMB;

    public Optional> minimumMemoryMB() {
        return Optional.ofNullable(this.minimumMemoryMB);
    }

    /**
     * Defines the amount of extra memory that should be reserved for a virtual machine instance at runtime, as a percentage of the total memory that the virtual machine instance 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.
     * 
     */
    @Import(name="targetMemoryBuffer")
    private @Nullable Output targetMemoryBuffer;

    /**
     * @return Defines the amount of extra memory that should be reserved for a virtual machine instance at runtime, as a percentage of the total memory that the virtual machine instance 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);
    }

    private VirtualMachineInstancePropertiesDynamicMemoryConfigArgs() {}

    private VirtualMachineInstancePropertiesDynamicMemoryConfigArgs(VirtualMachineInstancePropertiesDynamicMemoryConfigArgs $) {
        this.maximumMemoryMB = $.maximumMemoryMB;
        this.minimumMemoryMB = $.minimumMemoryMB;
        this.targetMemoryBuffer = $.targetMemoryBuffer;
    }

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

    public static final class Builder {
        private VirtualMachineInstancePropertiesDynamicMemoryConfigArgs $;

        public Builder() {
            $ = new VirtualMachineInstancePropertiesDynamicMemoryConfigArgs();
        }

        public Builder(VirtualMachineInstancePropertiesDynamicMemoryConfigArgs defaults) {
            $ = new VirtualMachineInstancePropertiesDynamicMemoryConfigArgs(Objects.requireNonNull(defaults));
        }

        public Builder maximumMemoryMB(@Nullable Output maximumMemoryMB) {
            $.maximumMemoryMB = maximumMemoryMB;
            return this;
        }

        public Builder maximumMemoryMB(Double maximumMemoryMB) {
            return maximumMemoryMB(Output.of(maximumMemoryMB));
        }

        public Builder minimumMemoryMB(@Nullable Output minimumMemoryMB) {
            $.minimumMemoryMB = minimumMemoryMB;
            return this;
        }

        public Builder minimumMemoryMB(Double minimumMemoryMB) {
            return minimumMemoryMB(Output.of(minimumMemoryMB));
        }

        /**
         * @param targetMemoryBuffer Defines the amount of extra memory that should be reserved for a virtual machine instance at runtime, as a percentage of the total memory that the virtual machine instance 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.
         * 
         * @return builder
         * 
         */
        public Builder targetMemoryBuffer(@Nullable Output targetMemoryBuffer) {
            $.targetMemoryBuffer = targetMemoryBuffer;
            return this;
        }

        /**
         * @param targetMemoryBuffer Defines the amount of extra memory that should be reserved for a virtual machine instance at runtime, as a percentage of the total memory that the virtual machine instance 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.
         * 
         * @return builder
         * 
         */
        public Builder targetMemoryBuffer(Integer targetMemoryBuffer) {
            return targetMemoryBuffer(Output.of(targetMemoryBuffer));
        }

        public VirtualMachineInstancePropertiesDynamicMemoryConfigArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy