@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(Protocol 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 healthyThreshold(Number healthyThreshold)
HealthCheck.getHealthyThreshold()healthyThreshold - Number of successful attempts before considering the node UP.this@Stability(value=Experimental) public HealthCheck.Builder interval(Duration interval)
HealthCheck.getInterval()interval - Interval in milliseconds to re-check.this@Stability(value=Experimental) public HealthCheck.Builder path(String path)
HealthCheck.getPath()path - The path where the application expects any health-checks, this can also be the application path.this@Stability(value=Experimental) public HealthCheck.Builder port(Number port)
HealthCheck.getPort()port - The TCP port number for the healthcheck.this@Stability(value=Experimental) public HealthCheck.Builder protocol(Protocol protocol)
HealthCheck.getProtocol()protocol - The protocol to use for the healthcheck, for convinience a const enum has been defined.
Protocol.HTTP or Protocol.TCPthis@Stability(value=Experimental) public HealthCheck.Builder timeout(Duration timeout)
HealthCheck.getTimeout()timeout - Timeout in milli-seconds for the healthcheck to be considered a fail.this@Stability(value=Experimental) public HealthCheck.Builder unhealthyThreshold(Number unhealthyThreshold)
HealthCheck.getUnhealthyThreshold()unhealthyThreshold - Number of failed attempts before considering the node DOWN.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.