Class BackendSetHealth.Builder
- java.lang.Object
-
- com.oracle.bmc.networkloadbalancer.model.BackendSetHealth.Builder
-
- Enclosing class:
- BackendSetHealth
public static class BackendSetHealth.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BackendSetHealth
build()
BackendSetHealth.Builder
copy(BackendSetHealth model)
BackendSetHealth.Builder
criticalStateBackendNames(List<String> criticalStateBackendNames)
A list of backend servers that are currently in the CRITICAL health state.BackendSetHealth.Builder
status(BackendSetHealth.Status status)
Overall health status of the backend set.BackendSetHealth.Builder
totalBackendCount(Integer totalBackendCount)
The total number of backend servers in this backend set.BackendSetHealth.Builder
unknownStateBackendNames(List<String> unknownStateBackendNames)
A list of backend servers that are currently in the UNKNOWN health state.BackendSetHealth.Builder
warningStateBackendNames(List<String> warningStateBackendNames)
A list of backend servers that are currently in the WARNING health state.
-
-
-
Method Detail
-
status
public BackendSetHealth.Builder status(BackendSetHealth.Status status)
Overall health status of the backend set.**OK:** All backend servers in the backend set return a status of OK.
**WARNING:** Half or more of the backend servers in a backend set return a status of OK and at least one backend server returns a status of WARNING, CRITICAL, or UNKNOWN.
**CRITICAL:** Fewer than half of the backend servers in a backend set return a status of OK.
**UNKNOWN:** If no probes have yet been sent to the backends, or the system is unable to retrieve metrics from the backends.
- Parameters:
status
- the value to set- Returns:
- this builder
-
warningStateBackendNames
public BackendSetHealth.Builder warningStateBackendNames(List<String> warningStateBackendNames)
A list of backend servers that are currently in the WARNING health state.The list identifies each backend server by IP address or OCID and port.
Example: 10.0.0.3:8080 or ocid1.privateip..oc1.<unique_ID>:8080
- Parameters:
warningStateBackendNames
- the value to set- Returns:
- this builder
-
criticalStateBackendNames
public BackendSetHealth.Builder criticalStateBackendNames(List<String> criticalStateBackendNames)
A list of backend servers that are currently in the CRITICAL health state.The list identifies each backend server by IP address and port.
Example: 10.0.0.4:8080
- Parameters:
criticalStateBackendNames
- the value to set- Returns:
- this builder
-
unknownStateBackendNames
public BackendSetHealth.Builder unknownStateBackendNames(List<String> unknownStateBackendNames)
A list of backend servers that are currently in the UNKNOWN health state.The list identifies each backend server by IP address and port.
Example: 10.0.0.5:8080
- Parameters:
unknownStateBackendNames
- the value to set- Returns:
- this builder
-
totalBackendCount
public BackendSetHealth.Builder totalBackendCount(Integer totalBackendCount)
The total number of backend servers in this backend set.Example: 7
- Parameters:
totalBackendCount
- the value to set- Returns:
- this builder
-
build
public BackendSetHealth build()
-
copy
public BackendSetHealth.Builder copy(BackendSetHealth model)
-
-