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.
  • Method Details

    • getAffinityPolicy

      public String 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

      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 [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

      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