Class HealthCheckConfig
- java.lang.Object
-
- software.amazon.awssdk.services.vpclattice.model.HealthCheckConfig
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<HealthCheckConfig.Builder,HealthCheckConfig>
@Generated("software.amazon.awssdk:codegen") public final class HealthCheckConfig extends Object implements SdkPojo, Serializable, ToCopyableBuilder<HealthCheckConfig.Builder,HealthCheckConfig>
The health check configuration of a target group. Health check configurations aren't used for
LAMBDAandALBtarget groups.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceHealthCheckConfig.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HealthCheckConfig.Builderbuilder()Booleanenabled()Indicates whether health checking is enabled.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()IntegerhealthCheckIntervalSeconds()The approximate amount of time, in seconds, between health checks of an individual target.IntegerhealthCheckTimeoutSeconds()The amount of time, in seconds, to wait before reporting a target as unhealthy.IntegerhealthyThresholdCount()The number of consecutive successful health checks required before considering an unhealthy target healthy.Matchermatcher()The codes to use when checking for a successful response from a target.Stringpath()The destination for health checks on the targets.Integerport()The port used when performing health checks on targets.TargetGroupProtocolprotocol()The protocol used when performing health checks on targets.StringprotocolAsString()The protocol used when performing health checks on targets.HealthCheckProtocolVersionprotocolVersion()The protocol version used when performing health checks on targets.StringprotocolVersionAsString()The protocol version used when performing health checks on targets.List<SdkField<?>>sdkFields()static Class<? extends HealthCheckConfig.Builder>serializableBuilderClass()HealthCheckConfig.BuildertoBuilder()StringtoString()Returns a string representation of this object.IntegerunhealthyThresholdCount()The number of consecutive failed health checks required before considering a target 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
-
enabled
public final Boolean enabled()
Indicates whether health checking is enabled.
- Returns:
- Indicates whether health checking is enabled.
-
healthCheckIntervalSeconds
public final Integer healthCheckIntervalSeconds()
The approximate amount of time, in seconds, between health checks of an individual target. The range is 5–300 seconds. The default is 30 seconds.
- Returns:
- The approximate amount of time, in seconds, between health checks of an individual target. The range is 5–300 seconds. The default is 30 seconds.
-
healthCheckTimeoutSeconds
public final Integer healthCheckTimeoutSeconds()
The amount of time, in seconds, to wait before reporting a target as unhealthy. The range is 1–120 seconds. The default is 5 seconds.
- Returns:
- The amount of time, in seconds, to wait before reporting a target as unhealthy. The range is 1–120 seconds. The default is 5 seconds.
-
healthyThresholdCount
public final Integer healthyThresholdCount()
The number of consecutive successful health checks required before considering an unhealthy target healthy. The range is 2–10. The default is 5.
- Returns:
- The number of consecutive successful health checks required before considering an unhealthy target healthy. The range is 2–10. The default is 5.
-
matcher
public final Matcher matcher()
The codes to use when checking for a successful response from a target. These are called Success codes in the console.
- Returns:
- The codes to use when checking for a successful response from a target. These are called Success codes in the console.
-
path
public final String path()
The destination for health checks on the targets. If the protocol version is
HTTP/1.1orHTTP/2, specify a valid URI (for example,/path?query). The default path is/. Health checks are not supported if the protocol version isgRPC, however, you can chooseHTTP/1.1orHTTP/2and specify a valid URI.- Returns:
- The destination for health checks on the targets. If the protocol version is
HTTP/1.1orHTTP/2, specify a valid URI (for example,/path?query). The default path is/. Health checks are not supported if the protocol version isgRPC, however, you can chooseHTTP/1.1orHTTP/2and specify a valid URI.
-
port
public final Integer port()
The port used when performing health checks on targets. The default setting is the port that a target receives traffic on.
- Returns:
- The port used when performing health checks on targets. The default setting is the port that a target receives traffic on.
-
protocol
public final TargetGroupProtocol protocol()
The protocol used when performing health checks on targets. The possible protocols are
HTTPandHTTPS. The default isHTTP.If the service returns an enum value that is not available in the current SDK version,
protocolwill returnTargetGroupProtocol.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromprotocolAsString().- Returns:
- The protocol used when performing health checks on targets. The possible protocols are
HTTPandHTTPS. The default isHTTP. - See Also:
TargetGroupProtocol
-
protocolAsString
public final String protocolAsString()
The protocol used when performing health checks on targets. The possible protocols are
HTTPandHTTPS. The default isHTTP.If the service returns an enum value that is not available in the current SDK version,
protocolwill returnTargetGroupProtocol.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromprotocolAsString().- Returns:
- The protocol used when performing health checks on targets. The possible protocols are
HTTPandHTTPS. The default isHTTP. - See Also:
TargetGroupProtocol
-
protocolVersion
public final HealthCheckProtocolVersion protocolVersion()
The protocol version used when performing health checks on targets. The possible protocol versions are
HTTP1andHTTP2.If the service returns an enum value that is not available in the current SDK version,
protocolVersionwill returnHealthCheckProtocolVersion.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromprotocolVersionAsString().- Returns:
- The protocol version used when performing health checks on targets. The possible protocol versions are
HTTP1andHTTP2. - See Also:
HealthCheckProtocolVersion
-
protocolVersionAsString
public final String protocolVersionAsString()
The protocol version used when performing health checks on targets. The possible protocol versions are
HTTP1andHTTP2.If the service returns an enum value that is not available in the current SDK version,
protocolVersionwill returnHealthCheckProtocolVersion.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromprotocolVersionAsString().- Returns:
- The protocol version used when performing health checks on targets. The possible protocol versions are
HTTP1andHTTP2. - See Also:
HealthCheckProtocolVersion
-
unhealthyThresholdCount
public final Integer unhealthyThresholdCount()
The number of consecutive failed health checks required before considering a target unhealthy. The range is 2–10. The default is 2.
- Returns:
- The number of consecutive failed health checks required before considering a target unhealthy. The range is 2–10. The default is 2.
-
toBuilder
public HealthCheckConfig.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<HealthCheckConfig.Builder,HealthCheckConfig>
-
builder
public static HealthCheckConfig.Builder builder()
-
serializableBuilderClass
public static Class<? extends HealthCheckConfig.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.
-
-