T
- the type parameterpublic class CosmosItemResponse<T> extends Object
Modifier and Type | Method and Description |
---|---|
String |
getActivityId()
Gets the Activity ID for the request.
|
String |
getCurrentResourceQuotaUsage()
Gets the current size of this entity (in megabytes (MB) for server resources and in count for master resources)
|
CosmosDiagnostics |
getDiagnostics()
Gets the diagnostics information for the current request to Azure Cosmos DB service.
|
Duration |
getDuration()
Gets the end-to-end request latency for the current request to Azure Cosmos DB service.
|
String |
getETag()
Gets the ETag from the response headers.
|
T |
getItem()
Gets the resource.
|
String |
getMaxResourceQuota()
Gets the maximum size limit for this entity (in megabytes (MB) for server resources and in count for master
resources).
|
double |
getRequestCharge()
Gets the request charge as request units (RU) consumed by the operation.
|
Map<String,String> |
getResponseHeaders()
Gets the headers associated with the response.
|
String |
getSessionToken()
Gets the token used for managing client's consistency requirements.
|
int |
getStatusCode()
Gets the HTTP status code associated with the response.
|
public T getItem()
public String getMaxResourceQuota()
public String getCurrentResourceQuotaUsage()
public String getActivityId()
public double getRequestCharge()
For more information about the RU and factors that can impact the effective charges please visit Request Units in Azure Cosmos DB
public int getStatusCode()
public String getSessionToken()
public Map<String,String> getResponseHeaders()
public CosmosDiagnostics getDiagnostics()
public Duration getDuration()
public String getETag()
Copyright © 2021 Microsoft Corporation. All rights reserved.