public class RequestOptions extends Object
Constructor and Description |
---|
RequestOptions() |
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.
|
IndexingDirective |
getIndexingDirective()
Gets the indexing directive (index, do not index etc).
|
Integer |
getOfferThroughput()
Gets the throughput in the form of Request Units per second when creating a document collection.
|
String |
getOfferType()
Gets the offer type when creating a document collection.
|
PartitionKey |
getPartitionKey()
Gets the partition key used to identify the current request's target partition.
|
List<String> |
getPostTriggerInclude()
Gets the triggers to be invoked after the operation.
|
List<String> |
getPreTriggerInclude()
Gets the triggers to be invoked before the operation.
|
Integer |
getResourceTokenExpirySeconds()
Gets the expiry time for resource token.
|
String |
getSessionToken()
Gets the token for use with session consistency.
|
boolean |
isPopulateQuotaInfo()
Gets the PopulateQuotaInfo setting for document collection read requests in the Azure Cosmos DB database service.
|
boolean |
isScriptLoggingEnabled()
Gets whether Javascript stored procedure logging is enabled for the current request in the Azure Cosmos DB database
service or not.
|
void |
setAccessCondition(AccessCondition accessCondition)
Sets the conditions associated with the request.
|
void |
setConsistencyLevel(ConsistencyLevel consistencyLevel)
Sets the consistency level required for the request.
|
void |
setIndexingDirective(IndexingDirective indexingDirective)
Sets the indexing directive (index, do not index etc).
|
void |
setOfferThroughput(Integer offerThroughput)
Sets the throughput in the form of Request Units per second when creating a document collection.
|
void |
setOfferType(String offerType)
Sets the offer type when creating a document collection.
|
void |
setPartitionKey(PartitionKey partitionkey)
Sets the partition key used to identify the current request's target partition.
|
protected void |
setPartitionKeyRengeId(String partitionKeyRangeId)
Internal usage only: Sets the partition key range id used to identify the current request's target partition.
|
void |
setPopulateQuotaInfo(boolean populateQuotaInfo)
Sets the PopulateQuotaInfo setting for document collection read requests in the Azure Cosmos DB database service.
|
void |
setPostTriggerInclude(List<String> postTriggerInclude)
Sets the triggers to be invoked after the operation.
|
void |
setPreTriggerInclude(List<String> preTriggerInclude)
Sets the triggers to be invoked before the operation.
|
void |
setResourceTokenExpirySeconds(Integer resourceTokenExpirySeconds)
Sets the expiry time for resource token.
|
void |
setScriptLoggingEnabled(boolean scriptLoggingEnabled)
Sets whether Javascript stored procedure logging is enabled for the current request in the Azure Cosmos DB database
service or not.
|
void |
setSessionToken(String sessionToken)
Sets the token for use with session consistency.
|
public List<String> getPreTriggerInclude()
public void setPreTriggerInclude(List<String> preTriggerInclude)
preTriggerInclude
- the triggers to be invoked before the operation.public List<String> getPostTriggerInclude()
public void setPostTriggerInclude(List<String> postTriggerInclude)
postTriggerInclude
- the triggers to be invoked after the operation.public AccessCondition getAccessCondition()
public void setAccessCondition(AccessCondition accessCondition)
accessCondition
- the access condition.public IndexingDirective getIndexingDirective()
public void setIndexingDirective(IndexingDirective indexingDirective)
indexingDirective
- the indexing directive.public ConsistencyLevel getConsistencyLevel()
public void setConsistencyLevel(ConsistencyLevel consistencyLevel)
consistencyLevel
- the consistency level.public String getSessionToken()
public void setSessionToken(String sessionToken)
sessionToken
- the session token.public Integer getResourceTokenExpirySeconds()
public void setResourceTokenExpirySeconds(Integer resourceTokenExpirySeconds)
resourceTokenExpirySeconds
- the resource token expiry seconds.public String getOfferType()
public void setOfferType(String offerType)
offerType
- the offer type.public Integer getOfferThroughput()
public void setOfferThroughput(Integer offerThroughput)
offerThroughput
- the throughput value.public PartitionKey getPartitionKey()
public void setPartitionKey(PartitionKey partitionkey)
partitionkey
- the partition key value.protected void setPartitionKeyRengeId(String partitionKeyRangeId)
partitionKeyRangeId
- the partition key range id value.public boolean isScriptLoggingEnabled()
public void setScriptLoggingEnabled(boolean scriptLoggingEnabled)
scriptLoggingEnabled
- true if stored procedure Javascript logging is enabledpublic boolean isPopulateQuotaInfo()
public void setPopulateQuotaInfo(boolean populateQuotaInfo)
populateQuotaInfo
- a boolean value indicating whether PopulateQuotaInfo is enabled or notCopyright © 2018. All rights reserved.