Class DedicatedHostAllocatableVM
- java.lang.Object
-
- com.azure.resourcemanager.compute.models.DedicatedHostAllocatableVM
-
public final class DedicatedHostAllocatableVM extends Object
Represents the dedicated host unutilized capacity in terms of a specific VM size.
-
-
Constructor Summary
Constructors Constructor Description DedicatedHostAllocatableVM()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Doublecount()Get the count property: Maximum number of VMs of size vmSize that can fit in the dedicated host's remaining capacity.voidvalidate()Validates the instance.StringvmSize()Get the vmSize property: VM size in terms of which the unutilized capacity is represented.DedicatedHostAllocatableVMwithCount(Double count)Set the count property: Maximum number of VMs of size vmSize that can fit in the dedicated host's remaining capacity.DedicatedHostAllocatableVMwithVmSize(String vmSize)Set the vmSize property: VM size in terms of which the unutilized capacity is represented.
-
-
-
Method Detail
-
vmSize
public String vmSize()
Get the vmSize property: VM size in terms of which the unutilized capacity is represented.- Returns:
- the vmSize value.
-
withVmSize
public DedicatedHostAllocatableVM withVmSize(String vmSize)
Set the vmSize property: VM size in terms of which the unutilized capacity is represented.- Parameters:
vmSize- the vmSize value to set.- Returns:
- the DedicatedHostAllocatableVM object itself.
-
count
public Double count()
Get the count property: Maximum number of VMs of size vmSize that can fit in the dedicated host's remaining capacity.- Returns:
- the count value.
-
withCount
public DedicatedHostAllocatableVM withCount(Double count)
Set the count property: Maximum number of VMs of size vmSize that can fit in the dedicated host's remaining capacity.- Parameters:
count- the count value to set.- Returns:
- the DedicatedHostAllocatableVM object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-