public static final class HealthCheckConfig.Builder
extends java.lang.Object
HealthCheckConfig
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
HealthCheckConfig |
build()
Builds the configured instance.
|
HealthCheckConfig.Builder |
failureThreshold(java.lang.Number failureThreshold)
Sets the value of
HealthCheckConfig.getFailureThreshold() |
HealthCheckConfig.Builder |
resourcePath(java.lang.String resourcePath)
Sets the value of
HealthCheckConfig.getResourcePath() |
HealthCheckConfig.Builder |
type(HealthCheckType type)
Sets the value of
HealthCheckConfig.getType() |
public HealthCheckConfig.Builder failureThreshold(java.lang.Number failureThreshold)
HealthCheckConfig.getFailureThreshold()
failureThreshold
- The number of consecutive health checks that an endpoint must pass or fail for Route 53 to change the current status of the endpoint from unhealthy to healthy or vice versa.this
public HealthCheckConfig.Builder resourcePath(java.lang.String resourcePath)
HealthCheckConfig.getResourcePath()
resourcePath
- The path that you want Route 53 to request when performing health checks.
Do not use when health check type is TCP.this
public HealthCheckConfig.Builder type(HealthCheckType type)
HealthCheckConfig.getType()
type
- The type of health check that you want to create, which indicates how Route 53 determines whether an endpoint is healthy.
Cannot be modified once created. Supported values are HTTP, HTTPS, and TCP.this
public HealthCheckConfig build()
HealthCheckConfig
java.lang.NullPointerException
- if any required attribute was not provided