Class HttpHealthCheckOptions.Builder
java.lang.Object
software.amazon.awscdk.services.apprunner.alpha.HttpHealthCheckOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<HttpHealthCheckOptions>
- Enclosing interface:
HttpHealthCheckOptions
@Stability(Experimental)
public static final class HttpHealthCheckOptions.Builder
extends Object
implements software.amazon.jsii.Builder<HttpHealthCheckOptions>
A builder for
HttpHealthCheckOptions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.healthyThreshold
(Number healthyThreshold) Sets the value ofHttpHealthCheckOptions.getHealthyThreshold()
Sets the value ofHttpHealthCheckOptions.getInterval()
Sets the value ofHttpHealthCheckOptions.getPath()
Sets the value ofHttpHealthCheckOptions.getTimeout()
unhealthyThreshold
(Number unhealthyThreshold) Sets the value ofHttpHealthCheckOptions.getUnhealthyThreshold()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
healthyThreshold
@Stability(Experimental) public HttpHealthCheckOptions.Builder healthyThreshold(Number healthyThreshold) Sets the value ofHttpHealthCheckOptions.getHealthyThreshold()
- Parameters:
healthyThreshold
- The number of consecutive checks that must succeed before App Runner decides that the service is healthy.- Returns:
this
-
interval
Sets the value ofHttpHealthCheckOptions.getInterval()
- Parameters:
interval
- The time interval, in seconds, between health checks.- Returns:
this
-
path
Sets the value ofHttpHealthCheckOptions.getPath()
- Parameters:
path
- The URL that health check requests are sent to.- Returns:
this
-
timeout
Sets the value ofHttpHealthCheckOptions.getTimeout()
- Parameters:
timeout
- The time, in seconds, to wait for a health check response before deciding it failed.- Returns:
this
-
unhealthyThreshold
@Stability(Experimental) public HttpHealthCheckOptions.Builder unhealthyThreshold(Number unhealthyThreshold) Sets the value ofHttpHealthCheckOptions.getUnhealthyThreshold()
- Parameters:
unhealthyThreshold
- The number of consecutive checks that must fail before App Runner decides that the service is unhealthy.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<HttpHealthCheckOptions>
- Returns:
- a new instance of
HttpHealthCheckOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-