Class GrpcHealthCheckOptions.Builder
java.lang.Object
software.amazon.awscdk.services.appmesh.GrpcHealthCheckOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<GrpcHealthCheckOptions>
- Enclosing interface:
GrpcHealthCheckOptions
@Stability(Stable)
public static final class GrpcHealthCheckOptions.Builder
extends Object
implements software.amazon.jsii.Builder<GrpcHealthCheckOptions>
A builder for
GrpcHealthCheckOptions-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.healthyThreshold(Number healthyThreshold) Sets the value ofGrpcHealthCheckOptions.getHealthyThreshold()Sets the value ofGrpcHealthCheckOptions.getInterval()Sets the value ofGrpcHealthCheckOptions.getTimeout()unhealthyThreshold(Number unhealthyThreshold) Sets the value ofGrpcHealthCheckOptions.getUnhealthyThreshold()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
healthyThreshold
Sets the value ofGrpcHealthCheckOptions.getHealthyThreshold()- Parameters:
healthyThreshold- The number of consecutive successful health checks that must occur before declaring listener healthy.- Returns:
this
-
interval
Sets the value ofGrpcHealthCheckOptions.getInterval()- Parameters:
interval- The time period between each health check execution.- Returns:
this
-
timeout
Sets the value ofGrpcHealthCheckOptions.getTimeout()- Parameters:
timeout- The amount of time to wait when receiving a response from the health check.- Returns:
this
-
unhealthyThreshold
@Stability(Stable) public GrpcHealthCheckOptions.Builder unhealthyThreshold(Number unhealthyThreshold) Sets the value ofGrpcHealthCheckOptions.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<GrpcHealthCheckOptions>- Returns:
- a new instance of
GrpcHealthCheckOptions - Throws:
NullPointerException- if any required attribute was not provided
-