Class HttpRequestInfo
- java.lang.Object
-
- com.azure.resourcemanager.monitor.models.HttpRequestInfo
-
public final class HttpRequestInfo extends Object
The Http request info.
-
-
Constructor Summary
Constructors Constructor Description HttpRequestInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringclientIpAddress()Get the clientIpAddress property: the client Ip Address.StringclientRequestId()Get the clientRequestId property: the client request id.Stringmethod()Get the method property: the Http request method.Stringuri()Get the uri property: the Uri.voidvalidate()Validates the instance.HttpRequestInfowithClientIpAddress(String clientIpAddress)Set the clientIpAddress property: the client Ip Address.HttpRequestInfowithClientRequestId(String clientRequestId)Set the clientRequestId property: the client request id.HttpRequestInfowithMethod(String method)Set the method property: the Http request method.HttpRequestInfowithUri(String uri)Set the uri property: the Uri.
-
-
-
Method Detail
-
clientRequestId
public String clientRequestId()
Get the clientRequestId property: the client request id.- Returns:
- the clientRequestId value.
-
withClientRequestId
public HttpRequestInfo withClientRequestId(String clientRequestId)
Set the clientRequestId property: the client request id.- Parameters:
clientRequestId- the clientRequestId value to set.- Returns:
- the HttpRequestInfo object itself.
-
clientIpAddress
public String clientIpAddress()
Get the clientIpAddress property: the client Ip Address.- Returns:
- the clientIpAddress value.
-
withClientIpAddress
public HttpRequestInfo withClientIpAddress(String clientIpAddress)
Set the clientIpAddress property: the client Ip Address.- Parameters:
clientIpAddress- the clientIpAddress value to set.- Returns:
- the HttpRequestInfo object itself.
-
method
public String method()
Get the method property: the Http request method.- Returns:
- the method value.
-
withMethod
public HttpRequestInfo withMethod(String method)
Set the method property: the Http request method.- Parameters:
method- the method value to set.- Returns:
- the HttpRequestInfo object itself.
-
uri
public String uri()
Get the uri property: the Uri.- Returns:
- the uri value.
-
withUri
public HttpRequestInfo withUri(String uri)
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.
-
-