Package com.ibm.cloud.is.vpc.v1.model
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 Classes Modifier and Type Class Description static interface
Reservation.AffinityPolicy
The affinity policy to use for this reservation: - `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
Reservation.LifecycleState
The lifecycle state of this reservation.static interface
Reservation.ResourceType
The resource type.static interface
Reservation.Status
The status of the reservation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAffinityPolicy()
Gets the affinityPolicy.ReservationCapacity
getCapacity()
Gets the capacity.ReservationCommittedUse
getCommittedUse()
Gets the committedUse.Date
getCreatedAt()
Gets the createdAt.String
getCrn()
Gets the crn.String
getHref()
Gets the href.String
getId()
Gets the id.String
getLifecycleState()
Gets the lifecycleState.String
getName()
Gets the name.ReservationProfile
getProfile()
Gets the profile.ResourceGroupReference
getResourceGroup()
Gets the resourceGroup.String
getResourceType()
Gets the resourceType.String
getStatus()
Gets the status.List<ReservationStatusReason>
getStatusReasons()
Gets the statusReasons.ZoneReference
getZone()
Gets the zone.
-
-
-
Method Detail
-
getAffinityPolicy
public String getAffinityPolicy()
Gets the affinityPolicy. The affinity policy to use for this reservation: - `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
public ReservationCapacity getCapacity()
Gets the capacity. The capacity configuration for this reservation If absent, this reservation has no assigned capacity.- Returns:
- the capacity
-
getCommittedUse
public ReservationCommittedUse getCommittedUse()
Gets the committedUse. The committed use configuration for this reservation. If absent, this reservation has no commitment for use.- Returns:
- the committedUse
-
getCreatedAt
public Date getCreatedAt()
Gets the createdAt. The date and time that the reservation was created.- Returns:
- the createdAt
-
getCrn
public String getCrn()
Gets the crn. The CRN for this reservation.- Returns:
- the crn
-
getHref
public String getHref()
Gets the href. The URL for this reservation.- Returns:
- the href
-
getId
public String getId()
Gets the id. The unique identifier for this reservation.- Returns:
- the id
-
getLifecycleState
public String getLifecycleState()
Gets the lifecycleState. The lifecycle state of this reservation.- Returns:
- the lifecycleState
-
getName
public String getName()
Gets the name. The name for this reservation. The name is unique across all reservations in the region.- Returns:
- the name
-
getProfile
public ReservationProfile getProfile()
Gets the profile. The [profile](https://cloud.ibm.com/docs/vpc?topic=vpc-profiles) for this reservation.- Returns:
- the profile
-
getResourceGroup
public ResourceGroupReference getResourceGroup()
Gets the resourceGroup. The resource group for this reservation.- Returns:
- the resourceGroup
-
getResourceType
public String getResourceType()
Gets the resourceType. The resource type.- Returns:
- the resourceType
-
getStatus
public String 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
public List<ReservationStatusReason> getStatusReasons()
Gets the statusReasons. The reasons for the current status (if any).- Returns:
- the statusReasons
-
getZone
public ZoneReference getZone()
Gets the zone. The zone for this reservation.- Returns:
- the zone
-
-