Class CreateLoadBalancerOptions.Builder
java.lang.Object
com.ibm.cloud.is.vpc.v1.model.CreateLoadBalancerOptions.Builder
-
Constructor Summary
ConstructorsConstructorDescriptionBuilder()
Instantiates a new builder.Builder
(Boolean isPublic, List<SubnetIdentity> subnets) Instantiates a new builder with required properties. -
Method Summary
Modifier and TypeMethodDescriptionAdds a new element to listeners.Adds a new element to pools.addSecurityGroups
(SecurityGroupIdentity securityGroups) Adds a new element to securityGroups.addSubnets
(SubnetIdentity subnets) Adds a new element to subnets.build()
Builds a CreateLoadBalancerOptions.Set the dns.isPrivatePath
(Boolean isPrivatePath) Set the isPrivatePath.Set the isPublic.Set the listeners.logging
(LoadBalancerLoggingPrototype logging) Set the logging.Set the name.pools
(List<LoadBalancerPoolPrototype> pools) Set the pools.profile
(LoadBalancerProfileIdentity profile) Set the profile.resourceGroup
(ResourceGroupIdentity resourceGroup) Set the resourceGroup.Set the routeMode.securityGroups
(List<SecurityGroupIdentity> securityGroups) Set the securityGroups.subnets
(List<SubnetIdentity> subnets) Set the subnets.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
isPublic
- the isPublicsubnets
- the subnets
-
-
Method Details
-
build
Builds a CreateLoadBalancerOptions.- Returns:
- the new CreateLoadBalancerOptions instance
-
addSubnets
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
Adds a new element to pools.- Parameters:
pools
- the new element to be added- Returns:
- the CreateLoadBalancerOptions builder
-
addSecurityGroups
Adds a new element to securityGroups.- Parameters:
securityGroups
- the new element to be added- Returns:
- the CreateLoadBalancerOptions builder
-
isPublic
Set the isPublic.- Parameters:
isPublic
- the isPublic- Returns:
- the CreateLoadBalancerOptions builder
-
subnets
Set the subnets. Existing subnets will be replaced.- Parameters:
subnets
- the subnets- Returns:
- the CreateLoadBalancerOptions builder
-
dns
Set the dns.- Parameters:
dns
- the dns- Returns:
- the CreateLoadBalancerOptions builder
-
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
Set the logging.- Parameters:
logging
- the logging- Returns:
- the CreateLoadBalancerOptions builder
-
name
Set the name.- Parameters:
name
- the name- Returns:
- the CreateLoadBalancerOptions builder
-
pools
Set the pools. Existing pools will be replaced.- Parameters:
pools
- the pools- Returns:
- the CreateLoadBalancerOptions builder
-
profile
Set the profile.- Parameters:
profile
- the profile- Returns:
- the CreateLoadBalancerOptions builder
-
resourceGroup
Set the resourceGroup.- Parameters:
resourceGroup
- the resourceGroup- Returns:
- the CreateLoadBalancerOptions builder
-
routeMode
Set the routeMode.- Parameters:
routeMode
- the routeMode- Returns:
- the CreateLoadBalancerOptions builder
-
securityGroups
Set the securityGroups. Existing securityGroups will be replaced.- Parameters:
securityGroups
- the securityGroups- Returns:
- the CreateLoadBalancerOptions builder
-