java.lang.Object
com.azure.resourcemanager.appservice.models.Response

public final class Response extends Object
A response.
  • Constructor Details

    • Response

      public Response()
  • Method Details

    • headers

      public Object headers()
      Get the headers property: A list of all the headers attached to the response.
      Returns:
      the headers value.
    • withHeaders

      public Response withHeaders(Object headers)
      Set the headers property: A list of all the headers attached to the response.
      Parameters:
      headers - the headers value to set.
      Returns:
      the Response object itself.
    • statusCode

      public Integer statusCode()
      Get the statusCode property: The status code of the response.
      Returns:
      the statusCode value.
    • withStatusCode

      public Response withStatusCode(Integer statusCode)
      Set the statusCode property: The status code of the response.
      Parameters:
      statusCode - the statusCode value to set.
      Returns:
      the Response object itself.
    • bodyLink

      public ContentLink bodyLink()
      Get the bodyLink property: Details on the location of the body content.
      Returns:
      the bodyLink value.
    • withBodyLink

      public Response withBodyLink(ContentLink bodyLink)
      Set the bodyLink property: Details on the location of the body content.
      Parameters:
      bodyLink - the bodyLink value to set.
      Returns:
      the Response object itself.
    • validate

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