public static class BackendSetSummary.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
BackendSetSummary.Builder |
backends(List<Backend> backends)
An array of backends.
|
BackendSetSummary |
build() |
BackendSetSummary.Builder |
copy(BackendSetSummary model) |
BackendSetSummary.Builder |
healthChecker(HealthChecker healthChecker) |
BackendSetSummary.Builder |
ipVersion(IpVersion ipVersion)
IP version associated with the backend set.
|
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.
|
BackendSetSummary.Builder |
isInstantFailoverEnabled(Boolean isInstantFailoverEnabled)
If enabled existing connections will be forwarded to an alternative healthy backend as
soon as current backend becomes unhealthy.
|
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.
|
BackendSetSummary.Builder |
name(String name)
A user-friendly name for the backend set that must be unique and cannot be changed.
|
BackendSetSummary.Builder |
policy(NetworkLoadBalancingPolicy policy)
The network load balancer policy for the backend set.
|
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
name
- the value to setpublic BackendSetSummary.Builder policy(NetworkLoadBalancingPolicy policy)
The network load balancer policy for the backend set.
Example: FIVE_TUPLE
policy
- the value to setpublic 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.
isPreserveSource
- the value to setpublic 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.
isFailOpen
- the value to setpublic BackendSetSummary.Builder isInstantFailoverEnabled(Boolean isInstantFailoverEnabled)
If enabled existing connections will be forwarded to an alternative healthy backend as soon as current backend becomes unhealthy.
isInstantFailoverEnabled
- the value to setpublic BackendSetSummary.Builder ipVersion(IpVersion ipVersion)
IP version associated with the backend set.
ipVersion
- the value to setpublic BackendSetSummary.Builder backends(List<Backend> backends)
An array of backends.
backends
- the value to setpublic BackendSetSummary.Builder healthChecker(HealthChecker healthChecker)
public BackendSetSummary build()
public BackendSetSummary.Builder copy(BackendSetSummary model)
Copyright © 2016–2024. All rights reserved.