Package com.ibm.cloud.is.vpc.v1.model
Class CreateLoadBalancerPoolOptions.Builder
- java.lang.Object
-
- com.ibm.cloud.is.vpc.v1.model.CreateLoadBalancerPoolOptions.Builder
-
- Enclosing class:
- CreateLoadBalancerPoolOptions
public static class CreateLoadBalancerPoolOptions.Builder extends Object
Builder.
-
-
Method Summary
-
-
-
Constructor Detail
-
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 Detail
-
build
public CreateLoadBalancerPoolOptions build()
Builds a CreateLoadBalancerPoolOptions.- Returns:
- the new CreateLoadBalancerPoolOptions instance
-
addMembers
public CreateLoadBalancerPoolOptions.Builder addMembers(LoadBalancerPoolMemberPrototype members)
Adds a new element to members.- Parameters:
members
- the new element to be added- Returns:
- the CreateLoadBalancerPoolOptions builder
-
loadBalancerId
public CreateLoadBalancerPoolOptions.Builder loadBalancerId(String loadBalancerId)
Set the loadBalancerId.- Parameters:
loadBalancerId
- the loadBalancerId- Returns:
- the CreateLoadBalancerPoolOptions builder
-
algorithm
public CreateLoadBalancerPoolOptions.Builder algorithm(String 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
public CreateLoadBalancerPoolOptions.Builder protocol(String protocol)
Set the protocol.- Parameters:
protocol
- the protocol- Returns:
- the CreateLoadBalancerPoolOptions builder
-
members
public CreateLoadBalancerPoolOptions.Builder members(List<LoadBalancerPoolMemberPrototype> members)
Set the members. Existing members will be replaced.- Parameters:
members
- the members- Returns:
- the CreateLoadBalancerPoolOptions builder
-
name
public CreateLoadBalancerPoolOptions.Builder name(String name)
Set the name.- Parameters:
name
- the name- Returns:
- the CreateLoadBalancerPoolOptions builder
-
proxyProtocol
public CreateLoadBalancerPoolOptions.Builder proxyProtocol(String 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
-
-