Class UpdateBackendSetDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.networkloadbalancer.model.UpdateBackendSetDetails.Builder
-
- Enclosing class:
- UpdateBackendSetDetails
public static class UpdateBackendSetDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateBackendSetDetails.BuilderareOperationallyActiveBackendsPreferred(Boolean areOperationallyActiveBackendsPreferred)If enabled, NLB supports active-standby backends.UpdateBackendSetDetails.Builderbackends(List<BackendDetails> backends)An array of backends associated with the backend set.UpdateBackendSetDetailsbuild()UpdateBackendSetDetails.Buildercopy(UpdateBackendSetDetails model)UpdateBackendSetDetails.BuilderhealthChecker(HealthCheckerDetails healthChecker)UpdateBackendSetDetails.BuilderipVersion(IpVersion ipVersion)The IP version associated with the backend set.UpdateBackendSetDetails.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.UpdateBackendSetDetails.BuilderisInstantFailoverEnabled(Boolean isInstantFailoverEnabled)If enabled existing connections will be forwarded to an alternative healthy backend as soon as current backend becomes unhealthy.UpdateBackendSetDetails.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.UpdateBackendSetDetails.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.UpdateBackendSetDetails.Builderpolicy(String policy)The network load balancer policy for the backend set.
-
-
-
Method Detail
-
policy
public UpdateBackendSetDetails.Builder policy(String policy)
The network load balancer policy for the backend set.To get a list of available policies, use the
listNetworkLoadBalancersPoliciesoperation.Example: FIVE_TUPLE
- Parameters:
policy- the value to set- Returns:
- this builder
-
isPreserveSource
public UpdateBackendSetDetails.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
-
isFailOpen
public UpdateBackendSetDetails.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 UpdateBackendSetDetails.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 UpdateBackendSetDetails.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.
- Parameters:
isInstantFailoverTcpResetEnabled- the value to set- Returns:
- this builder
-
areOperationallyActiveBackendsPreferred
public UpdateBackendSetDetails.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
-
ipVersion
public UpdateBackendSetDetails.Builder ipVersion(IpVersion ipVersion)
The IP version associated with the backend set.- Parameters:
ipVersion- the value to set- Returns:
- this builder
-
backends
public UpdateBackendSetDetails.Builder backends(List<BackendDetails> backends)
An array of backends associated with the backend set.- Parameters:
backends- the value to set- Returns:
- this builder
-
healthChecker
public UpdateBackendSetDetails.Builder healthChecker(HealthCheckerDetails healthChecker)
-
build
public UpdateBackendSetDetails build()
-
copy
public UpdateBackendSetDetails.Builder copy(UpdateBackendSetDetails model)
-
-