Package com.ibm.cloud.is.vpc.v1.model
Class BareMetalServerReservationAffinityPatch
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.is.vpc.v1.model.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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BareMetalServerReservationAffinityPatch.Builder
Builder.static interface
BareMetalServerReservationAffinityPatch.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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BareMetalServerReservationAffinityPatch.Builder
newBuilder()
New builder.String
policy()
Gets the policy.List<ReservationIdentity>
pool()
Gets the pool.
-
-
-
Method Detail
-
newBuilder
public BareMetalServerReservationAffinityPatch.Builder newBuilder()
New builder.- Returns:
- a BareMetalServerReservationAffinityPatch builder
-
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
-
-