Class BackendSet.Builder
- java.lang.Object
-
- com.oracle.bmc.loadbalancer.model.BackendSet.Builder
-
- Enclosing class:
- BackendSet
public static class BackendSet.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
name
public BackendSet.Builder name(String name)
A friendly name for the backend set.It must be unique and it 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 BackendSet.Builder policy(String policy)
The load balancer policy for the backend set.To get a list of available policies, use the
listPolicies
operation.Example: LEAST_CONNECTIONS
- Parameters:
policy
- the value to set- Returns:
- this builder
-
backends
public BackendSet.Builder backends(List<Backend> backends)
-
backendMaxConnections
public BackendSet.Builder backendMaxConnections(Integer backendMaxConnections)
The maximum number of simultaneous connections the load balancer can make to any backend in the backend set unless the backend has its own maxConnections setting.If this is not set then the number of simultaneous connections the load balancer can make to any backend in the backend set unless the backend has its own maxConnections setting is unlimited.
Example: 300
- Parameters:
backendMaxConnections
- the value to set- Returns:
- this builder
-
healthChecker
public BackendSet.Builder healthChecker(HealthChecker healthChecker)
-
sslConfiguration
public BackendSet.Builder sslConfiguration(SSLConfiguration sslConfiguration)
-
sessionPersistenceConfiguration
public BackendSet.Builder sessionPersistenceConfiguration(SessionPersistenceConfigurationDetails sessionPersistenceConfiguration)
-
lbCookieSessionPersistenceConfiguration
public BackendSet.Builder lbCookieSessionPersistenceConfiguration(LBCookieSessionPersistenceConfigurationDetails lbCookieSessionPersistenceConfiguration)
-
build
public BackendSet build()
-
copy
public BackendSet.Builder copy(BackendSet model)
-
-