public class CosmosItemRequestOptions extends Object
| Constructor and Description |
|---|
CosmosItemRequestOptions()
Constructor
|
CosmosItemRequestOptions(Object partitionKey)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
AccessCondition |
accessCondition()
Gets the conditions associated with the request.
|
CosmosItemRequestOptions |
accessCondition(AccessCondition accessCondition)
Sets the conditions associated with the request.
|
ConsistencyLevel |
consistencyLevel()
Gets the consistency level required for the request.
|
CosmosItemRequestOptions |
consistencyLevel(ConsistencyLevel consistencyLevel)
Sets the consistency level required for the request.
|
IndexingDirective |
indexingDirective()
Gets the indexing directive (index, do not index etc).
|
CosmosItemRequestOptions |
indexingDirective(IndexingDirective indexingDirective)
Sets the indexing directive (index, do not index etc).
|
PartitionKey |
partitionKey()
Gets the partition key
|
CosmosItemRequestOptions |
partitionKey(PartitionKey partitionKey)
Sets the partition key
|
List<String> |
postTriggerInclude()
Gets the triggers to be invoked after the operation.
|
CosmosItemRequestOptions |
postTriggerInclude(List<String> postTriggerInclude)
Sets the triggers to be invoked after the operation.
|
List<String> |
preTriggerInclude()
Gets the triggers to be invoked before the operation.
|
CosmosItemRequestOptions |
preTriggerInclude(List<String> preTriggerInclude)
Sets the triggers to be invoked before the operation.
|
String |
sessionToken()
Gets the token for use with session consistency.
|
CosmosItemRequestOptions |
sessionToken(String sessionToken)
Sets the token for use with session consistency.
|
public CosmosItemRequestOptions()
public CosmosItemRequestOptions(Object partitionKey)
partitionKey - the partition keypublic AccessCondition accessCondition()
public CosmosItemRequestOptions accessCondition(AccessCondition accessCondition)
accessCondition - the access condition.public ConsistencyLevel consistencyLevel()
public CosmosItemRequestOptions consistencyLevel(ConsistencyLevel consistencyLevel)
consistencyLevel - the consistency level.public IndexingDirective indexingDirective()
public CosmosItemRequestOptions indexingDirective(IndexingDirective indexingDirective)
indexingDirective - the indexing directive.public List<String> preTriggerInclude()
public CosmosItemRequestOptions preTriggerInclude(List<String> preTriggerInclude)
preTriggerInclude - the triggers to be invoked before the operation.public List<String> postTriggerInclude()
public CosmosItemRequestOptions postTriggerInclude(List<String> postTriggerInclude)
postTriggerInclude - the triggers to be invoked after the operation.public String sessionToken()
public CosmosItemRequestOptions sessionToken(String sessionToken)
sessionToken - the session token.public CosmosItemRequestOptions partitionKey(PartitionKey partitionKey)
partitionKey - the partition keypublic PartitionKey partitionKey()
Copyright © 2019. All rights reserved.