Class HealthCheckCustomConfig.Builder
java.lang.Object
software.amazon.awscdk.services.servicediscovery.HealthCheckCustomConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<HealthCheckCustomConfig>
- Enclosing interface:
HealthCheckCustomConfig
@Stability(Stable)
public static final class HealthCheckCustomConfig.Builder
extends Object
implements software.amazon.jsii.Builder<HealthCheckCustomConfig>
A builder for
HealthCheckCustomConfig
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.failureThreshold
(Number failureThreshold) Sets the value ofHealthCheckCustomConfig.getFailureThreshold()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
failureThreshold
Sets the value ofHealthCheckCustomConfig.getFailureThreshold()
- Parameters:
failureThreshold
- The number of 30-second intervals that you want Cloud Map to wait after receiving an UpdateInstanceCustomHealthStatus request before it changes the health status of a service instance.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<HealthCheckCustomConfig>
- Returns:
- a new instance of
HealthCheckCustomConfig
- Throws:
NullPointerException
- if any required attribute was not provided
-