public static class UpdateHealthCheckerDetails.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
UpdateHealthCheckerDetails |
build() |
UpdateHealthCheckerDetails.Builder |
copy(UpdateHealthCheckerDetails model) |
UpdateHealthCheckerDetails.Builder |
dns(DnsHealthCheckerDetails dns) |
UpdateHealthCheckerDetails.Builder |
intervalInMillis(Integer intervalInMillis)
The interval between health checks, in milliseconds.
|
UpdateHealthCheckerDetails.Builder |
port(Integer port)
The backend server port against which to run the health check.
|
UpdateHealthCheckerDetails.Builder |
protocol(HealthCheckProtocols protocol)
The protocol that the health check must use; either HTTP, UDP, or TCP.
|
UpdateHealthCheckerDetails.Builder |
requestData(byte[] requestData)
Base64 encoded pattern to be sent as UDP or TCP health check probe.
|
UpdateHealthCheckerDetails.Builder |
responseBodyRegex(String responseBodyRegex)
A regular expression for parsing the response body from the backend server.
|
UpdateHealthCheckerDetails.Builder |
responseData(byte[] responseData)
Base64 encoded pattern to be validated as UDP or TCP health check probe response.
|
UpdateHealthCheckerDetails.Builder |
retries(Integer retries)
The number of retries to attempt before a backend server is considered “unhealthy”.
|
UpdateHealthCheckerDetails.Builder |
returnCode(Integer returnCode)
The status code a healthy backend server should return.
|
UpdateHealthCheckerDetails.Builder |
timeoutInMillis(Integer timeoutInMillis)
The maximum time, in milliseconds, to wait for a reply to a health check.
|
UpdateHealthCheckerDetails.Builder |
urlPath(String urlPath)
The path against which to run the health check.
|
public UpdateHealthCheckerDetails.Builder protocol(HealthCheckProtocols protocol)
The protocol that the health check must use; either HTTP, UDP, or TCP.
Example: HTTP
protocol
- the value to setpublic UpdateHealthCheckerDetails.Builder port(Integer port)
The backend server port against which to run the health check.
Example: 8080
port
- the value to setpublic UpdateHealthCheckerDetails.Builder retries(Integer retries)
The number of retries to attempt before a backend server is considered “unhealthy”. This number also applies when recovering a server to the “healthy” state.
Example: 3
retries
- the value to setpublic UpdateHealthCheckerDetails.Builder timeoutInMillis(Integer timeoutInMillis)
The maximum time, in milliseconds, to wait for a reply to a health check. A health check is successful only if a reply returns within this timeout period.
Example: 3000
timeoutInMillis
- the value to setpublic UpdateHealthCheckerDetails.Builder intervalInMillis(Integer intervalInMillis)
The interval between health checks, in milliseconds.
Example: 10000
intervalInMillis
- the value to setpublic UpdateHealthCheckerDetails.Builder urlPath(String urlPath)
The path against which to run the health check.
Example: /healthcheck
urlPath
- the value to setpublic UpdateHealthCheckerDetails.Builder responseBodyRegex(String responseBodyRegex)
A regular expression for parsing the response body from the backend server.
Example: ^((?!false).|\\s)*$
responseBodyRegex
- the value to setpublic UpdateHealthCheckerDetails.Builder returnCode(Integer returnCode)
The status code a healthy backend server should return. If you configure the health check policy to use the HTTP protocol, then you can use common HTTP status codes such as “200”.
Example: 200
returnCode
- the value to setpublic UpdateHealthCheckerDetails.Builder requestData(byte[] requestData)
Base64 encoded pattern to be sent as UDP or TCP health check probe.
requestData
- the value to setpublic UpdateHealthCheckerDetails.Builder responseData(byte[] responseData)
Base64 encoded pattern to be validated as UDP or TCP health check probe response.
responseData
- the value to setpublic UpdateHealthCheckerDetails.Builder dns(DnsHealthCheckerDetails dns)
public UpdateHealthCheckerDetails build()
public UpdateHealthCheckerDetails.Builder copy(UpdateHealthCheckerDetails model)
Copyright © 2016–2024. All rights reserved.