java.lang.Object
com.azure.resourcemanager.deploymentmanager.models.RestHealthCheck

public final class RestHealthCheck extends Object
A REST based health check.
  • Constructor Details

    • RestHealthCheck

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

    • name

      public String name()
      Get the name property: A unique name for this check.
      Returns:
      the name value.
    • withName

      public RestHealthCheck withName(String name)
      Set the name property: A unique name for this check.
      Parameters:
      name - the name value to set.
      Returns:
      the RestHealthCheck object itself.
    • request

      public RestRequest request()
      Get the request property: The request to the health provider.
      Returns:
      the request value.
    • withRequest

      public RestHealthCheck withRequest(RestRequest request)
      Set the request property: The request to the health provider.
      Parameters:
      request - the request value to set.
      Returns:
      the RestHealthCheck object itself.
    • response

      public RestResponse response()
      Get the response property: The expected response from the health provider. If no expected response is provided, the default is to expect the received response to have an HTTP status code of 200 OK.
      Returns:
      the response value.
    • withResponse

      public RestHealthCheck withResponse(RestResponse response)
      Set the response property: The expected response from the health provider. If no expected response is provided, the default is to expect the received response to have an HTTP status code of 200 OK.
      Parameters:
      response - the response value to set.
      Returns:
      the RestHealthCheck object itself.
    • validate

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