Class HealthCheckStepAttributes
java.lang.Object
com.azure.resourcemanager.deploymentmanager.models.HealthCheckStepAttributes
- Direct Known Subclasses:
RestHealthCheckStepAttributes
The attributes for the health check step.
-
Constructor Summary
ConstructorDescriptionCreates an instance of HealthCheckStepAttributes class. -
Method Summary
Modifier and TypeMethodDescriptionGet the healthyStateDuration property: The duration in ISO 8601 format for which the resource is expected to be continuously healthy.Get the maxElasticDuration property: The duration in ISO 8601 format for which the health check waits for the resource to become healthy.void
validate()
Validates the instance.Get the waitDuration property: The duration in ISO 8601 format for which health check waits idly without any checks.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.
-
Constructor Details
-
HealthCheckStepAttributes
public HealthCheckStepAttributes()Creates an instance of HealthCheckStepAttributes class.
-
-
Method Details
-
waitDuration
Get the waitDuration property: The duration in ISO 8601 format for which health check waits idly without any checks.- Returns:
- the waitDuration value.
-
withWaitDuration
Set the waitDuration property: The duration in ISO 8601 format for which health check waits idly without any checks.- Parameters:
waitDuration
- the waitDuration value to set.- Returns:
- the HealthCheckStepAttributes object itself.
-
maxElasticDuration
Get 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.- Returns:
- the maxElasticDuration value.
-
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.- Parameters:
maxElasticDuration
- the maxElasticDuration value to set.- Returns:
- the HealthCheckStepAttributes object itself.
-
healthyStateDuration
Get 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.- Returns:
- the healthyStateDuration value.
-
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.- Parameters:
healthyStateDuration
- the healthyStateDuration value to set.- Returns:
- the HealthCheckStepAttributes object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-