public final class CosmosContainerRequestOptions extends Object
Constructor and Description |
---|
CosmosContainerRequestOptions() |
Modifier and Type | Method and Description |
---|---|
String |
getIfMatchETag()
Gets the If-Match (ETag) associated with the request in the Azure Cosmos DB service.
|
String |
getIfNoneMatchETag()
Gets the If-None-Match (ETag) associated with the request in the Azure Cosmos DB service.
|
String |
getSessionToken()
Gets the token for use with session consistency.
|
boolean |
isQuotaInfoEnabled()
Gets the quotaInfoEnabled setting for cosmos container read requests in the Azure Cosmos DB database service.
|
CosmosContainerRequestOptions |
setIfMatchETag(String ifMatchETag)
Sets the If-Match (ETag) associated with the request in the Azure Cosmos DB service.
|
CosmosContainerRequestOptions |
setIfNoneMatchETag(String ifNoneMatchETag)
Sets the If-None-Match (ETag) associated with the request in the Azure Cosmos DB service.
|
CosmosContainerRequestOptions |
setQuotaInfoEnabled(boolean quotaInfoEnabled)
Sets the quotaInfoEnabled setting for cosmos container read requests in the Azure Cosmos DB database service.
|
CosmosContainerRequestOptions |
setSessionToken(String sessionToken)
Sets the token for use with session consistency.
|
public boolean isQuotaInfoEnabled()
public CosmosContainerRequestOptions setQuotaInfoEnabled(boolean quotaInfoEnabled)
quotaInfoEnabled
- a boolean value indicating whether quotaInfoEnabled is enabled or notpublic String getSessionToken()
public CosmosContainerRequestOptions setSessionToken(String sessionToken)
sessionToken
- the session token.public String getIfMatchETag()
public CosmosContainerRequestOptions setIfMatchETag(String ifMatchETag)
ifMatchETag
- the ifMatchETag associated with the request.public String getIfNoneMatchETag()
public CosmosContainerRequestOptions setIfNoneMatchETag(String ifNoneMatchETag)
ifNoneMatchETag
- the ifNoneMatchETag associated with the request.Copyright © 2021 Microsoft Corporation. All rights reserved.