Class HardwareProfile

java.lang.Object
com.azure.resourcemanager.connectedvmware.models.HardwareProfile

public final class HardwareProfile extends Object
Defines the resource properties.
  • Constructor Details

    • HardwareProfile

      public HardwareProfile()
  • Method Details

    • memorySizeMB

      public Integer memorySizeMB()
      Get the memorySizeMB property: Gets or sets memory size in MBs for the vm.
      Returns:
      the memorySizeMB value.
    • withMemorySizeMB

      public HardwareProfile withMemorySizeMB(Integer memorySizeMB)
      Set the memorySizeMB property: Gets or sets memory size in MBs for the vm.
      Parameters:
      memorySizeMB - the memorySizeMB value to set.
      Returns:
      the HardwareProfile object itself.
    • numCPUs

      public Integer numCPUs()
      Get the numCPUs property: Gets or sets the number of vCPUs for the vm.
      Returns:
      the numCPUs value.
    • withNumCPUs

      public HardwareProfile withNumCPUs(Integer numCPUs)
      Set the numCPUs property: Gets or sets the number of vCPUs for the vm.
      Parameters:
      numCPUs - the numCPUs value to set.
      Returns:
      the HardwareProfile object itself.
    • numCoresPerSocket

      public Integer numCoresPerSocket()
      Get the numCoresPerSocket property: Gets or sets the number of cores per socket for the vm. Defaults to 1 if unspecified.
      Returns:
      the numCoresPerSocket value.
    • withNumCoresPerSocket

      public HardwareProfile withNumCoresPerSocket(Integer numCoresPerSocket)
      Set the numCoresPerSocket property: Gets or sets the number of cores per socket for the vm. Defaults to 1 if unspecified.
      Parameters:
      numCoresPerSocket - the numCoresPerSocket value to set.
      Returns:
      the HardwareProfile object itself.
    • cpuHotAddEnabled

      public Boolean cpuHotAddEnabled()
      Get the cpuHotAddEnabled property: Gets or sets a value indicating whether virtual processors can be added while this virtual machine is running.
      Returns:
      the cpuHotAddEnabled value.
    • cpuHotRemoveEnabled

      public Boolean cpuHotRemoveEnabled()
      Get the cpuHotRemoveEnabled property: Gets or sets a value indicating whether virtual processors can be removed while this virtual machine is running.
      Returns:
      the cpuHotRemoveEnabled value.
    • memoryHotAddEnabled

      public Boolean memoryHotAddEnabled()
      Get the memoryHotAddEnabled property: Gets or sets a value indicating whether memory can be added while this virtual machine is running.
      Returns:
      the memoryHotAddEnabled value.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.