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

com.pulumi.azurenative.connectedvmwarevsphere.inputs.HardwareProfileArgs Maven / Gradle / Ivy

There is a newer version: 2.82.0
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.connectedvmwarevsphere.inputs;

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


/**
 * Specifies the hardware settings for the virtual machine.
 * 
 */
public final class HardwareProfileArgs extends com.pulumi.resources.ResourceArgs {

    public static final HardwareProfileArgs Empty = new HardwareProfileArgs();

    /**
     * Gets or sets memory size in MBs for the vm.
     * 
     */
    @Import(name="memorySizeMB")
    private @Nullable Output memorySizeMB;

    /**
     * @return Gets or sets memory size in MBs for the vm.
     * 
     */
    public Optional> memorySizeMB() {
        return Optional.ofNullable(this.memorySizeMB);
    }

    /**
     * Gets or sets the number of vCPUs for the vm.
     * 
     */
    @Import(name="numCPUs")
    private @Nullable Output numCPUs;

    /**
     * @return Gets or sets the number of vCPUs for the vm.
     * 
     */
    public Optional> numCPUs() {
        return Optional.ofNullable(this.numCPUs);
    }

    /**
     * Gets or sets the number of cores per socket for the vm. Defaults to 1 if unspecified.
     * 
     */
    @Import(name="numCoresPerSocket")
    private @Nullable Output numCoresPerSocket;

    /**
     * @return Gets or sets the number of cores per socket for the vm. Defaults to 1 if unspecified.
     * 
     */
    public Optional> numCoresPerSocket() {
        return Optional.ofNullable(this.numCoresPerSocket);
    }

    private HardwareProfileArgs() {}

    private HardwareProfileArgs(HardwareProfileArgs $) {
        this.memorySizeMB = $.memorySizeMB;
        this.numCPUs = $.numCPUs;
        this.numCoresPerSocket = $.numCoresPerSocket;
    }

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

    public static final class Builder {
        private HardwareProfileArgs $;

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

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

        /**
         * @param memorySizeMB Gets or sets memory size in MBs for the vm.
         * 
         * @return builder
         * 
         */
        public Builder memorySizeMB(@Nullable Output memorySizeMB) {
            $.memorySizeMB = memorySizeMB;
            return this;
        }

        /**
         * @param memorySizeMB Gets or sets memory size in MBs for the vm.
         * 
         * @return builder
         * 
         */
        public Builder memorySizeMB(Integer memorySizeMB) {
            return memorySizeMB(Output.of(memorySizeMB));
        }

        /**
         * @param numCPUs Gets or sets the number of vCPUs for the vm.
         * 
         * @return builder
         * 
         */
        public Builder numCPUs(@Nullable Output numCPUs) {
            $.numCPUs = numCPUs;
            return this;
        }

        /**
         * @param numCPUs Gets or sets the number of vCPUs for the vm.
         * 
         * @return builder
         * 
         */
        public Builder numCPUs(Integer numCPUs) {
            return numCPUs(Output.of(numCPUs));
        }

        /**
         * @param numCoresPerSocket Gets or sets the number of cores per socket for the vm. Defaults to 1 if unspecified.
         * 
         * @return builder
         * 
         */
        public Builder numCoresPerSocket(@Nullable Output numCoresPerSocket) {
            $.numCoresPerSocket = numCoresPerSocket;
            return this;
        }

        /**
         * @param numCoresPerSocket Gets or sets the number of cores per socket for the vm. Defaults to 1 if unspecified.
         * 
         * @return builder
         * 
         */
        public Builder numCoresPerSocket(Integer numCoresPerSocket) {
            return numCoresPerSocket(Output.of(numCoresPerSocket));
        }

        public HardwareProfileArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy