public class CosmosItemRequestOptions extends CosmosRequestOptions
requestOptions| Constructor and Description |
|---|
CosmosItemRequestOptions()
Constructor
|
CosmosItemRequestOptions(Object partitionKey)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
ConsistencyLevel |
getConsistencyLevel()
Gets the consistency level required for the request.
|
IndexingDirective |
getIndexingDirective()
Gets the indexing directive (index, do not index etc).
|
List<String> |
getPostTriggerInclude()
Gets the triggers to be invoked after the operation.
|
List<String> |
getPreTriggerInclude()
Gets the triggers to be invoked before the operation.
|
String |
getSessionToken()
Gets the token for use with session consistency.
|
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 |
setPartitionKey(PartitionKey partitionKey)
Sets the partition key
|
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 |
setSessionToken(String sessionToken)
Sets the token for use with session consistency.
|
protected RequestOptions |
toRequestOptions() |
getAccessCondition, setAccessConditionpublic CosmosItemRequestOptions()
public CosmosItemRequestOptions(Object partitionKey)
partitionKey - the partition keypublic ConsistencyLevel getConsistencyLevel()
public void setConsistencyLevel(ConsistencyLevel consistencyLevel)
consistencyLevel - the consistency level.public IndexingDirective getIndexingDirective()
public void setIndexingDirective(IndexingDirective indexingDirective)
indexingDirective - the indexing directive.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 String getSessionToken()
public void setSessionToken(String sessionToken)
sessionToken - the session token.public void setPartitionKey(PartitionKey partitionKey)
partitionKey - protected RequestOptions toRequestOptions()
toRequestOptions in class CosmosRequestOptionsCopyright © 2019. All rights reserved.