Class BareMetalServerReservationAffinity
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.cloud.is.vpc.v1.model.BareMetalServerReservationAffinity
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class BareMetalServerReservationAffinity
extends com.ibm.cloud.sdk.core.service.model.GenericModel
BareMetalServerReservationAffinity.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
The reservation affinity policy to use for this bare metal server: - `disabled`: Reservations will not be used - `manual`: Reservations in `pool` are 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
Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Method Details
-
getPolicy
Gets the policy. The reservation affinity policy to use for this bare metal server: - `disabled`: Reservations will not be used - `manual`: Reservations in `pool` are 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
-
getPool
Gets the pool. The pool of reservations available for use by this bare metal server when the `policy` is `manual`. This must be empty if the `policy` is `automatic` or `disabled`.- Returns:
- the pool
-