Class InstanceReservationAffinityPatch.Builder
java.lang.Object
com.ibm.cloud.is.vpc.v1.model.InstanceReservationAffinityPatch.Builder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddPool
(ReservationIdentity pool) Adds a new element to pool.build()
Builds a InstanceReservationAffinityPatch.Set the policy.pool
(List<ReservationIdentity> pool) Set the pool.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder.
-
-
Method Details
-
build
Builds a InstanceReservationAffinityPatch.- Returns:
- the new InstanceReservationAffinityPatch instance
-
addPool
Adds a new element to pool.- Parameters:
pool
- the new element to be added- Returns:
- the InstanceReservationAffinityPatch builder
-
policy
Set the policy.- Parameters:
policy
- the policy- Returns:
- the InstanceReservationAffinityPatch builder
-
pool
Set the pool. Existing pool will be replaced.- Parameters:
pool
- the pool- Returns:
- the InstanceReservationAffinityPatch builder
-