Uses of Class
com.azure.cosmos.models.CosmosItemRequestOptions
Package
Description
This package provides interfaces for interacting with Azure Cosmos DB.
This package provides rest contracts for interacting with Azure Cosmos DB SQL APIs.
-
Uses of CosmosItemRequestOptions in com.azure.cosmos
Modifier and TypeMethodDescription<T> Mono<CosmosItemResponse<T>>
CosmosAsyncContainer.createItem
(T item, CosmosItemRequestOptions options) Creates a Cosmos item.<T> Mono<CosmosItemResponse<T>>
CosmosAsyncContainer.createItem
(T item, PartitionKey partitionKey, CosmosItemRequestOptions options) Creates an item.<T> CosmosItemResponse<T>
CosmosContainer.createItem
(T item, CosmosItemRequestOptions options) Creates a new item synchronously and returns its respective Cosmos item response while specifying additional options.<T> CosmosItemResponse<T>
CosmosContainer.createItem
(T item, PartitionKey partitionKey, CosmosItemRequestOptions options) Creates a new item synchronously and returns its respective Cosmos item response while specifying additional options.CosmosAsyncContainer.deleteAllItemsByPartitionKey
(PartitionKey partitionKey, CosmosItemRequestOptions options) Deletes all items in the Container with the specified partitionKey value.CosmosContainer.deleteAllItemsByPartitionKey
(PartitionKey partitionKey, CosmosItemRequestOptions options) Deletes all items in the Container with the specified partitionKey value.CosmosAsyncContainer.deleteItem
(String itemId, PartitionKey partitionKey, CosmosItemRequestOptions options) Deletes the item.<T> Mono<CosmosItemResponse<Object>>
CosmosAsyncContainer.deleteItem
(T item, CosmosItemRequestOptions options) Deletes the item.CosmosContainer.deleteItem
(String itemId, PartitionKey partitionKey, CosmosItemRequestOptions options) Deletes an item in the current container.<T> CosmosItemResponse<Object>
CosmosContainer.deleteItem
(T item, CosmosItemRequestOptions options) Deletes an item in the current container.<T> Mono<CosmosItemResponse<T>>
CosmosAsyncContainer.readItem
(String itemId, PartitionKey partitionKey, CosmosItemRequestOptions options, Class<T> itemType) Reads an item by itemId using a configuredCosmosItemRequestOptions
.<T> CosmosItemResponse<T>
CosmosContainer.readItem
(String itemId, PartitionKey partitionKey, CosmosItemRequestOptions options, Class<T> itemType) Reads an item in the current container while specifying additional options.<T> Mono<CosmosItemResponse<T>>
CosmosAsyncContainer.replaceItem
(T item, String itemId, PartitionKey partitionKey, CosmosItemRequestOptions options) Replaces an existing item in a container with a new item.<T> CosmosItemResponse<T>
CosmosContainer.replaceItem
(T item, String itemId, PartitionKey partitionKey, CosmosItemRequestOptions options) Replaces an existing item in a container with a new item.<T> Mono<CosmosItemResponse<T>>
CosmosAsyncContainer.upsertItem
(T item, CosmosItemRequestOptions options) Upserts an item.<T> Mono<CosmosItemResponse<T>>
CosmosAsyncContainer.upsertItem
(T item, PartitionKey partitionKey, CosmosItemRequestOptions options) Upserts an item.<T> CosmosItemResponse<T>
CosmosContainer.upsertItem
(T item, CosmosItemRequestOptions options) Upserts a item Cosmos sync item while specifying additional options.<T> CosmosItemResponse<T>
CosmosContainer.upsertItem
(T item, PartitionKey partitionKey, CosmosItemRequestOptions options) Upserts an item Cosmos sync item while specifying additional options. -
Uses of CosmosItemRequestOptions in com.azure.cosmos.models
Modifier and TypeMethodDescriptionCosmosItemRequestOptions.setConsistencyLevel
(ConsistencyLevel consistencyLevel) Sets the consistency level required for the request.CosmosItemRequestOptions.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 on CosmosItem.CosmosItemRequestOptions.setCosmosEndToEndOperationLatencyPolicyConfig
(CosmosEndToEndOperationLatencyPolicyConfig endToEndOperationLatencyPolicyConfig) Sets theCosmosEndToEndOperationLatencyPolicyConfig
to be used for the request.CosmosItemRequestOptions.setCustomItemSerializer
(CosmosItemSerializer customItemSerializer) Allows specifying a custom item serializer to be used for this operation.CosmosItemRequestOptions.setDedicatedGatewayRequestOptions
(DedicatedGatewayRequestOptions dedicatedGatewayRequestOptions) Sets the Dedicated Gateway Request OptionsCosmosItemRequestOptions.setDiagnosticsThresholds
(CosmosDiagnosticsThresholds operationSpecificThresholds) Allows overriding the diagnostic thresholds for a specific operation.CosmosItemRequestOptions.setExcludedRegions
(List<String> excludeRegions) List of regions to exclude for the request/retries.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.setKeywordIdentifiers
(Set<String> keywordIdentifiers) Sets the custom ids.CosmosItemRequestOptions.setNonIdempotentWriteRetryPolicy
(boolean nonIdempotentWriteRetriesEnabled, boolean useTrackingIdPropertyForCreateAndReplace) Enables automatic retries for write operations even when the SDK can't guarantee that they are idempotent.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.CosmosItemRequestOptions.setThresholdForDiagnosticsOnTracer
(Duration thresholdForDiagnosticsOnTracer) Sets the thresholdForDiagnosticsOnTracer, if latency on CRUD operation is greater than this diagnostics will be sent to open telemetry exporter as events in tracer span of end to end CRUD api.