Class ContainerRegistryEventRequest

java.lang.Object
com.azure.messaging.eventgrid.systemevents.ContainerRegistryEventRequest
All Implemented Interfaces:
com.azure.json.JsonSerializable<ContainerRegistryEventRequest>

public final class ContainerRegistryEventRequest extends Object implements com.azure.json.JsonSerializable<ContainerRegistryEventRequest>
The request that generated the event.
  • Method Summary

    Modifier and Type
    Method
    Description
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of ContainerRegistryEventRequest from the JsonReader.
    Get the addr property: The IP or hostname and possibly port of the client connection that initiated the event.
    Get the host property: The externally accessible hostname of the registry instance, as specified by the http host header on incoming requests.
    Get the id property: The ID of the request that initiated the event.
    Get the method property: The request method that generated the event.
    Get the useragent property: The user agent header of the request.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)

    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
  • Method Details

    • getId

      public String getId()
      Get the id property: The ID of the request that initiated the event.
      Returns:
      the id value.
    • getAddr

      public String getAddr()
      Get the addr property: The IP or hostname and possibly port of the client connection that initiated the event. This is the RemoteAddr from the standard http request.
      Returns:
      the addr value.
    • getHost

      public String getHost()
      Get the host property: The externally accessible hostname of the registry instance, as specified by the http host header on incoming requests.
      Returns:
      the host value.
    • getMethod

      public String getMethod()
      Get the method property: The request method that generated the event.
      Returns:
      the method value.
    • getUseragent

      public String getUseragent()
      Get the useragent property: The user agent header of the request.
      Returns:
      the useragent value.
    • toJson

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

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