Interface HealthCheckConfig.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<HealthCheckConfig.Builder,
,HealthCheckConfig> SdkBuilder<HealthCheckConfig.Builder,
,HealthCheckConfig> SdkPojo
- Enclosing class:
HealthCheckConfig
-
Method Summary
Modifier and TypeMethodDescriptionIndicates whether health checking is enabled.healthCheckIntervalSeconds
(Integer healthCheckIntervalSeconds) The approximate amount of time, in seconds, between health checks of an individual target.healthCheckTimeoutSeconds
(Integer healthCheckTimeoutSeconds) The amount of time, in seconds, to wait before reporting a target as unhealthy.healthyThresholdCount
(Integer healthyThresholdCount) The number of consecutive successful health checks required before considering an unhealthy target healthy.default HealthCheckConfig.Builder
matcher
(Consumer<Matcher.Builder> matcher) The codes to use when checking for a successful response from a target.The codes to use when checking for a successful response from a target.The destination for health checks on the targets.The port used when performing health checks on targets.The protocol used when performing health checks on targets.protocol
(TargetGroupProtocol protocol) The protocol used when performing health checks on targets.protocolVersion
(String protocolVersion) The protocol version used when performing health checks on targets.protocolVersion
(HealthCheckProtocolVersion protocolVersion) The protocol version used when performing health checks on targets.unhealthyThresholdCount
(Integer unhealthyThresholdCount) The number of consecutive failed health checks required before considering a target unhealthy.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
enabled
Indicates whether health checking is enabled.
- Parameters:
enabled
- Indicates whether health checking is enabled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
healthyThresholdCount
The number of consecutive successful health checks required before considering an unhealthy target healthy. The range is 2–10. The default is 5.
- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
matcher
The codes to use when checking for a successful response from a target. These are called Success codes in the console.
- Parameters:
matcher
- The codes to use when checking for a successful response from a target. These are called Success codes in the console.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
matcher
The codes to use when checking for a successful response from a target. These are called Success codes in the console.
This is a convenience method that creates an instance of theMatcher.Builder
avoiding the need to create one manually viaMatcher.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomatcher(Matcher)
.- Parameters:
matcher
- a consumer that will call methods onMatcher.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
path
The destination for health checks on the targets. If the protocol version is
HTTP/1.1
orHTTP/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.1
orHTTP/2
and specify a valid URI.- Parameters:
path
- The destination for health checks on the targets. If the protocol version isHTTP/1.1
orHTTP/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.1
orHTTP/2
and specify a valid URI.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
port
The port used when performing health checks on targets. The default setting is the port that a target receives traffic on.
- Parameters:
port
- The port used when performing health checks on targets. The default setting is the port that a target receives traffic on.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
protocol
The protocol used when performing health checks on targets. The possible protocols are
HTTP
andHTTPS
. The default isHTTP
.- Parameters:
protocol
- The protocol used when performing health checks on targets. The possible protocols areHTTP
andHTTPS
. The default isHTTP
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
protocol
The protocol used when performing health checks on targets. The possible protocols are
HTTP
andHTTPS
. The default isHTTP
.- Parameters:
protocol
- The protocol used when performing health checks on targets. The possible protocols areHTTP
andHTTPS
. The default isHTTP
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
protocolVersion
The protocol version used when performing health checks on targets. The possible protocol versions are
HTTP1
andHTTP2
.- Parameters:
protocolVersion
- The protocol version used when performing health checks on targets. The possible protocol versions areHTTP1
andHTTP2
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
protocolVersion
The protocol version used when performing health checks on targets. The possible protocol versions are
HTTP1
andHTTP2
.- Parameters:
protocolVersion
- The protocol version used when performing health checks on targets. The possible protocol versions areHTTP1
andHTTP2
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
unhealthyThresholdCount
The number of consecutive failed health checks required before considering a target unhealthy. The range is 2–10. The default is 2.
- Parameters:
unhealthyThresholdCount
- The number of consecutive failed health checks required before considering a target unhealthy. The range is 2–10. The default is 2.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-