Class CreatePoolOptions.Builder
- java.lang.Object
-
- com.ibm.cloud.networking.dns_svcs.v1.model.CreatePoolOptions.Builder
-
- Enclosing class:
- CreatePoolOptions
public static class CreatePoolOptions.Builder extends Object
Builder.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreatePoolOptions.Builder
addHealthcheckSubnets(String healthcheckSubnets)
Adds an healthcheckSubnets to healthcheckSubnets.CreatePoolOptions.Builder
addOrigins(OriginInput origins)
Adds an origins to origins.CreatePoolOptions
build()
Builds a CreatePoolOptions.CreatePoolOptions.Builder
description(String description)
Set the description.CreatePoolOptions.Builder
enabled(Boolean enabled)
Set the enabled.CreatePoolOptions.Builder
healthcheckRegion(String healthcheckRegion)
Set the healthcheckRegion.CreatePoolOptions.Builder
healthcheckSubnets(List<String> healthcheckSubnets)
Set the healthcheckSubnets.CreatePoolOptions.Builder
healthyOriginsThreshold(long healthyOriginsThreshold)
Set the healthyOriginsThreshold.CreatePoolOptions.Builder
instanceId(String instanceId)
Set the instanceId.CreatePoolOptions.Builder
monitor(String monitor)
Set the monitor.CreatePoolOptions.Builder
name(String name)
Set the name.CreatePoolOptions.Builder
notificationChannel(String notificationChannel)
Set the notificationChannel.CreatePoolOptions.Builder
origins(List<OriginInput> origins)
Set the origins.CreatePoolOptions.Builder
xCorrelationId(String xCorrelationId)
Set the xCorrelationId.
-
-
-
Constructor Detail
-
Builder
public Builder()
Instantiates a new builder.
-
Builder
public Builder(String instanceId)
Instantiates a new builder with required properties.- Parameters:
instanceId
- the instanceId
-
-
Method Detail
-
build
public CreatePoolOptions build()
Builds a CreatePoolOptions.- Returns:
- the new CreatePoolOptions instance
-
addOrigins
public CreatePoolOptions.Builder addOrigins(OriginInput origins)
Adds an origins to origins.- Parameters:
origins
- the new origins- Returns:
- the CreatePoolOptions builder
-
addHealthcheckSubnets
public CreatePoolOptions.Builder addHealthcheckSubnets(String healthcheckSubnets)
Adds an healthcheckSubnets to healthcheckSubnets.- Parameters:
healthcheckSubnets
- the new healthcheckSubnets- Returns:
- the CreatePoolOptions builder
-
instanceId
public CreatePoolOptions.Builder instanceId(String instanceId)
Set the instanceId.- Parameters:
instanceId
- the instanceId- Returns:
- the CreatePoolOptions builder
-
name
public CreatePoolOptions.Builder name(String name)
Set the name.- Parameters:
name
- the name- Returns:
- the CreatePoolOptions builder
-
description
public CreatePoolOptions.Builder description(String description)
Set the description.- Parameters:
description
- the description- Returns:
- the CreatePoolOptions builder
-
enabled
public CreatePoolOptions.Builder enabled(Boolean enabled)
Set the enabled.- Parameters:
enabled
- the enabled- Returns:
- the CreatePoolOptions builder
-
healthyOriginsThreshold
public CreatePoolOptions.Builder healthyOriginsThreshold(long healthyOriginsThreshold)
Set the healthyOriginsThreshold.- Parameters:
healthyOriginsThreshold
- the healthyOriginsThreshold- Returns:
- the CreatePoolOptions builder
-
origins
public CreatePoolOptions.Builder origins(List<OriginInput> origins)
Set the origins. Existing origins will be replaced.- Parameters:
origins
- the origins- Returns:
- the CreatePoolOptions builder
-
monitor
public CreatePoolOptions.Builder monitor(String monitor)
Set the monitor.- Parameters:
monitor
- the monitor- Returns:
- the CreatePoolOptions builder
-
notificationChannel
public CreatePoolOptions.Builder notificationChannel(String notificationChannel)
Set the notificationChannel.- Parameters:
notificationChannel
- the notificationChannel- Returns:
- the CreatePoolOptions builder
-
healthcheckRegion
public CreatePoolOptions.Builder healthcheckRegion(String healthcheckRegion)
Set the healthcheckRegion.- Parameters:
healthcheckRegion
- the healthcheckRegion- Returns:
- the CreatePoolOptions builder
-
healthcheckSubnets
public CreatePoolOptions.Builder healthcheckSubnets(List<String> healthcheckSubnets)
Set the healthcheckSubnets. Existing healthcheckSubnets will be replaced.- Parameters:
healthcheckSubnets
- the healthcheckSubnets- Returns:
- the CreatePoolOptions builder
-
xCorrelationId
public CreatePoolOptions.Builder xCorrelationId(String xCorrelationId)
Set the xCorrelationId.- Parameters:
xCorrelationId
- the xCorrelationId- Returns:
- the CreatePoolOptions builder
-
-