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 Details

    • DedicatedHostAllocatableVM

      public DedicatedHostAllocatableVM()
      Creates an instance of DedicatedHostAllocatableVM class.
  • Method Details

    • 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.