Class CapacityReservationUtilization

java.lang.Object
com.azure.resourcemanager.compute.models.CapacityReservationUtilization

public final class CapacityReservationUtilization extends Object
Represents the capacity reservation utilization in terms of resources allocated.
  • Constructor Details

    • CapacityReservationUtilization

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

    • currentCapacity

      public Integer currentCapacity()
      Get the currentCapacity property: The value provides the current capacity of the VM size which was reserved successfully and for which the customer is getting billed. Minimum api-version: 2022-08-01.
      Returns:
      the currentCapacity value.
    • virtualMachinesAllocated

      public List<SubResourceReadOnly> virtualMachinesAllocated()
      Get the virtualMachinesAllocated property: A list of all virtual machines resource ids allocated against the capacity reservation.
      Returns:
      the virtualMachinesAllocated value.
    • validate

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