Class RestHealthCheckStepAttributes
java.lang.Object
com.azure.resourcemanager.deploymentmanager.models.HealthCheckStepAttributes
com.azure.resourcemanager.deploymentmanager.models.RestHealthCheckStepAttributes
Defines the REST health check step properties.
-
Constructor Summary
ConstructorDescriptionCreates an instance of RestHealthCheckStepAttributes class. -
Method Summary
Modifier and TypeMethodDescriptionGet the healthChecks property: The list of checks that form the health check step.void
validate()
Validates the instance.withHealthChecks
(List<RestHealthCheck> healthChecks) Set the healthChecks property: The list of checks that form the health check step.withHealthyStateDuration
(String healthyStateDuration) Set the healthyStateDuration property: The duration in ISO 8601 format for which the resource is expected to be continuously healthy.withMaxElasticDuration
(String maxElasticDuration) Set the maxElasticDuration property: The duration in ISO 8601 format for which the health check waits for the resource to become healthy.withWaitDuration
(String waitDuration) Set the waitDuration property: The duration in ISO 8601 format for which health check waits idly without any checks.Methods inherited from class com.azure.resourcemanager.deploymentmanager.models.HealthCheckStepAttributes
healthyStateDuration, maxElasticDuration, waitDuration
-
Constructor Details
-
RestHealthCheckStepAttributes
public RestHealthCheckStepAttributes()Creates an instance of RestHealthCheckStepAttributes class.
-
-
Method Details
-
withWaitDuration
Set the waitDuration property: The duration in ISO 8601 format for which health check waits idly without any checks.- Overrides:
withWaitDuration
in classHealthCheckStepAttributes
- Parameters:
waitDuration
- the waitDuration value to set.- Returns:
- the HealthCheckStepAttributes object itself.
-
withMaxElasticDuration
Set the maxElasticDuration property: The duration in ISO 8601 format for which the health check waits for the resource to become healthy. Health check fails if it doesn't. Health check starts to enforce healthyStateDuration once resource becomes healthy.- Overrides:
withMaxElasticDuration
in classHealthCheckStepAttributes
- Parameters:
maxElasticDuration
- the maxElasticDuration value to set.- Returns:
- the HealthCheckStepAttributes object itself.
-
withHealthyStateDuration
Set the healthyStateDuration property: The duration in ISO 8601 format for which the resource is expected to be continuously healthy. If maxElasticDuration is specified, healthy state duration is enforced after the detection of first healthy signal.- Overrides:
withHealthyStateDuration
in classHealthCheckStepAttributes
- Parameters:
healthyStateDuration
- the healthyStateDuration value to set.- Returns:
- the HealthCheckStepAttributes object itself.
-
healthChecks
Get the healthChecks property: The list of checks that form the health check step.- Returns:
- the healthChecks value.
-
withHealthChecks
Set the healthChecks property: The list of checks that form the health check step.- Parameters:
healthChecks
- the healthChecks value to set.- Returns:
- the RestHealthCheckStepAttributes object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classHealthCheckStepAttributes
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-