Class InstanceReservationAffinity

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

public class InstanceReservationAffinity extends com.ibm.cloud.sdk.core.service.model.GenericModel
InstanceReservationAffinity.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static interface 
    The reservation affinity policy to use for this virtual server instance: - `automatic`: Any reservations with an `affinity_policy` of `automatic` that have the same `profile` and `zone` as this virtual server instance are available for use.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the policy.
    Gets the pool.

    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

    • getPolicy

      public String getPolicy()
      Gets the policy. The reservation affinity policy to use for this virtual server instance: - `automatic`: Any reservations with an `affinity_policy` of `automatic` that have the same `profile` and `zone` as this virtual server instance are available for use. - `disabled`: Reservations will not be used - `manual`: Reservations in `pool` are available for use.
      Returns:
      the policy
    • getPool

      public List<ReservationReference> getPool()
      Gets the pool. The pool of reservations available for use by this virtual server instance when the `policy` is `manual`. This must be empty if the `policy` is `automatic` or `disabled`.
      Returns:
      the pool