Class RestHealthCheckStepAttributes

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

public final class RestHealthCheckStepAttributes extends HealthCheckStepAttributes
Defines the REST health check step properties.
  • Constructor Details

    • RestHealthCheckStepAttributes

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

    • withWaitDuration

      public RestHealthCheckStepAttributes withWaitDuration(String waitDuration)
      Set the waitDuration property: The duration in ISO 8601 format for which health check waits idly without any checks.
      Overrides:
      withWaitDuration in class HealthCheckStepAttributes
      Parameters:
      waitDuration - the waitDuration value to set.
      Returns:
      the HealthCheckStepAttributes object itself.
    • withMaxElasticDuration

      public RestHealthCheckStepAttributes 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.
      Overrides:
      withMaxElasticDuration in class HealthCheckStepAttributes
      Parameters:
      maxElasticDuration - the maxElasticDuration value to set.
      Returns:
      the HealthCheckStepAttributes object itself.
    • withHealthyStateDuration

      public RestHealthCheckStepAttributes 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.
      Overrides:
      withHealthyStateDuration in class HealthCheckStepAttributes
      Parameters:
      healthyStateDuration - the healthyStateDuration value to set.
      Returns:
      the HealthCheckStepAttributes object itself.
    • healthChecks

      public List<RestHealthCheck> healthChecks()
      Get the healthChecks property: The list of checks that form the health check step.
      Returns:
      the healthChecks value.
    • withHealthChecks

      public RestHealthCheckStepAttributes withHealthChecks(List<RestHealthCheck> healthChecks)
      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 class HealthCheckStepAttributes
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.