Class Request
java.lang.Object
com.azure.resourcemanager.containerregistry.models.Request
- All Implemented Interfaces:
com.azure.json.JsonSerializable<Request>
-
Method Summary
Modifier and TypeMethodDescriptionaddr()Get the addr property: The IP or hostname and possibly port of the client connection that initiated the event.static RequestfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of Request from the JsonReader.host()Get the host property: The externally accessible hostname of the registry instance, as specified by the http host header on incoming requests.id()Get the id property: The ID of the request that initiated the event.method()Get the method property: The request method that generated the event.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the useragent property: The user agent header of the request.voidvalidate()Validates the instance.Methods inherited from class 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
-
id
Get the id property: The ID of the request that initiated the event.- Returns:
- the id value.
-
addr
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.
-
host
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.
-
method
Get the method property: The request method that generated the event.- Returns:
- the method value.
-
useragent
Get the useragent property: The user agent header of the request.- Returns:
- the useragent value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<Request>- Throws:
IOException
-
fromJson
Reads an instance of Request from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of Request 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 Request.
-