Package com.ibm.cloud.is.vpc.v1.model
Class CreateLoadBalancerOptions.Builder
- java.lang.Object
-
- com.ibm.cloud.is.vpc.v1.model.CreateLoadBalancerOptions.Builder
-
- Enclosing class:
- CreateLoadBalancerOptions
public static class CreateLoadBalancerOptions.Builder extends Object
Builder.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder.Builder(Boolean isPublic, List<SubnetIdentity> subnets)
Instantiates a new builder with required properties.
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder()
Instantiates a new builder.
-
Builder
public Builder(Boolean isPublic, List<SubnetIdentity> subnets)
Instantiates a new builder with required properties.- Parameters:
isPublic
- the isPublicsubnets
- the subnets
-
-
Method Detail
-
build
public CreateLoadBalancerOptions build()
Builds a CreateLoadBalancerOptions.- Returns:
- the new CreateLoadBalancerOptions instance
-
addSubnets
public CreateLoadBalancerOptions.Builder addSubnets(SubnetIdentity subnets)
Adds a new element to subnets.- Parameters:
subnets
- the new element to be added- Returns:
- the CreateLoadBalancerOptions builder
-
addListeners
public CreateLoadBalancerOptions.Builder addListeners(LoadBalancerListenerPrototypeLoadBalancerContext listeners)
Adds a new element to listeners.- Parameters:
listeners
- the new element to be added- Returns:
- the CreateLoadBalancerOptions builder
-
addPools
public CreateLoadBalancerOptions.Builder addPools(LoadBalancerPoolPrototype pools)
Adds a new element to pools.- Parameters:
pools
- the new element to be added- Returns:
- the CreateLoadBalancerOptions builder
-
addSecurityGroups
public CreateLoadBalancerOptions.Builder addSecurityGroups(SecurityGroupIdentity securityGroups)
Adds a new element to securityGroups.- Parameters:
securityGroups
- the new element to be added- Returns:
- the CreateLoadBalancerOptions builder
-
isPublic
public CreateLoadBalancerOptions.Builder isPublic(Boolean isPublic)
Set the isPublic.- Parameters:
isPublic
- the isPublic- Returns:
- the CreateLoadBalancerOptions builder
-
subnets
public CreateLoadBalancerOptions.Builder subnets(List<SubnetIdentity> subnets)
Set the subnets. Existing subnets will be replaced.- Parameters:
subnets
- the subnets- Returns:
- the CreateLoadBalancerOptions builder
-
dns
public CreateLoadBalancerOptions.Builder dns(LoadBalancerDNSPrototype dns)
Set the dns.- Parameters:
dns
- the dns- Returns:
- the CreateLoadBalancerOptions builder
-
isPrivatePath
public CreateLoadBalancerOptions.Builder isPrivatePath(Boolean isPrivatePath)
Set the isPrivatePath.- Parameters:
isPrivatePath
- the isPrivatePath- Returns:
- the CreateLoadBalancerOptions builder
-
listeners
public CreateLoadBalancerOptions.Builder listeners(List<LoadBalancerListenerPrototypeLoadBalancerContext> listeners)
Set the listeners. Existing listeners will be replaced.- Parameters:
listeners
- the listeners- Returns:
- the CreateLoadBalancerOptions builder
-
logging
public CreateLoadBalancerOptions.Builder logging(LoadBalancerLoggingPrototype logging)
Set the logging.- Parameters:
logging
- the logging- Returns:
- the CreateLoadBalancerOptions builder
-
name
public CreateLoadBalancerOptions.Builder name(String name)
Set the name.- Parameters:
name
- the name- Returns:
- the CreateLoadBalancerOptions builder
-
pools
public CreateLoadBalancerOptions.Builder pools(List<LoadBalancerPoolPrototype> pools)
Set the pools. Existing pools will be replaced.- Parameters:
pools
- the pools- Returns:
- the CreateLoadBalancerOptions builder
-
profile
public CreateLoadBalancerOptions.Builder profile(LoadBalancerProfileIdentity profile)
Set the profile.- Parameters:
profile
- the profile- Returns:
- the CreateLoadBalancerOptions builder
-
resourceGroup
public CreateLoadBalancerOptions.Builder resourceGroup(ResourceGroupIdentity resourceGroup)
Set the resourceGroup.- Parameters:
resourceGroup
- the resourceGroup- Returns:
- the CreateLoadBalancerOptions builder
-
routeMode
public CreateLoadBalancerOptions.Builder routeMode(Boolean routeMode)
Set the routeMode.- Parameters:
routeMode
- the routeMode- Returns:
- the CreateLoadBalancerOptions builder
-
securityGroups
public CreateLoadBalancerOptions.Builder securityGroups(List<SecurityGroupIdentity> securityGroups)
Set the securityGroups. Existing securityGroups will be replaced.- Parameters:
securityGroups
- the securityGroups- Returns:
- the CreateLoadBalancerOptions builder
-
-