HealthCheckStepAttributes Class

  • java.lang.Object
    • com.azure.resourcemanager.deploymentmanager.models.HealthCheckStepAttributes

public class HealthCheckStepAttributes

The attributes for the health check step.

Constructor Summary

Constructor Description
HealthCheckStepAttributes()

Creates an instance of HealthCheckStepAttributes class.

Method Summary

Modifier and Type Method and Description
String healthyStateDuration()

Get the healthyStateDuration property: The duration in ISO 8601 format for which the resource is expected to be continuously healthy.

String maxElasticDuration()

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.

String waitDuration()

Get the waitDuration property: The duration in ISO 8601 format for which health check waits idly without any checks.

HealthCheckStepAttributes withHealthyStateDuration(String healthyStateDuration)

Set the healthyStateDuration property: The duration in ISO 8601 format for which the resource is expected to be continuously healthy.

HealthCheckStepAttributes 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.

HealthCheckStepAttributes 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 java.lang.Object

Constructor Details

HealthCheckStepAttributes

public HealthCheckStepAttributes()

Creates an instance of HealthCheckStepAttributes class.

Method Details

healthyStateDuration

public String 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.

maxElasticDuration

public String 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.

validate

public void validate()

Validates the instance.

waitDuration

public String waitDuration()

Get the waitDuration property: The duration in ISO 8601 format for which health check waits idly without any checks.

Returns:

the waitDuration value.

withHealthyStateDuration

public HealthCheckStepAttributes withHealthyStateDuration(String healthyStateDuration)

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.

withMaxElasticDuration

public HealthCheckStepAttributes 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. 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.

withWaitDuration

public HealthCheckStepAttributes withWaitDuration(String waitDuration)

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.

Applies to