Class Reservation
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.cloud.is.vpc.v1.model.Reservation
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class Reservation
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Reservation.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
The affinity policy to use for this reservation: - `automatic`: The reservation will be automatically selected - `restricted`: The reservation must be manually requested The enumerated values for this property may [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) in the future.static interface
The lifecycle state of this reservation.static interface
The resource type.static interface
The status of the reservation. -
Method Summary
Modifier and TypeMethodDescriptionGets the affinityPolicy.Gets the capacity.Gets the committedUse.Gets the createdAt.getCrn()
Gets the crn.getHref()
Gets the href.getId()
Gets the id.Gets the lifecycleState.getName()
Gets the name.Gets the profile.Gets the resourceGroup.Gets the resourceType.Gets the status.Gets the statusReasons.getZone()
Gets the zone.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Method Details
-
getAffinityPolicy
Gets the affinityPolicy. The affinity policy to use for this reservation: - `automatic`: The reservation will be automatically selected - `restricted`: The reservation must be manually requested The enumerated values for this property may [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) in the future.- Returns:
- the affinityPolicy
-
getCapacity
Gets the capacity. The capacity configuration for this reservation If absent, this reservation has no assigned capacity.- Returns:
- the capacity
-
getCommittedUse
Gets the committedUse. The committed use configuration for this reservation. If absent, this reservation has no commitment for use.- Returns:
- the committedUse
-
getCreatedAt
Gets the createdAt. The date and time that the reservation was created.- Returns:
- the createdAt
-
getCrn
-
getHref
-
getId
-
getLifecycleState
Gets the lifecycleState. The lifecycle state of this reservation.- Returns:
- the lifecycleState
-
getName
Gets the name. The name for this reservation. The name is unique across all reservations in the region.- Returns:
- the name
-
getProfile
Gets the profile. The [instance profile](https://cloud.ibm.com/docs/vpc?topic=vpc-profiles) or [bare metal server profile](https://cloud.ibm.com/docs/vpc?topic=vpc-bare-metal-servers-profile) for this reservation.- Returns:
- the profile
-
getResourceGroup
Gets the resourceGroup. The resource group for this reservation.- Returns:
- the resourceGroup
-
getResourceType
-
getStatus
Gets the status. The status of the reservation. The enumerated values for this property may [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) in the future.- Returns:
- the status
-
getStatusReasons
Gets the statusReasons. The reasons for the current status (if any).- Returns:
- the statusReasons
-
getZone
-