Class TcpHealthCheckOptions.Builder
java.lang.Object
software.amazon.awscdk.services.appmesh.TcpHealthCheckOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<TcpHealthCheckOptions>
- Enclosing interface:
TcpHealthCheckOptions
@Stability(Stable)
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
Sets the value ofTcpHealthCheckOptions.getHealthyThreshold()- Parameters:
healthyThreshold- The number of consecutive successful health checks that must occur before declaring listener healthy.- Returns:
this
-
interval
Sets the value ofTcpHealthCheckOptions.getInterval()- Parameters:
interval- The time period between each health check execution.- Returns:
this
-
timeout
Sets the value ofTcpHealthCheckOptions.getTimeout()- Parameters:
timeout- The amount of time to wait when receiving a response from the health check.- Returns:
this
-
unhealthyThreshold
@Stability(Stable) public TcpHealthCheckOptions.Builder unhealthyThreshold(Number unhealthyThreshold) Sets the value ofTcpHealthCheckOptions.getUnhealthyThreshold()- Parameters:
unhealthyThreshold- The number of consecutive failed health checks that must occur before declaring a listener 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
-