Class HttpRequestInfo
java.lang.Object
com.azure.resourcemanager.monitor.models.HttpRequestInfo
- All Implemented Interfaces:
com.azure.json.JsonSerializable<HttpRequestInfo>
public final class HttpRequestInfo
extends Object
implements com.azure.json.JsonSerializable<HttpRequestInfo>
The Http request info.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the clientIpAddress property: the client Ip Address.Get the clientRequestId property: the client request id.static HttpRequestInfo
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of HttpRequestInfo from the JsonReader.method()
Get the method property: the Http request method.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) uri()
Get the uri property: the Uri.void
validate()
Validates the instance.withClientIpAddress
(String clientIpAddress) Set the clientIpAddress property: the client Ip Address.withClientRequestId
(String clientRequestId) Set the clientRequestId property: the client request id.withMethod
(String method) Set the method property: the Http request method.Set the uri property: the Uri.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
-
Constructor Details
-
HttpRequestInfo
public HttpRequestInfo()Creates an instance of HttpRequestInfo class.
-
-
Method Details
-
clientRequestId
Get the clientRequestId property: the client request id.- Returns:
- the clientRequestId value.
-
withClientRequestId
Set the clientRequestId property: the client request id.- Parameters:
clientRequestId
- the clientRequestId value to set.- Returns:
- the HttpRequestInfo object itself.
-
clientIpAddress
Get the clientIpAddress property: the client Ip Address.- Returns:
- the clientIpAddress value.
-
withClientIpAddress
Set the clientIpAddress property: the client Ip Address.- Parameters:
clientIpAddress
- the clientIpAddress value to set.- Returns:
- the HttpRequestInfo object itself.
-
method
Get the method property: the Http request method.- Returns:
- the method value.
-
withMethod
Set the method property: the Http request method.- Parameters:
method
- the method value to set.- Returns:
- the HttpRequestInfo object itself.
-
uri
Get the uri property: the Uri.- Returns:
- the uri value.
-
withUri
Set the uri property: the Uri.- Parameters:
uri
- the uri value to set.- Returns:
- the HttpRequestInfo object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<HttpRequestInfo>
- Throws:
IOException
-
fromJson
Reads an instance of HttpRequestInfo from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of HttpRequestInfo 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 HttpRequestInfo.
-