Package com.azure.cosmos.models
Class CosmosPatchItemRequestOptions
- java.lang.Object
-
- com.azure.cosmos.models.CosmosItemRequestOptions
-
- com.azure.cosmos.models.CosmosPatchItemRequestOptions
-
public class CosmosPatchItemRequestOptions extends CosmosItemRequestOptions
Encapsulates options forCosmosPatchOperations
-
-
Constructor Summary
Constructors Constructor Description CosmosPatchItemRequestOptions()
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getFilterPredicate()
Gets the FilterPredicate associated with the request in the Azure Cosmos DB service.CosmosPatchItemRequestOptions
setFilterPredicate(String filterPredicate)
Sets the FilterPredicate associated with the request in the Azure Cosmos DB service.-
Methods inherited from class com.azure.cosmos.models.CosmosItemRequestOptions
getConsistencyLevel, getDedicatedGatewayRequestOptions, getIfMatchETag, getIfNoneMatchETag, getIndexingDirective, getPostTriggerInclude, getPreTriggerInclude, getSessionToken, getThresholdForDiagnosticsOnTracer, getThroughputControlGroupName, isContentResponseOnWriteEnabled, setConsistencyLevel, setContentResponseOnWriteEnabled, setDedicatedGatewayRequestOptions, setIfMatchETag, setIfNoneMatchETag, setIndexingDirective, setPostTriggerInclude, setPreTriggerInclude, setSessionToken, setThresholdForDiagnosticsOnTracer, setThroughputControlGroupName
-
-
-
-
Method Detail
-
getFilterPredicate
public String getFilterPredicate()
Gets the FilterPredicate associated with the request in the Azure Cosmos DB service.- Returns:
- the FilterPredicate associated with the request.
-
setFilterPredicate
public CosmosPatchItemRequestOptions setFilterPredicate(String filterPredicate)
Sets the FilterPredicate associated with the request in the Azure Cosmos DB service. for example:setFilterPredicate("from c where c.taskNum = 3")
.- Parameters:
filterPredicate
- the filterPredicate associated with the request.- Returns:
- the current request options
-
-