@Generated(value="OracleSDKGenerator", comments="API Version: 20170115") public final class UpdateHealthCheckerDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
The health checker’s configuration details.
Note: Objects should always be created or deserialized using the UpdateHealthCheckerDetails.Builder
. This model
distinguishes fields that are null
because they are unset from fields that are explicitly
set to null
. This is done in the setter methods of the UpdateHealthCheckerDetails.Builder
, which maintain a
set of all explicitly set fields called ExplicitlySetBmcModel.__explicitlySet__
. The hashCode()
and
equals(Object)
methods are implemented to take ExplicitlySetBmcModel.__explicitlySet__
into account.
The constructor, on the other hand, does not set ExplicitlySetBmcModel.__explicitlySet__
(since the
constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
UpdateHealthCheckerDetails.Builder |
Constructor and Description |
---|
UpdateHealthCheckerDetails(String protocol,
String urlPath,
Integer port,
Integer returnCode,
Integer retries,
Integer timeoutInMillis,
Integer intervalInMillis,
String responseBodyRegex)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static UpdateHealthCheckerDetails.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Integer |
getIntervalInMillis()
The interval between health checks, in milliseconds.
|
Integer |
getPort()
The backend server port against which to run the health check.
|
String |
getProtocol()
The protocol the health check must use; either HTTP or TCP.
|
String |
getResponseBodyRegex()
A regular expression for parsing the response body from the backend server.
|
Integer |
getRetries()
The number of retries to attempt before a backend server is considered “unhealthy”.
|
Integer |
getReturnCode()
The status code a healthy backend server should return.
|
Integer |
getTimeoutInMillis()
The maximum time, in milliseconds, to wait for a reply to a health check.
|
String |
getUrlPath()
The path against which to run the health check.
|
int |
hashCode() |
UpdateHealthCheckerDetails.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"protocol","urlPath","port","returnCode","retries","timeoutInMillis","intervalInMillis","responseBodyRegex"}) public UpdateHealthCheckerDetails(String protocol, String urlPath, Integer port, Integer returnCode, Integer retries, Integer timeoutInMillis, Integer intervalInMillis, String responseBodyRegex)
public static UpdateHealthCheckerDetails.Builder builder()
Create a new builder.
public UpdateHealthCheckerDetails.Builder toBuilder()
public String getProtocol()
The protocol the health check must use; either HTTP or TCP.
Example: HTTP
public String getUrlPath()
The path against which to run the health check.
Example: /healthcheck
public Integer getPort()
The backend server port against which to run the health check.
Example: 8080
public Integer getReturnCode()
The status code a healthy backend server should return.
Example: 200
public Integer getRetries()
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
public Integer getTimeoutInMillis()
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
public Integer getIntervalInMillis()
The interval between health checks, in milliseconds.
Example: 10000
public String getResponseBodyRegex()
A regular expression for parsing the response body from the backend server.
Example: ^((?!false).|\\s)*$
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2023. All rights reserved.