Package com.ibm.cloud.is.vpc.v1.model
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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
InstanceReservationAffinityPatch.Builder
Builder.static interface
InstanceReservationAffinityPatch.Policy
The reservation affinity policy to use for this virtual server instance: - `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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstanceReservationAffinityPatch.Builder
newBuilder()
New builder.String
policy()
Gets the policy.List<ReservationIdentity>
pool()
Gets the pool.
-
-
-
Method Detail
-
newBuilder
public InstanceReservationAffinityPatch.Builder 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: - `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`, `pool` must be empty.- Returns:
- the pool
-
-