@Beta(value=V4_13_0, warningText="Preview API - subject to change in non-backwards compatible way") public final class BulkPatchItemRequestOptions extends Object
BulkOperations
.Constructor and Description |
---|
BulkPatchItemRequestOptions() |
Modifier and Type | Method and Description |
---|---|
String |
getFilterPredicate()
Gets the FilterPredicate associated with the request in the Azure Cosmos DB service.
|
String |
getIfMatchETag()
Gets the If-Match (ETag) associated with the operation in
CosmosItemOperation . |
String |
getIfNoneMatchETag()
Gets the If-None-Match (ETag) associated with the request in operation in
CosmosItemOperation . |
Boolean |
isContentResponseOnWriteEnabled()
Gets the boolean to only return the headers and status code in Cosmos DB response
in case of Create, Update and Delete operations in
CosmosItemOperation . |
BulkPatchItemRequestOptions |
setContentResponseOnWriteEnabled(Boolean contentResponseOnWriteEnabled)
Sets the boolean to only return the headers and status code in Cosmos DB response
in case of Create, Update and Delete operations in
CosmosItemOperation . |
void |
setContentResponseOnWriteEnabledCore(Boolean contentResponseOnWriteEnabled)
Sets the boolean to only return the headers and status code in Cosmos DB response
in case of Create, Update and Delete operations in
CosmosItemOperation . |
BulkPatchItemRequestOptions |
setFilterPredicate(String filterPredicate)
Sets the FilterPredicate associated with the request in the Azure Cosmos DB service.
|
BulkPatchItemRequestOptions |
setIfMatchETag(String ifMatchETag)
Sets the If-Match (ETag) associated with the operation in
CosmosItemOperation . |
void |
setIfMatchETagCore(String ifMatchETag)
Sets the If-Match (ETag) associated with the operation in
CosmosItemOperation . |
BulkPatchItemRequestOptions |
setIfNoneMatchETag(String ifNoneMatchEtag)
Sets the If-None-Match (ETag) associated with the request in operation in
CosmosItemOperation . |
void |
setIfNoneMatchETagCore(String ifNoneMatchEtag)
Sets the If-None-Match (ETag) associated with the request in operation in
CosmosItemOperation . |
@Beta(value=V4_13_0, warningText="Preview API - subject to change in non-backwards compatible way") public String getFilterPredicate()
@Beta(value=V4_13_0, warningText="Preview API - subject to change in non-backwards compatible way") public BulkPatchItemRequestOptions setFilterPredicate(String filterPredicate)
setFilterPredicate("from c where c.taskNum = 3")
.filterPredicate
- the filterPredicate associated with the request.@Beta(value=V4_13_0, warningText="Preview API - subject to change in non-backwards compatible way") public BulkPatchItemRequestOptions setContentResponseOnWriteEnabled(Boolean contentResponseOnWriteEnabled)
CosmosItemOperation
.
If set to false, service doesn't return payload in the response. It reduces networking
and CPU load by not sending the payload back over the network and serializing it on the client.
This feature does not impact RU usage for read or write operations.
By-default, this is null.
NOTE: This flag is also present on CosmosClientBuilder
, however if specified
here, it will override the value specified in CosmosClientBuilder
for this request.contentResponseOnWriteEnabled
- a boolean indicating whether payload will be included
in the response or not for this operation.@Beta(value=V4_13_0, warningText="Preview API - subject to change in non-backwards compatible way") public BulkPatchItemRequestOptions setIfNoneMatchETag(String ifNoneMatchEtag)
CosmosItemOperation
.ifNoneMatchEtag
- the ifNoneMatchETag associated with the request.@Beta(value=V4_13_0, warningText="Preview API - subject to change in non-backwards compatible way") public BulkPatchItemRequestOptions setIfMatchETag(String ifMatchETag)
CosmosItemOperation
.ifMatchETag
- the ifMatchETag associated with the request.@Beta(value=V4_13_0, warningText="Preview API - subject to change in non-backwards compatible way") public String getIfMatchETag()
CosmosItemOperation
.@Beta(value=V4_13_0, warningText="Preview API - subject to change in non-backwards compatible way") public void setIfMatchETagCore(String ifMatchETag)
CosmosItemOperation
.ifMatchETag
- the ifMatchETag associated with the request.@Beta(value=V4_13_0, warningText="Preview API - subject to change in non-backwards compatible way") public String getIfNoneMatchETag()
CosmosItemOperation
.@Beta(value=V4_13_0, warningText="Preview API - subject to change in non-backwards compatible way") public void setIfNoneMatchETagCore(String ifNoneMatchEtag)
CosmosItemOperation
.ifNoneMatchEtag
- the ifNoneMatchETag associated with the request.@Beta(value=V4_13_0, warningText="Preview API - subject to change in non-backwards compatible way") public Boolean isContentResponseOnWriteEnabled()
CosmosItemOperation
.
If set to false, service doesn't return payload in the response. It reduces networking
and CPU load by not sending the payload back over the network and serializing it on the client.
This feature does not impact RU usage for read or write operations.
By-default, this is null.@Beta(value=V4_13_0, warningText="Preview API - subject to change in non-backwards compatible way") public void setContentResponseOnWriteEnabledCore(Boolean contentResponseOnWriteEnabled)
CosmosItemOperation
.
If set to false, service doesn't return payload in the response. It reduces networking
and CPU load by not sending the payload back over the network and serializing it on the client.
This feature does not impact RU usage for read or write operations.
By-default, this is null.
NOTE: This flag is also present on CosmosClientBuilder
, however if specified
here, it will override the value specified in CosmosClientBuilder
for this request.contentResponseOnWriteEnabled
- a boolean indicating whether payload will be included
in the response or not for this operation.Copyright © 2021 Microsoft Corporation. All rights reserved.