Class CreateLoadBalancerPoolOptions.Builder
java.lang.Object
com.ibm.cloud.is.vpc.v1.model.CreateLoadBalancerPoolOptions.Builder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds a new element to members.Set the algorithm.build()Builds a CreateLoadBalancerPoolOptions.healthMonitor(LoadBalancerPoolHealthMonitorPrototype healthMonitor) Set the healthMonitor.loadBalancerId(String loadBalancerId) Set the loadBalancerId.members(List<LoadBalancerPoolMemberPrototype> members) Set the members.Set the name.Set the protocol.proxyProtocol(String proxyProtocol) Set the proxyProtocol.sessionPersistence(LoadBalancerPoolSessionPersistencePrototype sessionPersistence) Set the sessionPersistence.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
public Builder(String loadBalancerId, String algorithm, LoadBalancerPoolHealthMonitorPrototype healthMonitor, String protocol) Instantiates a new builder with required properties.- Parameters:
loadBalancerId- the loadBalancerIdalgorithm- the algorithmhealthMonitor- the healthMonitorprotocol- the protocol
-
-
Method Details
-
build
Builds a CreateLoadBalancerPoolOptions.- Returns:
- the new CreateLoadBalancerPoolOptions instance
-
addMembers
Adds a new element to members.- Parameters:
members- the new element to be added- Returns:
- the CreateLoadBalancerPoolOptions builder
-
loadBalancerId
Set the loadBalancerId.- Parameters:
loadBalancerId- the loadBalancerId- Returns:
- the CreateLoadBalancerPoolOptions builder
-
algorithm
Set the algorithm.- Parameters:
algorithm- the algorithm- Returns:
- the CreateLoadBalancerPoolOptions builder
-
healthMonitor
public CreateLoadBalancerPoolOptions.Builder healthMonitor(LoadBalancerPoolHealthMonitorPrototype healthMonitor) Set the healthMonitor.- Parameters:
healthMonitor- the healthMonitor- Returns:
- the CreateLoadBalancerPoolOptions builder
-
protocol
Set the protocol.- Parameters:
protocol- the protocol- Returns:
- the CreateLoadBalancerPoolOptions builder
-
members
Set the members. Existing members will be replaced.- Parameters:
members- the members- Returns:
- the CreateLoadBalancerPoolOptions builder
-
name
Set the name.- Parameters:
name- the name- Returns:
- the CreateLoadBalancerPoolOptions builder
-
proxyProtocol
Set the proxyProtocol.- Parameters:
proxyProtocol- the proxyProtocol- Returns:
- the CreateLoadBalancerPoolOptions builder
-
sessionPersistence
public CreateLoadBalancerPoolOptions.Builder sessionPersistence(LoadBalancerPoolSessionPersistencePrototype sessionPersistence) Set the sessionPersistence.- Parameters:
sessionPersistence- the sessionPersistence- Returns:
- the CreateLoadBalancerPoolOptions builder
-