Class TcpHealthCheckOptions.Builder
java.lang.Object
software.amazon.awscdk.services.apprunner.alpha.TcpHealthCheckOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<TcpHealthCheckOptions>
- Enclosing interface:
TcpHealthCheckOptions
@Stability(Experimental)
public static final class TcpHealthCheckOptions.Builder
extends Object
implements software.amazon.jsii.Builder<TcpHealthCheckOptions>
A builder for
TcpHealthCheckOptions-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.healthyThreshold(Number healthyThreshold) Sets the value ofTcpHealthCheckOptions.getHealthyThreshold()Sets the value ofTcpHealthCheckOptions.getInterval()Sets the value ofTcpHealthCheckOptions.getTimeout()unhealthyThreshold(Number unhealthyThreshold) Sets the value ofTcpHealthCheckOptions.getUnhealthyThreshold()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
healthyThreshold
@Stability(Experimental) public TcpHealthCheckOptions.Builder healthyThreshold(Number healthyThreshold) Sets the value ofTcpHealthCheckOptions.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 ofTcpHealthCheckOptions.getInterval()- Parameters:
interval- The time interval, in seconds, between health checks.- Returns:
this
-
timeout
Sets the value ofTcpHealthCheckOptions.getTimeout()- Parameters:
timeout- The time, in seconds, to wait for a health check response before deciding it failed.- Returns:
this
-
unhealthyThreshold
@Stability(Experimental) public TcpHealthCheckOptions.Builder unhealthyThreshold(Number unhealthyThreshold) Sets the value ofTcpHealthCheckOptions.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:
buildin interfacesoftware.amazon.jsii.Builder<TcpHealthCheckOptions>- Returns:
- a new instance of
TcpHealthCheckOptions - Throws:
NullPointerException- if any required attribute was not provided
-