@Stability(value=Experimental) public static final class HealthCheck.Builder extends Object implements software.amazon.jsii.Builder<HealthCheck>
HealthCheck| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
HealthCheck |
build()
Builds the configured instance.
|
HealthCheck.Builder |
healthyThreshold(Number healthyThreshold)
Sets the value of
HealthCheck.getHealthyThreshold() |
HealthCheck.Builder |
interval(Duration interval)
Sets the value of
HealthCheck.getInterval() |
HealthCheck.Builder |
path(String path)
Sets the value of
HealthCheck.getPath() |
HealthCheck.Builder |
port(Number port)
Sets the value of
HealthCheck.getPort() |
HealthCheck.Builder |
protocol(LoadBalancingProtocol protocol)
Sets the value of
HealthCheck.getProtocol() |
HealthCheck.Builder |
timeout(Duration timeout)
Sets the value of
HealthCheck.getTimeout() |
HealthCheck.Builder |
unhealthyThreshold(Number unhealthyThreshold)
Sets the value of
HealthCheck.getUnhealthyThreshold() |
@Stability(value=Experimental) public HealthCheck.Builder port(Number port)
HealthCheck.getPort()port - What port number to health check on. This parameter is required.this@Stability(value=Experimental) public HealthCheck.Builder healthyThreshold(Number healthyThreshold)
HealthCheck.getHealthyThreshold()healthyThreshold - After how many successful checks is an instance considered healthy.this@Stability(value=Experimental) public HealthCheck.Builder interval(Duration interval)
HealthCheck.getInterval()interval - Number of seconds between health checks.this@Stability(value=Experimental) public HealthCheck.Builder path(String path)
HealthCheck.getPath()path - What path to use for HTTP or HTTPS health check (must return 200).
For SSL and TCP health checks, accepting connections is enough to be considered
healthy.this@Stability(value=Experimental) public HealthCheck.Builder protocol(LoadBalancingProtocol protocol)
HealthCheck.getProtocol()protocol - What protocol to use for health checking.
The protocol is automatically determined from the port if it's not supplied.this@Stability(value=Experimental) public HealthCheck.Builder timeout(Duration timeout)
HealthCheck.getTimeout()timeout - Health check timeout.this@Stability(value=Experimental) public HealthCheck.Builder unhealthyThreshold(Number unhealthyThreshold)
HealthCheck.getUnhealthyThreshold()unhealthyThreshold - After how many unsuccessful checks is an instance considered unhealthy.this@Stability(value=Experimental) public HealthCheck build()
build in interface software.amazon.jsii.Builder<HealthCheck>HealthCheckNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.