public class CosmosContainerRequestOptions extends Object
Constructor and Description |
---|
CosmosContainerRequestOptions() |
Modifier and Type | Method and Description |
---|---|
AccessCondition |
getAccessCondition()
Gets the conditions associated with the request.
|
ConsistencyLevel |
getConsistencyLevel()
Gets the consistency level required for the request.
|
boolean |
getPopulateQuotaInfo()
Gets the PopulateQuotaInfo setting for cosmos container read requests in the Azure Cosmos DB database service.
|
String |
getSessionToken()
Gets the token for use with session consistency.
|
CosmosContainerRequestOptions |
setAccessCondition(AccessCondition accessCondition)
Sets the conditions associated with the request.
|
CosmosContainerRequestOptions |
setConsistencyLevel(ConsistencyLevel consistencyLevel)
Sets the consistency level required for the request.
|
CosmosContainerRequestOptions |
setPopulateQuotaInfo(boolean populateQuotaInfo)
Sets the PopulateQuotaInfo 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 getPopulateQuotaInfo()
public CosmosContainerRequestOptions setPopulateQuotaInfo(boolean populateQuotaInfo)
populateQuotaInfo
- a boolean value indicating whether PopulateQuotaInfo is enabled or notpublic ConsistencyLevel getConsistencyLevel()
public CosmosContainerRequestOptions setConsistencyLevel(ConsistencyLevel consistencyLevel)
consistencyLevel
- the consistency level.public String getSessionToken()
public CosmosContainerRequestOptions setSessionToken(String sessionToken)
sessionToken
- the session token.public AccessCondition getAccessCondition()
public CosmosContainerRequestOptions setAccessCondition(AccessCondition accessCondition)
accessCondition
- the access condition.Copyright © 2020 Microsoft Corporation. All rights reserved.