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

com.pulumi.azurenative.azurestackhci.outputs.VirtualMachinePropertiesResponseHardwareProfile Maven / Gradle / Ivy

There is a newer version: 2.89.2
Show newest version
// *** 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.azurenative.azurestackhci.outputs.VirtualMachinePropertiesResponseDynamicMemoryConfig;
import com.pulumi.core.annotations.CustomType;
import java.lang.Double;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class VirtualMachinePropertiesResponseHardwareProfile {
    private @Nullable VirtualMachinePropertiesResponseDynamicMemoryConfig dynamicMemoryConfig;
    /**
     * @return RAM in MB for the virtual machine
     * 
     */
    private @Nullable Double memoryMB;
    /**
     * @return number of processors for the virtual machine
     * 
     */
    private @Nullable Integer processors;
    private @Nullable String vmSize;

    private VirtualMachinePropertiesResponseHardwareProfile() {}
    public Optional dynamicMemoryConfig() {
        return Optional.ofNullable(this.dynamicMemoryConfig);
    }
    /**
     * @return RAM in MB for the virtual machine
     * 
     */
    public Optional memoryMB() {
        return Optional.ofNullable(this.memoryMB);
    }
    /**
     * @return number of processors for the virtual machine
     * 
     */
    public Optional processors() {
        return Optional.ofNullable(this.processors);
    }
    public Optional vmSize() {
        return Optional.ofNullable(this.vmSize);
    }

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

    public static Builder builder(VirtualMachinePropertiesResponseHardwareProfile defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable VirtualMachinePropertiesResponseDynamicMemoryConfig dynamicMemoryConfig;
        private @Nullable Double memoryMB;
        private @Nullable Integer processors;
        private @Nullable String vmSize;
        public Builder() {}
        public Builder(VirtualMachinePropertiesResponseHardwareProfile defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.dynamicMemoryConfig = defaults.dynamicMemoryConfig;
    	      this.memoryMB = defaults.memoryMB;
    	      this.processors = defaults.processors;
    	      this.vmSize = defaults.vmSize;
        }

        @CustomType.Setter
        public Builder dynamicMemoryConfig(@Nullable VirtualMachinePropertiesResponseDynamicMemoryConfig dynamicMemoryConfig) {

            this.dynamicMemoryConfig = dynamicMemoryConfig;
            return this;
        }
        @CustomType.Setter
        public Builder memoryMB(@Nullable Double memoryMB) {

            this.memoryMB = memoryMB;
            return this;
        }
        @CustomType.Setter
        public Builder processors(@Nullable Integer processors) {

            this.processors = processors;
            return this;
        }
        @CustomType.Setter
        public Builder vmSize(@Nullable String vmSize) {

            this.vmSize = vmSize;
            return this;
        }
        public VirtualMachinePropertiesResponseHardwareProfile build() {
            final var _resultValue = new VirtualMachinePropertiesResponseHardwareProfile();
            _resultValue.dynamicMemoryConfig = dynamicMemoryConfig;
            _resultValue.memoryMB = memoryMB;
            _resultValue.processors = processors;
            _resultValue.vmSize = vmSize;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy