Class BareMetalServerReservationAffinityPatch

  • All Implemented Interfaces:
    com.ibm.cloud.sdk.core.service.model.ObjectModel

    public class BareMetalServerReservationAffinityPatch
    extends com.ibm.cloud.sdk.core.service.model.GenericModel
    BareMetalServerReservationAffinityPatch.
    • Method Detail

      • policy

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

        public List<ReservationIdentity> pool()
        Gets the pool. The pool of reservations available for use by this bare metal server, replacing the existing pool of reservations. Specified reservations must have a `status` of `active`, and have the same `profile` and `zone` as this bare metal server. 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