public class CosmosContainerRequestOptions extends CosmosRequestOptions
requestOptions| Constructor and Description |
|---|
CosmosContainerRequestOptions() |
| Modifier and Type | Method and Description |
|---|---|
ConsistencyLevel |
getConsistencyLevel()
Gets the consistency level required for the request.
|
Integer |
getOfferThroughput()
Gets the throughput in the form of Request Units per second when creating a cosmos container.
|
String |
getSessionToken()
Gets the token for use with session consistency.
|
boolean |
isPopulateQuotaInfo()
Gets the PopulateQuotaInfo setting for cosmos container read requests in the Azure Cosmos DB database service.
|
void |
setConsistencyLevel(ConsistencyLevel consistencyLevel)
Sets the consistency level required for the request.
|
void |
setOfferThroughput(Integer offerThroughput)
Sets the throughput in the form of Request Units per second when creating a cosmos container.
|
void |
setPopulateQuotaInfo(boolean populateQuotaInfo)
Sets the PopulateQuotaInfo setting for cosmos container read requests in the Azure Cosmos DB database service.
|
void |
setSessionToken(String sessionToken)
Sets the token for use with session consistency.
|
protected RequestOptions |
toRequestOptions() |
getAccessCondition, setAccessConditionpublic Integer getOfferThroughput()
public void setOfferThroughput(Integer offerThroughput)
offerThroughput - the throughput value.public boolean isPopulateQuotaInfo()
public void setPopulateQuotaInfo(boolean populateQuotaInfo)
populateQuotaInfo - a boolean value indicating whether PopulateQuotaInfo is enabled or notpublic ConsistencyLevel getConsistencyLevel()
public void setConsistencyLevel(ConsistencyLevel consistencyLevel)
consistencyLevel - the consistency level.public String getSessionToken()
public void setSessionToken(String sessionToken)
sessionToken - the session token.protected RequestOptions toRequestOptions()
toRequestOptions in class CosmosRequestOptionsCopyright © 2019. All rights reserved.