Class HttpHealthCheckOptions.Builder
java.lang.Object
software.amazon.awscdk.services.appmesh.HttpHealthCheckOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<HttpHealthCheckOptions>
- Enclosing interface:
HttpHealthCheckOptions
@Stability(Stable)
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
Sets the value ofHttpHealthCheckOptions.getHealthyThreshold()- Parameters:
healthyThreshold- The number of consecutive successful health checks that must occur before declaring listener healthy.- Returns:
this
-
interval
Sets the value ofHttpHealthCheckOptions.getInterval()- Parameters:
interval- The time period between each health check execution.- Returns:
this
-
path
Sets the value ofHttpHealthCheckOptions.getPath()- Parameters:
path- The destination path for the health check request.- Returns:
this
-
timeout
Sets the value ofHttpHealthCheckOptions.getTimeout()- Parameters:
timeout- The amount of time to wait when receiving a response from the health check.- Returns:
this
-
unhealthyThreshold
@Stability(Stable) public HttpHealthCheckOptions.Builder unhealthyThreshold(Number unhealthyThreshold) Sets the value ofHttpHealthCheckOptions.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<HttpHealthCheckOptions>- Returns:
- a new instance of
HttpHealthCheckOptions - Throws:
NullPointerException- if any required attribute was not provided
-