Class HealthCheckConfig
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<HealthCheckConfig.Builder,HealthCheckConfig>
The health check configuration for a managed endpoint. Defines how the service probes instances in the Auto Scaling group to determine their health status.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic HealthCheckConfig.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 required before an instance is considered healthy.final IntegerThe interval between health check probes, in seconds.final Stringpath()The destination path for the health check request.final Integerport()The port to use for health check probes.final Protocolprotocol()The protocol to use for health check probes.final StringThe protocol to use for health check probes.static Class<? extends HealthCheckConfig.Builder> final StringThe expected HTTP status code or status code pattern from healthy instances.final IntegerThe timeout for each health check probe, 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 required before an instance is considered unhealthy.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
port
The port to use for health check probes. Valid range is 80 to 65535.
- Returns:
- The port to use for health check probes. Valid range is 80 to 65535.
-
path
The destination path for the health check request. Must start with
/.- Returns:
- The destination path for the health check request. Must start with
/.
-
protocol
The protocol to use for health check probes.
If the service returns an enum value that is not available in the current SDK version,
protocolwill returnProtocol.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromprotocolAsString().- Returns:
- The protocol to use for health check probes.
- See Also:
-
protocolAsString
The protocol to use for health check probes.
If the service returns an enum value that is not available in the current SDK version,
protocolwill returnProtocol.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromprotocolAsString().- Returns:
- The protocol to use for health check probes.
- See Also:
-
timeoutMs
The timeout for each health check probe, in milliseconds. Valid range is 100 to 5000.
- Returns:
- The timeout for each health check probe, in milliseconds. Valid range is 100 to 5000.
-
intervalSeconds
The interval between health check probes, in seconds. Valid range is 5 to 60.
- Returns:
- The interval between health check probes, in seconds. Valid range is 5 to 60.
-
statusCodeMatcher
The expected HTTP status code or status code pattern from healthy instances. Supports a single code (for example,
200), a range (for example,200-299), or a comma-separated list (for example,200,204).- Returns:
- The expected HTTP status code or status code pattern from healthy instances. Supports a single code (for
example,
200), a range (for example,200-299), or a comma-separated list (for example,200,204).
-
healthyThresholdCount
The number of consecutive successful health checks required before an instance is considered healthy. Valid range is 2 to 10.
- Returns:
- The number of consecutive successful health checks required before an instance is considered healthy. Valid range is 2 to 10.
-
unhealthyThresholdCount
The number of consecutive failed health checks required before an instance is considered unhealthy. Valid range is 2 to 10.
- Returns:
- The number of consecutive failed health checks required before an instance is considered unhealthy. Valid range is 2 to 10.
-
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<HealthCheckConfig.Builder,HealthCheckConfig> - 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.
-