public class CosmosContainerRequestOptions extends Object
Constructor and Description |
---|
CosmosContainerRequestOptions() |
Modifier and Type | Method and Description |
---|---|
AccessCondition |
accessCondition()
Gets the conditions associated with the request.
|
CosmosContainerRequestOptions |
accessCondition(AccessCondition accessCondition)
Sets the conditions associated with the request.
|
ConsistencyLevel |
consistencyLevel()
Gets the consistency level required for the request.
|
CosmosContainerRequestOptions |
consistencyLevel(ConsistencyLevel consistencyLevel)
Sets the consistency level required for the request.
|
boolean |
populateQuotaInfo()
Gets the PopulateQuotaInfo setting for cosmos container read requests in the Azure Cosmos DB database service.
|
CosmosContainerRequestOptions |
populateQuotaInfo(boolean populateQuotaInfo)
Sets the PopulateQuotaInfo setting for cosmos container read requests in the Azure Cosmos DB database service.
|
String |
sessionToken()
Gets the token for use with session consistency.
|
CosmosContainerRequestOptions |
sessionToken(String sessionToken)
Sets the token for use with session consistency.
|
public boolean populateQuotaInfo()
public CosmosContainerRequestOptions populateQuotaInfo(boolean populateQuotaInfo)
populateQuotaInfo
- a boolean value indicating whether PopulateQuotaInfo is enabled or notpublic ConsistencyLevel consistencyLevel()
public CosmosContainerRequestOptions consistencyLevel(ConsistencyLevel consistencyLevel)
consistencyLevel
- the consistency level.public String sessionToken()
public CosmosContainerRequestOptions sessionToken(String sessionToken)
sessionToken
- the session token.public AccessCondition accessCondition()
public CosmosContainerRequestOptions accessCondition(AccessCondition accessCondition)
accessCondition
- the access condition.Copyright © 2019. All rights reserved.