Class LoadBalancerHealth.Builder
- java.lang.Object
-
- com.oracle.bmc.loadbalancer.model.LoadBalancerHealth.Builder
-
- Enclosing class:
- LoadBalancerHealth
public static class LoadBalancerHealth.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LoadBalancerHealth
build()
LoadBalancerHealth.Builder
copy(LoadBalancerHealth model)
LoadBalancerHealth.Builder
criticalStateBackendSetNames(List<String> criticalStateBackendSetNames)
A list of backend sets that are currently in the CRITICAL health state.LoadBalancerHealth.Builder
status(LoadBalancerHealth.Status status)
The overall health status of the load balancer.LoadBalancerHealth.Builder
totalBackendSetCount(Integer totalBackendSetCount)
The total number of backend sets associated with this load balancer.LoadBalancerHealth.Builder
unknownStateBackendSetNames(List<String> unknownStateBackendSetNames)
A list of backend sets that are currently in the UNKNOWN health state.LoadBalancerHealth.Builder
warningStateBackendSetNames(List<String> warningStateBackendSetNames)
A list of backend sets that are currently in the WARNING health state.
-
-
-
Method Detail
-
status
public LoadBalancerHealth.Builder status(LoadBalancerHealth.Status status)
The overall health status of the load balancer.**OK:** All backend sets associated with the load balancer return a status of OK.
**WARNING:** At least one of the backend sets associated with the load balancer returns a status of WARNING, no backend sets return a status of CRITICAL, and the load balancer life cycle state is ACTIVE.
**CRITICAL:** One or more of the backend sets associated with the load balancer return a status of CRITICAL.
**UNKNOWN:** If any one of the following conditions is true:
The load balancer life cycle state is not ACTIVE.
No backend sets are defined for the load balancer.
More than half of the backend sets associated with the load balancer return a status of UNKNOWN, none of the backend sets return a status of WARNING or CRITICAL, and the load balancer life cycle state is ACTIVE.
The system could not retrieve metrics for any reason.
- Parameters:
status
- the value to set- Returns:
- this builder
-
warningStateBackendSetNames
public LoadBalancerHealth.Builder warningStateBackendSetNames(List<String> warningStateBackendSetNames)
A list of backend sets that are currently in the WARNING health state.The list identifies each backend set by the friendly name you assigned when you created it.
Example: example_backend_set3
- Parameters:
warningStateBackendSetNames
- the value to set- Returns:
- this builder
-
criticalStateBackendSetNames
public LoadBalancerHealth.Builder criticalStateBackendSetNames(List<String> criticalStateBackendSetNames)
A list of backend sets that are currently in the CRITICAL health state.The list identifies each backend set by the friendly name you assigned when you created it.
Example: example_backend_set
- Parameters:
criticalStateBackendSetNames
- the value to set- Returns:
- this builder
-
unknownStateBackendSetNames
public LoadBalancerHealth.Builder unknownStateBackendSetNames(List<String> unknownStateBackendSetNames)
A list of backend sets that are currently in the UNKNOWN health state.The list identifies each backend set by the friendly name you assigned when you created it.
Example: example_backend_set2
- Parameters:
unknownStateBackendSetNames
- the value to set- Returns:
- this builder
-
totalBackendSetCount
public LoadBalancerHealth.Builder totalBackendSetCount(Integer totalBackendSetCount)
The total number of backend sets associated with this load balancer.Example: 4
- Parameters:
totalBackendSetCount
- the value to set- Returns:
- this builder
-
build
public LoadBalancerHealth build()
-
copy
public LoadBalancerHealth.Builder copy(LoadBalancerHealth model)
-
-