Class BackendSet.Builder
- java.lang.Object
- 
- com.oracle.bmc.networkloadbalancer.model.BackendSet.Builder
 
- 
- Enclosing class:
- BackendSet
 
 public static class BackendSet.Builder extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description BackendSet.BuilderareOperationallyActiveBackendsPreferred(Boolean areOperationallyActiveBackendsPreferred)If enabled, NLB supports active-standby backends.BackendSet.Builderbackends(List<Backend> backends)An array of backends.BackendSetbuild()BackendSet.Buildercopy(BackendSet model)BackendSet.BuilderhealthChecker(HealthChecker healthChecker)BackendSet.BuilderipVersion(IpVersion ipVersion)IP version associated with the backend set.BackendSet.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.BackendSet.BuilderisInstantFailoverEnabled(Boolean isInstantFailoverEnabled)If enabled existing connections will be forwarded to an alternative healthy backend as soon as current backend becomes unhealthy.BackendSet.BuilderisInstantFailoverTcpResetEnabled(Boolean isInstantFailoverTcpResetEnabled)If enabled along with instant failover, the network load balancer will send TCP RST to the clients for the existing connections instead of failing over to a healthy backend.BackendSet.BuilderisPreserveSource(Boolean isPreserveSource)If this parameter is enabled, then the network load balancer preserves the source IP of the packet when it is forwarded to backends.BackendSet.Buildername(String name)A user-friendly name for the backend set that must be unique and cannot be changed.BackendSet.Builderpolicy(NetworkLoadBalancingPolicy policy)The network load balancer policy for the backend set.
 
- 
- 
- 
Method Detail- 
namepublic BackendSet.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
 
 - 
policypublic BackendSet.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
 
 - 
isPreserveSourcepublic BackendSet.Builder isPreserveSource(Boolean isPreserveSource) If this parameter is enabled, then the network load balancer preserves the source IP of the packet when it is forwarded to backends.Backends see the original source IP. If the isPreserveSourceDestination parameter is enabled for the network load balancer resource, then this parameter cannot be disabled. The value is true by default. - Parameters:
- isPreserveSource- the value to set
- Returns:
- this builder
 
 - 
isFailOpenpublic BackendSet.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
 
 - 
isInstantFailoverEnabledpublic BackendSet.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
 
 - 
isInstantFailoverTcpResetEnabledpublic BackendSet.Builder isInstantFailoverTcpResetEnabled(Boolean isInstantFailoverTcpResetEnabled) If enabled along with instant failover, the network load balancer will send TCP RST to the clients for the existing connections instead of failing over to a healthy backend.This only applies when using the instant failover. By default, TCP RST is enabled. - Parameters:
- isInstantFailoverTcpResetEnabled- the value to set
- Returns:
- this builder
 
 - 
areOperationallyActiveBackendsPreferredpublic BackendSet.Builder areOperationallyActiveBackendsPreferred(Boolean areOperationallyActiveBackendsPreferred) If enabled, NLB supports active-standby backends.The standby backend takes over the traffic when the active node fails, and continues to serve the traffic even when the old active node is back healthy. - Parameters:
- areOperationallyActiveBackendsPreferred- the value to set
- Returns:
- this builder
 
 - 
ipVersionpublic BackendSet.Builder ipVersion(IpVersion ipVersion) IP version associated with the backend set.- Parameters:
- ipVersion- the value to set
- Returns:
- this builder
 
 - 
backendspublic BackendSet.Builder backends(List<Backend> backends) An array of backends.- Parameters:
- backends- the value to set
- Returns:
- this builder
 
 - 
healthCheckerpublic BackendSet.Builder healthChecker(HealthChecker healthChecker) 
 - 
buildpublic BackendSet build() 
 - 
copypublic BackendSet.Builder copy(BackendSet model) 
 
- 
 
-