Class CloudCapacity
- java.lang.Object
-
- com.azure.resourcemanager.scvmm.models.CloudCapacity
-
public final class CloudCapacity extends Object
Cloud Capacity model.
-
-
Constructor Summary
Constructors Constructor Description CloudCapacity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Long
cpuCount()
Get the cpuCount property: CPUCount specifies the maximum number of CPUs that can be allocated in the cloud.Long
memoryMB()
Get the memoryMB property: MemoryMB specifies a memory usage limit in megabytes.void
validate()
Validates the instance.Long
vmCount()
Get the vmCount property: VMCount gives the max number of VMs that can be deployed in the cloud.CloudCapacity
withCpuCount(Long cpuCount)
Set the cpuCount property: CPUCount specifies the maximum number of CPUs that can be allocated in the cloud.CloudCapacity
withMemoryMB(Long memoryMB)
Set the memoryMB property: MemoryMB specifies a memory usage limit in megabytes.CloudCapacity
withVmCount(Long vmCount)
Set the vmCount property: VMCount gives the max number of VMs that can be deployed in the cloud.
-
-
-
Method Detail
-
cpuCount
public Long cpuCount()
Get the cpuCount property: CPUCount specifies the maximum number of CPUs that can be allocated in the cloud.- Returns:
- the cpuCount value.
-
withCpuCount
public CloudCapacity withCpuCount(Long cpuCount)
Set the cpuCount property: CPUCount specifies the maximum number of CPUs that can be allocated in the cloud.- Parameters:
cpuCount
- the cpuCount value to set.- Returns:
- the CloudCapacity object itself.
-
memoryMB
public Long memoryMB()
Get the memoryMB property: MemoryMB specifies a memory usage limit in megabytes.- Returns:
- the memoryMB value.
-
withMemoryMB
public CloudCapacity withMemoryMB(Long memoryMB)
Set the memoryMB property: MemoryMB specifies a memory usage limit in megabytes.- Parameters:
memoryMB
- the memoryMB value to set.- Returns:
- the CloudCapacity object itself.
-
vmCount
public Long vmCount()
Get the vmCount property: VMCount gives the max number of VMs that can be deployed in the cloud.- Returns:
- the vmCount value.
-
withVmCount
public CloudCapacity withVmCount(Long vmCount)
Set the vmCount property: VMCount gives the max number of VMs that can be deployed in the cloud.- Parameters:
vmCount
- the vmCount value to set.- Returns:
- the CloudCapacity object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-