Package com.ibm.cloud.is.vpc.v1.model
Class InstanceReservationAffinityPatch.Builder
- java.lang.Object
-
- com.ibm.cloud.is.vpc.v1.model.InstanceReservationAffinityPatch.Builder
-
- Enclosing class:
- InstanceReservationAffinityPatch
public static class InstanceReservationAffinityPatch.Builder extends Object
Builder.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstanceReservationAffinityPatch.Builder
addPool(ReservationIdentity pool)
Adds a new element to pool.InstanceReservationAffinityPatch
build()
Builds a InstanceReservationAffinityPatch.InstanceReservationAffinityPatch.Builder
policy(String policy)
Set the policy.InstanceReservationAffinityPatch.Builder
pool(List<ReservationIdentity> pool)
Set the pool.
-
-
-
Method Detail
-
build
public InstanceReservationAffinityPatch build()
Builds a InstanceReservationAffinityPatch.- Returns:
- the new InstanceReservationAffinityPatch instance
-
addPool
public InstanceReservationAffinityPatch.Builder addPool(ReservationIdentity pool)
Adds a new element to pool.- Parameters:
pool
- the new element to be added- Returns:
- the InstanceReservationAffinityPatch builder
-
policy
public InstanceReservationAffinityPatch.Builder policy(String policy)
Set the policy.- Parameters:
policy
- the policy- Returns:
- the InstanceReservationAffinityPatch builder
-
pool
public InstanceReservationAffinityPatch.Builder pool(List<ReservationIdentity> pool)
Set the pool. Existing pool will be replaced.- Parameters:
pool
- the pool- Returns:
- the InstanceReservationAffinityPatch builder
-
-