Class HardwareProfile
java.lang.Object
com.azure.resourcemanager.connectedvmware.models.HardwareProfile
Defines the resource properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the cpuHotAddEnabled property: Gets or sets a value indicating whether virtual processors can be added while this virtual machine is running.Get the cpuHotRemoveEnabled property: Gets or sets a value indicating whether virtual processors can be removed while this virtual machine is running.Get the memoryHotAddEnabled property: Gets or sets a value indicating whether memory can be added while this virtual machine is running.Get the memorySizeMB property: Gets or sets memory size in MBs for the vm.Get the numCoresPerSocket property: Gets or sets the number of cores per socket for the vm.numCPUs()
Get the numCPUs property: Gets or sets the number of vCPUs for the vm.void
validate()
Validates the instance.withMemorySizeMB
(Integer memorySizeMB) Set the memorySizeMB property: Gets or sets memory size in MBs for the vm.withNumCoresPerSocket
(Integer numCoresPerSocket) Set the numCoresPerSocket property: Gets or sets the number of cores per socket for the vm.withNumCPUs
(Integer numCPUs) Set the numCPUs property: Gets or sets the number of vCPUs for the vm.
-
Constructor Details
-
HardwareProfile
public HardwareProfile()
-
-
Method Details
-
memorySizeMB
Get the memorySizeMB property: Gets or sets memory size in MBs for the vm.- Returns:
- the memorySizeMB value.
-
withMemorySizeMB
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
Get the numCPUs property: Gets or sets the number of vCPUs for the vm.- Returns:
- the numCPUs value.
-
withNumCPUs
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
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
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
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
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
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.
-