Class Response

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

    Methods inherited from class Object

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

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Method Details

    • headers

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

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

      public ContentLink bodyLink()
      Get the bodyLink property: Details on the location of the body content.
      Returns:
      the bodyLink value.
    • 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.