Request Class
- java.
lang. Object - com.
azure. resourcemanager. containerregistry. models. Request
- com.
Implements
public final class Request
implements JsonSerializable<Request>
The request that generated the event.
Constructor Summary
Constructor | Description |
---|---|
Request() |
Creates an instance of Request class. |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
addr()
Get the addr property: The IP or hostname and possibly port of the client connection that initiated the event. |
static Request |
fromJson(JsonReader jsonReader)
Reads an instance of Request from the Json |
String |
host()
Get the host property: The externally accessible hostname of the registry instance, as specified by the http host header on incoming requests. |
String |
id()
Get the id property: The ID of the request that initiated the event. |
String |
method()
Get the method property: The request method that generated the event. |
Json |
toJson(JsonWriter jsonWriter) |
String |
useragent()
Get the useragent property: The user agent header of the request. |
void |
validate()
Validates the instance. |
Request |
withAddr(String addr)
Set the addr property: The IP or hostname and possibly port of the client connection that initiated the event. |
Request |
withHost(String host)
Set the host property: The externally accessible hostname of the registry instance, as specified by the http host header on incoming requests. |
Request |
withId(String id)
Set the id property: The ID of the request that initiated the event. |
Request |
withMethod(String method)
Set the method property: The request method that generated the event. |
Request |
withUseragent(String useragent)
Set the useragent property: The user agent header of the request. |
Methods inherited from java.lang.Object
Constructor Details
Request
public Request()
Creates an instance of Request class.
Method Details
addr
public String 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:
fromJson
public static Request fromJson(JsonReader jsonReader)
Reads an instance of Request from the JsonReader.
Parameters:
Returns:
Throws:
host
public String host()
Get the host property: The externally accessible hostname of the registry instance, as specified by the http host header on incoming requests.
Returns:
id
public String id()
Get the id property: The ID of the request that initiated the event.
Returns:
method
public String method()
Get the method property: The request method that generated the event.
Returns:
toJson
useragent
public String useragent()
Get the useragent property: The user agent header of the request.
Returns:
validate
public void validate()
Validates the instance.
withAddr
public Request withAddr(String addr)
Set 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.
Parameters:
Returns:
withHost
public Request withHost(String host)
Set the host property: The externally accessible hostname of the registry instance, as specified by the http host header on incoming requests.
Parameters:
Returns:
withId
public Request withId(String id)
Set the id property: The ID of the request that initiated the event.
Parameters:
Returns:
withMethod
public Request withMethod(String method)
Set the method property: The request method that generated the event.
Parameters:
Returns:
withUseragent
public Request withUseragent(String useragent)
Set the useragent property: The user agent header of the request.
Parameters:
Returns:
Applies to
Azure SDK for Java