Class ReservationCapacity

java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.cloud.is.vpc.v1.model.ReservationCapacity
All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel

public class ReservationCapacity extends com.ibm.cloud.sdk.core.service.model.GenericModel
The capacity configuration for this reservation If absent, this reservation has no assigned capacity.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static interface 
    The status of the capacity reservation: - `allocating`: The capacity reservation is being allocated for use - `allocated`: The total capacity of the reservation has been allocated for use - `degraded`: The capacity reservation has been allocated for use, but some of the capacity is not available.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the allocated.
    Gets the available.
    Gets the status.
    Gets the total.
    Gets the used.

    Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel

    equals, hashCode, toString

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Method Details

    • getAllocated

      public Long getAllocated()
      Gets the allocated. The amount allocated to this capacity reservation.
      Returns:
      the allocated
    • getAvailable

      public Long getAvailable()
      Gets the available. The amount of this capacity reservation available for new attachments.
      Returns:
      the available
    • getStatus

      public String getStatus()
      Gets the status. The status of the capacity reservation: - `allocating`: The capacity reservation is being allocated for use - `allocated`: The total capacity of the reservation has been allocated for use - `degraded`: The capacity reservation has been allocated for use, but some of the capacity is not available. See [capacity status reasons](https://cloud.ibm.com/docs/vpc?topic=vpc-reserved-capacity-status-reasons) for more information. - `unallocated`: The capacity reservation is not allocated for use The enumerated values for this property may [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) in the future.
      Returns:
      the status
    • getTotal

      public Long getTotal()
      Gets the total. The total amount of this capacity reservation.
      Returns:
      the total
    • getUsed

      public Long getUsed()
      Gets the used. The amount of this capacity reservation used by existing attachments.
      Returns:
      the used