Class HealthCheckStepAttributes

java.lang.Object
com.azure.resourcemanager.deploymentmanager.models.HealthCheckStepAttributes
Direct Known Subclasses:
RestHealthCheckStepAttributes

public class HealthCheckStepAttributes extends Object
The attributes for the health check step.
  • Constructor Details

    • HealthCheckStepAttributes

      public HealthCheckStepAttributes()
      Creates an instance of HealthCheckStepAttributes class.
  • Method Details

    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.