Class RequestReportRecordContractInner
- java.lang.Object
-
- com.azure.resourcemanager.apimanagement.fluent.models.RequestReportRecordContractInner
-
public final class RequestReportRecordContractInner extends Object
Request Report data.
-
-
Constructor Summary
Constructors Constructor Description RequestReportRecordContractInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
apiId()
Get the apiId property: API identifier path.String
apiRegion()
Get the apiRegion property: Azure region where the gateway that processed this request is located.Double
apiTime()
Get the apiTime property: The total time it took to process this request.String
backendResponseCode()
Get the backendResponseCode property: The HTTP status code received by the gateway as a result of forwarding this request to the backend.String
cache()
Get the cache property: Specifies if response cache was involved in generating the response.String
ipAddress()
Get the ipAddress property: The client IP address associated with this request.String
method()
Get the method property: The HTTP method associated with this request..String
operationId()
Get the operationId property: Operation identifier path.String
productId()
Get the productId property: Product identifier path.String
requestId()
Get the requestId property: Request Identifier.Integer
requestSize()
Get the requestSize property: The size of this request..Integer
responseCode()
Get the responseCode property: The HTTP status code returned by the gateway.Integer
responseSize()
Get the responseSize property: The size of the response returned by the gateway.Double
serviceTime()
Get the serviceTime property: he time it took to forward this request to the backend and get the response back.String
subscriptionId()
Get the subscriptionId property: Subscription identifier path.OffsetDateTime
timestamp()
Get the timestamp property: The date and time when this request was received by the gateway in ISO 8601 format.String
url()
Get the url property: The full URL associated with this request.String
userId()
Get the userId property: User identifier path.void
validate()
Validates the instance.RequestReportRecordContractInner
withApiId(String apiId)
Set the apiId property: API identifier path.RequestReportRecordContractInner
withApiRegion(String apiRegion)
Set the apiRegion property: Azure region where the gateway that processed this request is located.RequestReportRecordContractInner
withApiTime(Double apiTime)
Set the apiTime property: The total time it took to process this request.RequestReportRecordContractInner
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.RequestReportRecordContractInner
withCache(String cache)
Set the cache property: Specifies if response cache was involved in generating the response.RequestReportRecordContractInner
withIpAddress(String ipAddress)
Set the ipAddress property: The client IP address associated with this request.RequestReportRecordContractInner
withMethod(String method)
Set the method property: The HTTP method associated with this request..RequestReportRecordContractInner
withOperationId(String operationId)
Set the operationId property: Operation identifier path.RequestReportRecordContractInner
withRequestId(String requestId)
Set the requestId property: Request Identifier.RequestReportRecordContractInner
withRequestSize(Integer requestSize)
Set the requestSize property: The size of this request..RequestReportRecordContractInner
withResponseCode(Integer responseCode)
Set the responseCode property: The HTTP status code returned by the gateway.RequestReportRecordContractInner
withResponseSize(Integer responseSize)
Set the responseSize property: The size of the response returned by the gateway.RequestReportRecordContractInner
withServiceTime(Double serviceTime)
Set the serviceTime property: he time it took to forward this request to the backend and get the response back.RequestReportRecordContractInner
withSubscriptionId(String subscriptionId)
Set the subscriptionId property: Subscription identifier path.RequestReportRecordContractInner
withTimestamp(OffsetDateTime timestamp)
Set the timestamp property: The date and time when this request was received by the gateway in ISO 8601 format.RequestReportRecordContractInner
withUrl(String url)
Set the url property: The full URL associated with this request.
-
-
-
Method Detail
-
apiId
public String apiId()
Get the apiId property: API identifier path. /apis/{apiId}.- Returns:
- the apiId value.
-
withApiId
public RequestReportRecordContractInner withApiId(String apiId)
Set the apiId property: API identifier path. /apis/{apiId}.- Parameters:
apiId
- the apiId value to set.- Returns:
- the RequestReportRecordContractInner object itself.
-
operationId
public String operationId()
Get the operationId property: Operation identifier path. /apis/{apiId}/operations/{operationId}.- Returns:
- the operationId value.
-
withOperationId
public RequestReportRecordContractInner withOperationId(String operationId)
Set the operationId property: Operation identifier path. /apis/{apiId}/operations/{operationId}.- Parameters:
operationId
- the operationId value to set.- Returns:
- the RequestReportRecordContractInner object itself.
-
productId
public String productId()
Get the productId property: Product identifier path. /products/{productId}.- Returns:
- the productId value.
-
userId
public String userId()
Get the userId property: User identifier path. /users/{userId}.- Returns:
- the userId value.
-
method
public String method()
Get the method property: The HTTP method associated with this request..- Returns:
- the method value.
-
withMethod
public RequestReportRecordContractInner withMethod(String method)
Set the method property: The HTTP method associated with this request..- Parameters:
method
- the method value to set.- Returns:
- the RequestReportRecordContractInner object itself.
-
url
public String url()
Get the url property: The full URL associated with this request.- Returns:
- the url value.
-
withUrl
public RequestReportRecordContractInner withUrl(String url)
Set the url property: The full URL associated with this request.- Parameters:
url
- the url value to set.- Returns:
- the RequestReportRecordContractInner object itself.
-
ipAddress
public String ipAddress()
Get the ipAddress property: The client IP address associated with this request.- Returns:
- the ipAddress value.
-
withIpAddress
public RequestReportRecordContractInner withIpAddress(String ipAddress)
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
public String 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
public RequestReportRecordContractInner 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.- Parameters:
backendResponseCode
- the backendResponseCode value to set.- Returns:
- the RequestReportRecordContractInner object itself.
-
responseCode
public Integer responseCode()
Get the responseCode property: The HTTP status code returned by the gateway.- Returns:
- the responseCode value.
-
withResponseCode
public RequestReportRecordContractInner withResponseCode(Integer responseCode)
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
public Integer responseSize()
Get the responseSize property: The size of the response returned by the gateway.- Returns:
- the responseSize value.
-
withResponseSize
public RequestReportRecordContractInner withResponseSize(Integer responseSize)
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
public OffsetDateTime 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
public RequestReportRecordContractInner withTimestamp(OffsetDateTime timestamp)
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
public String 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
public RequestReportRecordContractInner withCache(String cache)
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
public Double apiTime()
Get the apiTime property: The total time it took to process this request.- Returns:
- the apiTime value.
-
withApiTime
public RequestReportRecordContractInner withApiTime(Double apiTime)
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
public Double 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
public RequestReportRecordContractInner withServiceTime(Double serviceTime)
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
public String apiRegion()
Get the apiRegion property: Azure region where the gateway that processed this request is located.- Returns:
- the apiRegion value.
-
withApiRegion
public RequestReportRecordContractInner withApiRegion(String apiRegion)
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
public String subscriptionId()
Get the subscriptionId property: Subscription identifier path. /subscriptions/{subscriptionId}.- Returns:
- the subscriptionId value.
-
withSubscriptionId
public RequestReportRecordContractInner withSubscriptionId(String subscriptionId)
Set the subscriptionId property: Subscription identifier path. /subscriptions/{subscriptionId}.- Parameters:
subscriptionId
- the subscriptionId value to set.- Returns:
- the RequestReportRecordContractInner object itself.
-
requestId
public String requestId()
Get the requestId property: Request Identifier.- Returns:
- the requestId value.
-
withRequestId
public RequestReportRecordContractInner withRequestId(String requestId)
Set the requestId property: Request Identifier.- Parameters:
requestId
- the requestId value to set.- Returns:
- the RequestReportRecordContractInner object itself.
-
requestSize
public Integer requestSize()
Get the requestSize property: The size of this request..- Returns:
- the requestSize value.
-
withRequestSize
public RequestReportRecordContractInner withRequestSize(Integer requestSize)
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.
-
-