Class BackendSetSummary.Builder
- java.lang.Object
-
- com.oracle.bmc.networkloadbalancer.model.BackendSetSummary.Builder
-
- Enclosing class:
- BackendSetSummary
public static class BackendSetSummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BackendSetSummary.BuilderareOperationallyActiveBackendsPreferred(Boolean areOperationallyActiveBackendsPreferred)If enabled, NLB supports active-standby backends, with the initial standby being the configured backup backend.BackendSetSummary.Builderbackends(List<Backend> backends)An array of backends.BackendSetSummarybuild()BackendSetSummary.Buildercopy(BackendSetSummary model)BackendSetSummary.BuilderhealthChecker(HealthChecker healthChecker)BackendSetSummary.BuilderipVersion(IpVersion ipVersion)IP version associated with the backend set.BackendSetSummary.BuilderisFailOpen(Boolean isFailOpen)If enabled, the network load balancer will continue to distribute traffic in the configured distribution in the event all backends are unhealthy.BackendSetSummary.BuilderisInstantFailoverEnabled(Boolean isInstantFailoverEnabled)If enabled existing connections will be forwarded to an alternative healthy backend as soon as current backend becomes unhealthy.BackendSetSummary.BuilderisInstantFailoverTcpResetEnabled(Boolean isInstantFailoverTcpResetEnabled)This only applies when using instant failover.BackendSetSummary.BuilderisPreserveSource(Boolean isPreserveSource)If this parameter is enabled, the network load balancer preserves the source IP of the packet forwarded to the backend servers.BackendSetSummary.Buildername(String name)A user-friendly name for the backend set that must be unique and cannot be changed.BackendSetSummary.Builderpolicy(NetworkLoadBalancingPolicy policy)The network load balancer policy for the backend set.
-
-
-
Method Detail
-
name
public BackendSetSummary.Builder name(String name)
A user-friendly name for the backend set that must be unique and cannot be changed.Valid backend set names include only alphanumeric characters, dashes, and underscores. Backend set names cannot contain spaces. Avoid entering confidential information.
Example: example_backend_set
- Parameters:
name- the value to set- Returns:
- this builder
-
policy
public BackendSetSummary.Builder policy(NetworkLoadBalancingPolicy policy)
The network load balancer policy for the backend set.Example: FIVE_TUPLE
- Parameters:
policy- the value to set- Returns:
- this builder
-
isPreserveSource
public BackendSetSummary.Builder isPreserveSource(Boolean isPreserveSource)
If this parameter is enabled, the network load balancer preserves the source IP of the packet forwarded to the backend servers.Backend servers see the original source IP. If the isPreserveSourceDestination parameter is enabled for the network load balancer resource, this parameter cannot be disabled. The value is true by default.
- Parameters:
isPreserveSource- the value to set- Returns:
- this builder
-
isFailOpen
public BackendSetSummary.Builder isFailOpen(Boolean isFailOpen)
If enabled, the network load balancer will continue to distribute traffic in the configured distribution in the event all backends are unhealthy.The value is false by default.
- Parameters:
isFailOpen- the value to set- Returns:
- this builder
-
isInstantFailoverEnabled
public BackendSetSummary.Builder isInstantFailoverEnabled(Boolean isInstantFailoverEnabled)
If enabled existing connections will be forwarded to an alternative healthy backend as soon as current backend becomes unhealthy.- Parameters:
isInstantFailoverEnabled- the value to set- Returns:
- this builder
-
isInstantFailoverTcpResetEnabled
public BackendSetSummary.Builder isInstantFailoverTcpResetEnabled(Boolean isInstantFailoverTcpResetEnabled)
This only applies when using instant failover.If enabled, the network load balancer will send TCP RST to clients when a backend becomes unhealthy and the traffic is moved to a healthy backend. If disabled, the network load balancer will not send TCP RST before moving traffic to a healthy backend. By default, TCP RST is enabled.
- Parameters:
isInstantFailoverTcpResetEnabled- the value to set- Returns:
- this builder
-
areOperationallyActiveBackendsPreferred
public BackendSetSummary.Builder areOperationallyActiveBackendsPreferred(Boolean areOperationallyActiveBackendsPreferred)
If enabled, NLB supports active-standby backends, with the initial standby being the configured backup backend.The standby backend becomes active and takes over serving traffic when the current active backend becomes unhealthy. The new active backend continues to serve the traffic while healthy even when the old active backend becomes healthy.
- Parameters:
areOperationallyActiveBackendsPreferred- the value to set- Returns:
- this builder
-
ipVersion
public BackendSetSummary.Builder ipVersion(IpVersion ipVersion)
IP version associated with the backend set.- Parameters:
ipVersion- the value to set- Returns:
- this builder
-
backends
public BackendSetSummary.Builder backends(List<Backend> backends)
An array of backends.- Parameters:
backends- the value to set- Returns:
- this builder
-
healthChecker
public BackendSetSummary.Builder healthChecker(HealthChecker healthChecker)
-
build
public BackendSetSummary build()
-
copy
public BackendSetSummary.Builder copy(BackendSetSummary model)
-
-