Class InstanceReservationAffinityPatch

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

public class InstanceReservationAffinityPatch extends com.ibm.cloud.sdk.core.service.model.GenericModel
InstanceReservationAffinityPatch.
  • Method Details

    • newBuilder

      New builder.
      Returns:
      a InstanceReservationAffinityPatch builder
    • policy

      public String policy()
      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` will be available for use The policy must be `disabled` if `placement_target` is set.
      Returns:
      the policy
    • pool

      public List<ReservationIdentity> pool()
      Gets the pool. The pool of reservations available for use by this virtual server instance, replacing the existing pool of reservations. Specified reservations must have a `status` of `active`, and have the same `profile` and `zone` as this virtual server instance. If `policy` is `manual`, `pool` must have one reservation. If `policy` is `disabled` or `automatic`, `pool` must be empty. If `policy` is `manual`, the `pool` must contain a reservation with available capacity.
      Returns:
      the pool