Class HealthCheckPolicy
- All Implemented Interfaces:
- Serializable,- SdkPojo,- ToCopyableBuilder<HealthCheckPolicy.Builder,- HealthCheckPolicy> 
An object that represents the health check policy for a virtual node's listener.
- See Also:
- 
Nested Class SummaryNested Classes
- 
Method SummaryModifier and TypeMethodDescriptionstatic HealthCheckPolicy.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final IntegerThe number of consecutive successful health checks that must occur before declaring listener healthy.final LongThe time period in milliseconds between each health check execution.final Stringpath()The destination path for the health check request.final Integerport()The destination port for the health check request.final PortProtocolprotocol()The protocol for the health check request.final StringThe protocol for the health check request.static Class<? extends HealthCheckPolicy.Builder> final LongThe amount of time to wait when receiving a response from the health check, in milliseconds.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.final IntegerThe number of consecutive failed health checks that must occur before declaring a virtual node unhealthy.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuildercopy
- 
Method Details- 
healthyThresholdThe 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.
 
- 
intervalMillisThe time period in milliseconds between each health check execution. - Returns:
- The time period in milliseconds between each health check execution.
 
- 
pathThe 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.
 
- 
portThe 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.
 
- 
protocolThe 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:
 
- 
protocolAsStringThe 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:
 
- 
timeoutMillisThe 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.
 
- 
unhealthyThresholdThe 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.
 
- 
toBuilderDescription copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
- toBuilderin interface- ToCopyableBuilder<HealthCheckPolicy.Builder,- HealthCheckPolicy> 
- Returns:
- a builder for type T
 
- 
builder
- 
serializableBuilderClass
- 
hashCode
- 
equals
- 
equalsBySdkFieldsDescription copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
- equalsBySdkFieldsin interface- SdkPojo
- Parameters:
- obj- the object to be compared with
- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
 
- 
toString
- 
getValueForField
- 
sdkFields
- 
sdkFieldNameToField- Specified by:
- sdkFieldNameToFieldin interface- SdkPojo
- Returns:
- The mapping between the field name and its corresponding field.
 
 
-