Class EventResponseMessage

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

public final class EventResponseMessage extends Object implements com.azure.json.JsonSerializable<EventResponseMessage>
The event response message received from the service URI.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the content property: The content of the event response message.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of EventResponseMessage from the JsonReader.
    Get the headers property: The headers of the event response message.
    Get the reasonPhrase property: The reason phrase of the event response message.
    Get the statusCode property: The status code of the event response message.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    Get the version property: The HTTP message version.

    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

    • content

      public String content()
      Get the content property: The content of the event response message.
      Returns:
      the content value.
    • headers

      public Map<String,String> headers()
      Get the headers property: The headers of the event response message.
      Returns:
      the headers value.
    • reasonPhrase

      public String reasonPhrase()
      Get the reasonPhrase property: The reason phrase of the event response message.
      Returns:
      the reasonPhrase value.
    • statusCode

      public String statusCode()
      Get the statusCode property: The status code of the event response message.
      Returns:
      the statusCode value.
    • version

      public String version()
      Get the version property: The HTTP message version.
      Returns:
      the version 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<EventResponseMessage>
      Throws:
      IOException
    • fromJson

      public static EventResponseMessage fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of EventResponseMessage from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of EventResponseMessage 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 EventResponseMessage.