HttpRequestInfo Class
- java.
lang. Object - com.
azure. resourcemanager. monitor. models. HttpRequestInfo
- com.
Implements
public final class HttpRequestInfo
implements JsonSerializable<HttpRequestInfo>
The Http request info.
Constructor Summary
Constructor | Description |
---|---|
HttpRequestInfo() |
Creates an instance of Http |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
clientIpAddress()
Get the client |
String |
clientRequestId()
Get the client |
static
Http |
fromJson(JsonReader jsonReader)
Reads an instance of Http |
String |
method()
Get the method property: the Http request method. |
Json |
toJson(JsonWriter jsonWriter) |
String |
uri()
Get the uri property: the Uri. |
void |
validate()
Validates the instance. |
Http |
withClientIpAddress(String clientIpAddress)
Set the client |
Http |
withClientRequestId(String clientRequestId)
Set the client |
Http |
withMethod(String method)
Set the method property: the Http request method. |
Http |
withUri(String uri)
Set the uri property: the Uri. |
Methods inherited from java.lang.Object
Constructor Details
HttpRequestInfo
public HttpRequestInfo()
Creates an instance of HttpRequestInfo class.
Method Details
clientIpAddress
public String clientIpAddress()
Get the clientIpAddress property: the client Ip Address.
Returns:
clientRequestId
public String clientRequestId()
Get the clientRequestId property: the client request id.
Returns:
fromJson
public static HttpRequestInfo fromJson(JsonReader jsonReader)
Reads an instance of HttpRequestInfo from the JsonReader.
Parameters:
Returns:
Throws:
method
public String method()
Get the method property: the Http request method.
Returns:
toJson
uri
public String uri()
Get the uri property: the Uri.
Returns:
validate
public void validate()
Validates the instance.
withClientIpAddress
public HttpRequestInfo withClientIpAddress(String clientIpAddress)
Set the clientIpAddress property: the client Ip Address.
Parameters:
Returns:
withClientRequestId
public HttpRequestInfo withClientRequestId(String clientRequestId)
Set the clientRequestId property: the client request id.
Parameters:
Returns:
withMethod
public HttpRequestInfo withMethod(String method)
Set the method property: the Http request method.
Parameters:
Returns:
withUri
public HttpRequestInfo withUri(String uri)
Set the uri property: the Uri.
Parameters:
Returns:
Applies to
Azure SDK for Java