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 Summary
Nested Classes -
Method Summary
Modifier 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.ToCopyableBuilder
copy
-
Method Details
-
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
The time period in milliseconds between each health check execution.
- Returns:
- The time period in milliseconds between each health check execution.
-
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
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
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:
-
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:
-
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
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
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<HealthCheckPolicy.Builder,HealthCheckPolicy> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description 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 interfaceSdkPojo- 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 interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-