Class HealthCheckPolicy
- java.lang.Object
-
- software.amazon.awssdk.services.appmesh.model.HealthCheckPolicy
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<HealthCheckPolicy.Builder,HealthCheckPolicy>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceHealthCheckPolicy.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HealthCheckPolicy.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()IntegerhealthyThreshold()The number of consecutive successful health checks that must occur before declaring listener healthy.LongintervalMillis()The time period in milliseconds between each health check execution.Stringpath()The destination path for the health check request.Integerport()The destination port for the health check request.PortProtocolprotocol()The protocol for the health check request.StringprotocolAsString()The protocol for the health check request.List<SdkField<?>>sdkFields()static Class<? extends HealthCheckPolicy.Builder>serializableBuilderClass()LongtimeoutMillis()The amount of time to wait when receiving a response from the health check, in milliseconds.HealthCheckPolicy.BuildertoBuilder()StringtoString()Returns a string representation of this object.IntegerunhealthyThreshold()The number of consecutive failed health checks that must occur before declaring a virtual node unhealthy.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
healthyThreshold
public final Integer healthyThreshold()
The number of consecutive successful health checks that must occur before declaring listener healthy.
- Returns:
- The number of consecutive successful health checks that must occur before declaring listener healthy.
-
intervalMillis
public final Long intervalMillis()
The time period in milliseconds between each health check execution.
- Returns:
- The time period in milliseconds between each health check execution.
-
path
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.
- Returns:
- 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.
-
port
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.
- Returns:
- The destination port for the health check request. This port must match the port defined in the PortMapping for the listener.
-
protocol
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,
protocolwill returnPortProtocol.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromprotocolAsString().- Returns:
- The protocol for the health check request. If you specify
grpc, then your service must conform to the GRPC Health Checking Protocol. - See Also:
PortProtocol
-
protocolAsString
public 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,
protocolwill returnPortProtocol.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromprotocolAsString().- Returns:
- The protocol for the health check request. If you specify
grpc, then your service must conform to the GRPC Health Checking Protocol. - See Also:
PortProtocol
-
timeoutMillis
public final Long timeoutMillis()
The amount of time to wait when receiving a response from the health check, in milliseconds.
- Returns:
- The amount of time to wait when receiving a response from the health check, in milliseconds.
-
unhealthyThreshold
public final Integer unhealthyThreshold()
The number of consecutive failed health checks that must occur before declaring a virtual node unhealthy.
- Returns:
- The number of consecutive failed health checks that must occur before declaring a virtual node unhealthy.
-
toBuilder
public HealthCheckPolicy.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<HealthCheckPolicy.Builder,HealthCheckPolicy>
-
builder
public static HealthCheckPolicy.Builder builder()
-
serializableBuilderClass
public static Class<? extends HealthCheckPolicy.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-