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 TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ContainerRegistryEventRequest from the JsonReader.getAddr()Get the addr property: The IP or hostname and possibly port of the client connection that initiated the event.getHost()Get the host property: The externally accessible hostname of the registry instance, as specified by the http host header on incoming requests.getId()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.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Method Details
-
getId
Get the id property: The ID of the request that initiated the event.- Returns:
- the id value.
-
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
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
Get the method property: The request method that generated the event.- Returns:
- the method value.
-
getUseragent
Get the useragent property: The user agent header of the request.- Returns:
- the useragent value.
-
toJson
- Specified by:
toJsonin interfacecom.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.
-