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 ClassesModifier and TypeClassDescriptionstatic 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
Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Method Details
-
getAllocated
Gets the allocated. The amount allocated to this capacity reservation.- Returns:
- the allocated
-
getAvailable
Gets the available. The amount of this capacity reservation available for new attachments.- Returns:
- the available
-
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
Gets the total. The total amount of this capacity reservation.- Returns:
- the total
-
getUsed
Gets the used. The amount of this capacity reservation used by existing attachments.- Returns:
- the used
-