Interface HealthCheckConfig.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<HealthCheckConfig.Builder,HealthCheckConfig>,SdkBuilder<HealthCheckConfig.Builder,HealthCheckConfig>,SdkPojo
- Enclosing class:
- HealthCheckConfig
public static interface HealthCheckConfig.Builder extends SdkPojo, CopyableBuilder<HealthCheckConfig.Builder,HealthCheckConfig>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description HealthCheckConfig.Builderenabled(Boolean enabled)Indicates whether health checking is enabled.HealthCheckConfig.BuilderhealthCheckIntervalSeconds(Integer healthCheckIntervalSeconds)The approximate amount of time, in seconds, between health checks of an individual target.HealthCheckConfig.BuilderhealthCheckTimeoutSeconds(Integer healthCheckTimeoutSeconds)The amount of time, in seconds, to wait before reporting a target as unhealthy.HealthCheckConfig.BuilderhealthyThresholdCount(Integer healthyThresholdCount)The number of consecutive successful health checks required before considering an unhealthy target healthy.default HealthCheckConfig.Buildermatcher(Consumer<Matcher.Builder> matcher)The codes to use when checking for a successful response from a target.HealthCheckConfig.Buildermatcher(Matcher matcher)The codes to use when checking for a successful response from a target.HealthCheckConfig.Builderpath(String path)The destination for health checks on the targets.HealthCheckConfig.Builderport(Integer port)The port used when performing health checks on targets.HealthCheckConfig.Builderprotocol(String protocol)The protocol used when performing health checks on targets.HealthCheckConfig.Builderprotocol(TargetGroupProtocol protocol)The protocol used when performing health checks on targets.HealthCheckConfig.BuilderprotocolVersion(String protocolVersion)The protocol version used when performing health checks on targets.HealthCheckConfig.BuilderprotocolVersion(HealthCheckProtocolVersion protocolVersion)The protocol version used when performing health checks on targets.HealthCheckConfig.BuilderunhealthyThresholdCount(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 Detail
-
enabled
HealthCheckConfig.Builder enabled(Boolean 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
HealthCheckConfig.Builder healthCheckIntervalSeconds(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.
- 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
HealthCheckConfig.Builder healthCheckTimeoutSeconds(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.
- 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
HealthCheckConfig.Builder healthyThresholdCount(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.
- 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
HealthCheckConfig.Builder matcher(Matcher 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
default HealthCheckConfig.Builder matcher(Consumer<Matcher.Builder> 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.Builderavoiding the need to create one manually viaMatcher.builder().When the
Consumercompletes,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:
matcher(Matcher)
-
path
HealthCheckConfig.Builder path(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.- Parameters:
path- The destination for health checks on the targets. If the protocol version isHTTP/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:
- Returns a reference to this object so that method calls can be chained together.
-
port
HealthCheckConfig.Builder port(Integer 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
HealthCheckConfig.Builder protocol(String protocol)
The protocol used when performing health checks on targets. The possible protocols are
HTTPandHTTPS. The default isHTTP.- Parameters:
protocol- The protocol used when performing health checks on targets. The possible protocols areHTTPandHTTPS. The default isHTTP.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
TargetGroupProtocol,TargetGroupProtocol
-
protocol
HealthCheckConfig.Builder protocol(TargetGroupProtocol protocol)
The protocol used when performing health checks on targets. The possible protocols are
HTTPandHTTPS. The default isHTTP.- Parameters:
protocol- The protocol used when performing health checks on targets. The possible protocols areHTTPandHTTPS. The default isHTTP.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
TargetGroupProtocol,TargetGroupProtocol
-
protocolVersion
HealthCheckConfig.Builder protocolVersion(String protocolVersion)
The protocol version used when performing health checks on targets. The possible protocol versions are
HTTP1andHTTP2.- Parameters:
protocolVersion- The protocol version used when performing health checks on targets. The possible protocol versions areHTTP1andHTTP2.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
HealthCheckProtocolVersion,HealthCheckProtocolVersion
-
protocolVersion
HealthCheckConfig.Builder protocolVersion(HealthCheckProtocolVersion protocolVersion)
The protocol version used when performing health checks on targets. The possible protocol versions are
HTTP1andHTTP2.- Parameters:
protocolVersion- The protocol version used when performing health checks on targets. The possible protocol versions areHTTP1andHTTP2.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
HealthCheckProtocolVersion,HealthCheckProtocolVersion
-
unhealthyThresholdCount
HealthCheckConfig.Builder unhealthyThresholdCount(Integer 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.
-
-