public class CosmosItemRequestOptions extends Object
Constructor and Description |
---|
CosmosItemRequestOptions()
Constructor
|
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).
|
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.
|
CosmosItemRequestOptions |
setAccessCondition(AccessCondition accessCondition)
Sets the conditions associated with the request.
|
CosmosItemRequestOptions |
setConsistencyLevel(ConsistencyLevel consistencyLevel)
Sets the consistency level required for the request.
|
CosmosItemRequestOptions |
setIndexingDirective(IndexingDirective indexingDirective)
Sets the indexing directive (index, do not index etc).
|
CosmosItemRequestOptions |
setPostTriggerInclude(List<String> postTriggerInclude)
Sets the triggers to be invoked after the operation.
|
CosmosItemRequestOptions |
setPreTriggerInclude(List<String> preTriggerInclude)
Sets the triggers to be invoked before the operation.
|
CosmosItemRequestOptions |
setSessionToken(String sessionToken)
Sets the token for use with session consistency.
|
public AccessCondition getAccessCondition()
public CosmosItemRequestOptions setAccessCondition(AccessCondition accessCondition)
accessCondition
- the access condition.public ConsistencyLevel getConsistencyLevel()
public CosmosItemRequestOptions setConsistencyLevel(ConsistencyLevel consistencyLevel)
consistencyLevel
- the consistency level.public IndexingDirective getIndexingDirective()
public CosmosItemRequestOptions setIndexingDirective(IndexingDirective indexingDirective)
indexingDirective
- the indexing directive.public List<String> getPreTriggerInclude()
public CosmosItemRequestOptions setPreTriggerInclude(List<String> preTriggerInclude)
preTriggerInclude
- the triggers to be invoked before the operation.public List<String> getPostTriggerInclude()
public CosmosItemRequestOptions setPostTriggerInclude(List<String> postTriggerInclude)
postTriggerInclude
- the triggers to be invoked after the operation.public String getSessionToken()
public CosmosItemRequestOptions setSessionToken(String sessionToken)
sessionToken
- the session token.Copyright © 2020 Microsoft Corporation. All rights reserved.