public final class CosmosItemRequestOptions extends Object
Constructor and Description |
---|
CosmosItemRequestOptions()
Constructor
|
Modifier and Type | Method and Description |
---|---|
String |
getIfMatchETag()
Gets the If-Match (ETag) associated with the request in the Azure Cosmos DB service.
|
String |
getIfNoneMatchETag()
Gets the If-None-Match (ETag) associated with the request in the Azure Cosmos DB service.
|
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 |
setIfMatchETag(String ifMatchETag)
Sets the If-Match (ETag) associated with the request in the Azure Cosmos DB service.
|
CosmosItemRequestOptions |
setIfNoneMatchETag(String ifNoneMatchETag)
Sets the If-None-Match (ETag) associated with the request in the Azure Cosmos DB service.
|
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 String getIfMatchETag()
public CosmosItemRequestOptions setIfMatchETag(String ifMatchETag)
ifMatchETag
- the ifMatchETag associated with the request.public String getIfNoneMatchETag()
public CosmosItemRequestOptions setIfNoneMatchETag(String ifNoneMatchETag)
ifNoneMatchETag
- the ifNoneMatchETag associated with the request.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.