Package com.ibm.cloud.is.vpc.v1.model
Class ReplaceLoadBalancerPoolMembersOptions.Builder
- java.lang.Object
-
- com.ibm.cloud.is.vpc.v1.model.ReplaceLoadBalancerPoolMembersOptions.Builder
-
- Enclosing class:
- ReplaceLoadBalancerPoolMembersOptions
public static class ReplaceLoadBalancerPoolMembersOptions.Builder extends Object
Builder.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReplaceLoadBalancerPoolMembersOptions.Builder
addMembers(LoadBalancerPoolMemberPrototype members)
Adds a new element to members.ReplaceLoadBalancerPoolMembersOptions
build()
Builds a ReplaceLoadBalancerPoolMembersOptions.ReplaceLoadBalancerPoolMembersOptions.Builder
loadBalancerId(String loadBalancerId)
Set the loadBalancerId.ReplaceLoadBalancerPoolMembersOptions.Builder
members(List<LoadBalancerPoolMemberPrototype> members)
Set the members.ReplaceLoadBalancerPoolMembersOptions.Builder
poolId(String poolId)
Set the poolId.
-
-
-
Constructor Detail
-
Builder
public Builder()
Instantiates a new builder.
-
Builder
public Builder(String loadBalancerId, String poolId, List<LoadBalancerPoolMemberPrototype> members)
Instantiates a new builder with required properties.- Parameters:
loadBalancerId
- the loadBalancerIdpoolId
- the poolIdmembers
- the members
-
-
Method Detail
-
build
public ReplaceLoadBalancerPoolMembersOptions build()
Builds a ReplaceLoadBalancerPoolMembersOptions.- Returns:
- the new ReplaceLoadBalancerPoolMembersOptions instance
-
addMembers
public ReplaceLoadBalancerPoolMembersOptions.Builder addMembers(LoadBalancerPoolMemberPrototype members)
Adds a new element to members.- Parameters:
members
- the new element to be added- Returns:
- the ReplaceLoadBalancerPoolMembersOptions builder
-
loadBalancerId
public ReplaceLoadBalancerPoolMembersOptions.Builder loadBalancerId(String loadBalancerId)
Set the loadBalancerId.- Parameters:
loadBalancerId
- the loadBalancerId- Returns:
- the ReplaceLoadBalancerPoolMembersOptions builder
-
poolId
public ReplaceLoadBalancerPoolMembersOptions.Builder poolId(String poolId)
Set the poolId.- Parameters:
poolId
- the poolId- Returns:
- the ReplaceLoadBalancerPoolMembersOptions builder
-
members
public ReplaceLoadBalancerPoolMembersOptions.Builder members(List<LoadBalancerPoolMemberPrototype> members)
Set the members. Existing members will be replaced.- Parameters:
members
- the members- Returns:
- the ReplaceLoadBalancerPoolMembersOptions builder
-
-