@Generated(value="software.amazon.awssdk:codegen") public final class HealthCheckPolicy extends Object implements SdkPojo, Serializable, ToCopyableBuilder<HealthCheckPolicy.Builder,HealthCheckPolicy>
An object representing the health check policy for a virtual node's listener.
Listener health checks are not available during the App Mesh preview.
Modifier and Type | Class and Description |
---|---|
static interface |
HealthCheckPolicy.Builder |
Modifier and Type | Method and Description |
---|---|
static HealthCheckPolicy.Builder |
builder() |
boolean |
equals(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()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
Integer |
unhealthyThreshold()
The number of consecutive failed health checks that must occur before declaring a virtual node unhealthy.
|
copy
public Integer healthyThreshold()
The number of consecutive successful health checks that must occur before declaring listener healthy.
public Long intervalMillis()
The time period in milliseconds between each health check execution.
public String path()
The destination path for the health check request.
public Integer port()
The destination port for the health check request.
public PortProtocol protocol()
The protocol for the health check request.
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()
.
PortProtocol
public String protocolAsString()
The protocol for the health check request.
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()
.
PortProtocol
public Long timeoutMillis()
The amount of time to wait when receiving a response from the health check, in milliseconds.
public Integer unhealthyThreshold()
The number of consecutive failed health checks that must occur before declaring a virtual node unhealthy.
public HealthCheckPolicy.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<HealthCheckPolicy.Builder,HealthCheckPolicy>
public static HealthCheckPolicy.Builder builder()
public static Class<? extends HealthCheckPolicy.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.