@Generated(value="software.amazon.awssdk:codegen") public final class HealthCheckPolicy extends Object implements SdkPojo, Serializable, ToCopyableBuilder<HealthCheckPolicy.Builder,HealthCheckPolicy>
An object that represents the health check policy for a virtual node's listener.
| Modifier and Type | Class and Description |
|---|---|
static interface |
HealthCheckPolicy.Builder |
| Modifier and Type | Method and Description |
|---|---|
static HealthCheckPolicy.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Integer |
healthyThreshold()
The number of consecutive successful health checks that must occur before declaring listener healthy.
|
Long |
intervalMillis()
The time period in milliseconds between each health check execution.
|
String |
path()
The destination path for the health check request.
|
Integer |
port()
The destination port for the health check request.
|
PortProtocol |
protocol()
The protocol for the health check request.
|
String |
protocolAsString()
The protocol for the health check request.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends HealthCheckPolicy.Builder> |
serializableBuilderClass() |
Long |
timeoutMillis()
The amount of time to wait when receiving a response from the health check, in milliseconds.
|
HealthCheckPolicy.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Integer |
unhealthyThreshold()
The number of consecutive failed health checks that must occur before declaring a virtual node unhealthy.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Integer healthyThreshold()
The number of consecutive successful health checks that must occur before declaring listener healthy.
public final Long intervalMillis()
The time period in milliseconds between each health check execution.
public final String path()
The destination path for the health check request. This value is only used if the specified protocol is HTTP or HTTP/2. For any other protocol, this value is ignored.
public final Integer port()
The destination port for the health check request. This port must match the port defined in the PortMapping for the listener.
public final PortProtocol protocol()
The protocol for the health check request. If you specify grpc, then your service must conform to
the GRPC Health Checking Protocol.
If the service returns an enum value that is not available in the current SDK version, protocol will
return PortProtocol.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
protocolAsString().
grpc, then your service must
conform to the GRPC Health
Checking Protocol.PortProtocolpublic final String protocolAsString()
The protocol for the health check request. If you specify grpc, then your service must conform to
the GRPC Health Checking Protocol.
If the service returns an enum value that is not available in the current SDK version, protocol will
return PortProtocol.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
protocolAsString().
grpc, then your service must
conform to the GRPC Health
Checking Protocol.PortProtocolpublic final Long timeoutMillis()
The amount of time to wait when receiving a response from the health check, in milliseconds.
public final Integer unhealthyThreshold()
The number of consecutive failed health checks that must occur before declaring a virtual node unhealthy.
public HealthCheckPolicy.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<HealthCheckPolicy.Builder,HealthCheckPolicy>public static HealthCheckPolicy.Builder builder()
public static Class<? extends HealthCheckPolicy.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.