Class CreateLoadBalancerOptions.Builder
- java.lang.Object
-
- com.ibm.cloud.networking.dns_svcs.v1.model.CreateLoadBalancerOptions.Builder
-
- Enclosing class:
- CreateLoadBalancerOptions
public static class CreateLoadBalancerOptions.Builder extends Object
Builder.
-
-
Method Summary
-
-
-
Method Detail
-
build
public CreateLoadBalancerOptions build()
Builds a CreateLoadBalancerOptions.- Returns:
- the new CreateLoadBalancerOptions instance
-
addDefaultPools
public CreateLoadBalancerOptions.Builder addDefaultPools(String defaultPools)
Adds an defaultPools to defaultPools.- Parameters:
defaultPools
- the new defaultPools- Returns:
- the CreateLoadBalancerOptions builder
-
addAzPools
public CreateLoadBalancerOptions.Builder addAzPools(AzPoolsItem azPools)
Adds an azPools to azPools.- Parameters:
azPools
- the new azPools- Returns:
- the CreateLoadBalancerOptions builder
-
instanceId
public CreateLoadBalancerOptions.Builder instanceId(String instanceId)
Set the instanceId.- Parameters:
instanceId
- the instanceId- Returns:
- the CreateLoadBalancerOptions builder
-
dnszoneId
public CreateLoadBalancerOptions.Builder dnszoneId(String dnszoneId)
Set the dnszoneId.- Parameters:
dnszoneId
- the dnszoneId- Returns:
- the CreateLoadBalancerOptions builder
-
name
public CreateLoadBalancerOptions.Builder name(String name)
Set the name.- Parameters:
name
- the name- Returns:
- the CreateLoadBalancerOptions builder
-
description
public CreateLoadBalancerOptions.Builder description(String description)
Set the description.- Parameters:
description
- the description- Returns:
- the CreateLoadBalancerOptions builder
-
enabled
public CreateLoadBalancerOptions.Builder enabled(Boolean enabled)
Set the enabled.- Parameters:
enabled
- the enabled- Returns:
- the CreateLoadBalancerOptions builder
-
ttl
public CreateLoadBalancerOptions.Builder ttl(long ttl)
Set the ttl.- Parameters:
ttl
- the ttl- Returns:
- the CreateLoadBalancerOptions builder
-
fallbackPool
public CreateLoadBalancerOptions.Builder fallbackPool(String fallbackPool)
Set the fallbackPool.- Parameters:
fallbackPool
- the fallbackPool- Returns:
- the CreateLoadBalancerOptions builder
-
defaultPools
public CreateLoadBalancerOptions.Builder defaultPools(List<String> defaultPools)
Set the defaultPools. Existing defaultPools will be replaced.- Parameters:
defaultPools
- the defaultPools- Returns:
- the CreateLoadBalancerOptions builder
-
azPools
public CreateLoadBalancerOptions.Builder azPools(List<AzPoolsItem> azPools)
Set the azPools. Existing azPools will be replaced.- Parameters:
azPools
- the azPools- Returns:
- the CreateLoadBalancerOptions builder
-
xCorrelationId
public CreateLoadBalancerOptions.Builder xCorrelationId(String xCorrelationId)
Set the xCorrelationId.- Parameters:
xCorrelationId
- the xCorrelationId- Returns:
- the CreateLoadBalancerOptions builder
-
-