Package com.ibm.cloud.is.vpc.v1.model
Class CreateLoadBalancerPoolMemberOptions.Builder
- java.lang.Object
-
- com.ibm.cloud.is.vpc.v1.model.CreateLoadBalancerPoolMemberOptions.Builder
-
- Enclosing class:
- CreateLoadBalancerPoolMemberOptions
public static class CreateLoadBalancerPoolMemberOptions.Builder extends Object
Builder.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateLoadBalancerPoolMemberOptions
build()
Builds a CreateLoadBalancerPoolMemberOptions.CreateLoadBalancerPoolMemberOptions.Builder
loadBalancerId(String loadBalancerId)
Set the loadBalancerId.CreateLoadBalancerPoolMemberOptions.Builder
poolId(String poolId)
Set the poolId.CreateLoadBalancerPoolMemberOptions.Builder
port(long port)
Set the port.CreateLoadBalancerPoolMemberOptions.Builder
target(LoadBalancerPoolMemberTargetPrototype target)
Set the target.CreateLoadBalancerPoolMemberOptions.Builder
weight(long weight)
Set the weight.
-
-
-
Constructor Detail
-
Builder
public Builder()
Instantiates a new builder.
-
Builder
public Builder(String loadBalancerId, String poolId, Long port, LoadBalancerPoolMemberTargetPrototype target)
Instantiates a new builder with required properties.- Parameters:
loadBalancerId
- the loadBalancerIdpoolId
- the poolIdport
- the porttarget
- the target
-
-
Method Detail
-
build
public CreateLoadBalancerPoolMemberOptions build()
Builds a CreateLoadBalancerPoolMemberOptions.- Returns:
- the new CreateLoadBalancerPoolMemberOptions instance
-
loadBalancerId
public CreateLoadBalancerPoolMemberOptions.Builder loadBalancerId(String loadBalancerId)
Set the loadBalancerId.- Parameters:
loadBalancerId
- the loadBalancerId- Returns:
- the CreateLoadBalancerPoolMemberOptions builder
-
poolId
public CreateLoadBalancerPoolMemberOptions.Builder poolId(String poolId)
Set the poolId.- Parameters:
poolId
- the poolId- Returns:
- the CreateLoadBalancerPoolMemberOptions builder
-
port
public CreateLoadBalancerPoolMemberOptions.Builder port(long port)
Set the port.- Parameters:
port
- the port- Returns:
- the CreateLoadBalancerPoolMemberOptions builder
-
target
public CreateLoadBalancerPoolMemberOptions.Builder target(LoadBalancerPoolMemberTargetPrototype target)
Set the target.- Parameters:
target
- the target- Returns:
- the CreateLoadBalancerPoolMemberOptions builder
-
weight
public CreateLoadBalancerPoolMemberOptions.Builder weight(long weight)
Set the weight.- Parameters:
weight
- the weight- Returns:
- the CreateLoadBalancerPoolMemberOptions builder
-
-