Class RequestReportRecordContractInner
java.lang.Object
com.azure.resourcemanager.apimanagement.fluent.models.RequestReportRecordContractInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RequestReportRecordContractInner>
public final class RequestReportRecordContractInner
extends Object
implements com.azure.json.JsonSerializable<RequestReportRecordContractInner>
Request Report data.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of RequestReportRecordContractInner class. -
Method Summary
Modifier and TypeMethodDescriptionapiId()Get the apiId property: API identifier path.Get the apiRegion property: Azure region where the gateway that processed this request is located.apiTime()Get the apiTime property: The total time it took to process this request.Get the backendResponseCode property: The HTTP status code received by the gateway as a result of forwarding this request to the backend.cache()Get the cache property: Specifies if response cache was involved in generating the response.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RequestReportRecordContractInner from the JsonReader.Get the ipAddress property: The client IP address associated with this request.method()Get the method property: The HTTP method associated with this request..Get the operationId property: Operation identifier path.Get the productId property: Product identifier path.Get the requestId property: Request Identifier.Get the requestSize property: The size of this request..Get the responseCode property: The HTTP status code returned by the gateway.Get the responseSize property: The size of the response returned by the gateway.Get the serviceTime property: he time it took to forward this request to the backend and get the response back.Get the subscriptionId property: Subscription identifier path.Get the timestamp property: The date and time when this request was received by the gateway in ISO 8601 format.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) url()Get the url property: The full URL associated with this request.userId()Get the userId property: User identifier path.voidvalidate()Validates the instance.Set the apiId property: API identifier path.withApiRegion(String apiRegion) Set the apiRegion property: Azure region where the gateway that processed this request is located.withApiTime(Double apiTime) Set the apiTime property: The total time it took to process this request.withBackendResponseCode(String backendResponseCode) Set the backendResponseCode property: The HTTP status code received by the gateway as a result of forwarding this request to the backend.Set the cache property: Specifies if response cache was involved in generating the response.withIpAddress(String ipAddress) Set the ipAddress property: The client IP address associated with this request.withMethod(String method) Set the method property: The HTTP method associated with this request..withOperationId(String operationId) Set the operationId property: Operation identifier path.withRequestId(String requestId) Set the requestId property: Request Identifier.withRequestSize(Integer requestSize) Set the requestSize property: The size of this request..withResponseCode(Integer responseCode) Set the responseCode property: The HTTP status code returned by the gateway.withResponseSize(Integer responseSize) Set the responseSize property: The size of the response returned by the gateway.withServiceTime(Double serviceTime) Set the serviceTime property: he time it took to forward this request to the backend and get the response back.withSubscriptionId(String subscriptionId) Set the subscriptionId property: Subscription identifier path.withTimestamp(OffsetDateTime timestamp) Set the timestamp property: The date and time when this request was received by the gateway in ISO 8601 format.Set the url property: The full URL associated with this request.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
RequestReportRecordContractInner
public RequestReportRecordContractInner()Creates an instance of RequestReportRecordContractInner class.
-
-
Method Details
-
apiId
Get the apiId property: API identifier path. /apis/{apiId}.- Returns:
- the apiId value.
-
withApiId
Set the apiId property: API identifier path. /apis/{apiId}.- Parameters:
apiId- the apiId value to set.- Returns:
- the RequestReportRecordContractInner object itself.
-
operationId
Get the operationId property: Operation identifier path. /apis/{apiId}/operations/{operationId}.- Returns:
- the operationId value.
-
withOperationId
Set the operationId property: Operation identifier path. /apis/{apiId}/operations/{operationId}.- Parameters:
operationId- the operationId value to set.- Returns:
- the RequestReportRecordContractInner object itself.
-
productId
Get the productId property: Product identifier path. /products/{productId}.- Returns:
- the productId value.
-
userId
Get the userId property: User identifier path. /users/{userId}.- Returns:
- the userId value.
-
method
Get the method property: The HTTP method associated with this request..- Returns:
- the method value.
-
withMethod
Set the method property: The HTTP method associated with this request..- Parameters:
method- the method value to set.- Returns:
- the RequestReportRecordContractInner object itself.
-
url
Get the url property: The full URL associated with this request.- Returns:
- the url value.
-
withUrl
Set the url property: The full URL associated with this request.- Parameters:
url- the url value to set.- Returns:
- the RequestReportRecordContractInner object itself.
-
ipAddress
Get the ipAddress property: The client IP address associated with this request.- Returns:
- the ipAddress value.
-
withIpAddress
Set the ipAddress property: The client IP address associated with this request.- Parameters:
ipAddress- the ipAddress value to set.- Returns:
- the RequestReportRecordContractInner object itself.
-
backendResponseCode
Get the backendResponseCode property: The HTTP status code received by the gateway as a result of forwarding this request to the backend.- Returns:
- the backendResponseCode value.
-
withBackendResponseCode
Set the backendResponseCode property: The HTTP status code received by the gateway as a result of forwarding this request to the backend.- Parameters:
backendResponseCode- the backendResponseCode value to set.- Returns:
- the RequestReportRecordContractInner object itself.
-
responseCode
Get the responseCode property: The HTTP status code returned by the gateway.- Returns:
- the responseCode value.
-
withResponseCode
Set the responseCode property: The HTTP status code returned by the gateway.- Parameters:
responseCode- the responseCode value to set.- Returns:
- the RequestReportRecordContractInner object itself.
-
responseSize
Get the responseSize property: The size of the response returned by the gateway.- Returns:
- the responseSize value.
-
withResponseSize
Set the responseSize property: The size of the response returned by the gateway.- Parameters:
responseSize- the responseSize value to set.- Returns:
- the RequestReportRecordContractInner object itself.
-
timestamp
Get the timestamp property: The date and time when this request was received by the gateway in ISO 8601 format.- Returns:
- the timestamp value.
-
withTimestamp
Set the timestamp property: The date and time when this request was received by the gateway in ISO 8601 format.- Parameters:
timestamp- the timestamp value to set.- Returns:
- the RequestReportRecordContractInner object itself.
-
cache
Get the cache property: Specifies if response cache was involved in generating the response. If the value is none, the cache was not used. If the value is hit, cached response was returned. If the value is miss, the cache was used but lookup resulted in a miss and request was fulfilled by the backend.- Returns:
- the cache value.
-
withCache
Set the cache property: Specifies if response cache was involved in generating the response. If the value is none, the cache was not used. If the value is hit, cached response was returned. If the value is miss, the cache was used but lookup resulted in a miss and request was fulfilled by the backend.- Parameters:
cache- the cache value to set.- Returns:
- the RequestReportRecordContractInner object itself.
-
apiTime
Get the apiTime property: The total time it took to process this request.- Returns:
- the apiTime value.
-
withApiTime
Set the apiTime property: The total time it took to process this request.- Parameters:
apiTime- the apiTime value to set.- Returns:
- the RequestReportRecordContractInner object itself.
-
serviceTime
Get the serviceTime property: he time it took to forward this request to the backend and get the response back.- Returns:
- the serviceTime value.
-
withServiceTime
Set the serviceTime property: he time it took to forward this request to the backend and get the response back.- Parameters:
serviceTime- the serviceTime value to set.- Returns:
- the RequestReportRecordContractInner object itself.
-
apiRegion
Get the apiRegion property: Azure region where the gateway that processed this request is located.- Returns:
- the apiRegion value.
-
withApiRegion
Set the apiRegion property: Azure region where the gateway that processed this request is located.- Parameters:
apiRegion- the apiRegion value to set.- Returns:
- the RequestReportRecordContractInner object itself.
-
subscriptionId
Get the subscriptionId property: Subscription identifier path. /subscriptions/{subscriptionId}.- Returns:
- the subscriptionId value.
-
withSubscriptionId
Set the subscriptionId property: Subscription identifier path. /subscriptions/{subscriptionId}.- Parameters:
subscriptionId- the subscriptionId value to set.- Returns:
- the RequestReportRecordContractInner object itself.
-
requestId
Get the requestId property: Request Identifier.- Returns:
- the requestId value.
-
withRequestId
Set the requestId property: Request Identifier.- Parameters:
requestId- the requestId value to set.- Returns:
- the RequestReportRecordContractInner object itself.
-
requestSize
Get the requestSize property: The size of this request..- Returns:
- the requestSize value.
-
withRequestSize
Set the requestSize property: The size of this request..- Parameters:
requestSize- the requestSize value to set.- Returns:
- the RequestReportRecordContractInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<RequestReportRecordContractInner>- Throws:
IOException
-
fromJson
public static RequestReportRecordContractInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of RequestReportRecordContractInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of RequestReportRecordContractInner 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 RequestReportRecordContractInner.
-