java.lang.Object
com.azure.resourcemanager.appservice.models.Response
All Implemented Interfaces:
com.azure.json.JsonSerializable<Response>

public final class Response extends Object implements com.azure.json.JsonSerializable<Response>
A response.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of Response class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the bodyLink property: Details on the location of the body content.
    static Response
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of Response from the JsonReader.
    Get the headers property: A list of all the headers attached to the response.
    Get the statusCode property: The status code of the response.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    Set the bodyLink property: Details on the location of the body content.
    Set the headers property: A list of all the headers attached to the response.
    withStatusCode(Integer statusCode)
    Set the statusCode property: The status code of the response.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • Response

      public Response()
      Creates an instance of Response class.
  • 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.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<Response>
      Throws:
      IOException
    • fromJson

      public static Response fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of Response from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of Response if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the Response.