Uses of Class
com.azure.cosmos.models.CosmosItemResponse
Package
Description
This package provides interfaces for interacting with Azure Cosmos DB.
-
Uses of CosmosItemResponse in com.azure.cosmos
Modifier and TypeMethodDescription<T> CosmosItemResponse<T>
CosmosContainer.createItem
(T item) Creates a new item synchronously and returns its respective Cosmos item response.<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.CosmosContainer.deleteAllItemsByPartitionKey
(PartitionKey partitionKey, CosmosItemRequestOptions options) Deletes all items in the Container with the specified partitionKey value.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> CosmosItemResponse<T>
CosmosContainer.patchItem
(String itemId, PartitionKey partitionKey, CosmosPatchOperations cosmosPatchOperations, CosmosPatchItemRequestOptions options, Class<T> itemType) Run partial update that modifies specific properties or fields of the item without replacing the entire item.<T> CosmosItemResponse<T>
CosmosContainer.patchItem
(String itemId, PartitionKey partitionKey, CosmosPatchOperations cosmosPatchOperations, Class<T> itemType) Run partial update that modifies specific properties or fields of the item without replacing the entire item.<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> CosmosItemResponse<T>
CosmosContainer.readItem
(String itemId, PartitionKey partitionKey, Class<T> itemType) Reads an item in the current container.<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> CosmosItemResponse<T>
CosmosContainer.upsertItem
(T item) Upserts an Cosmos item in the current container.<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.Modifier and TypeMethodDescription<T> Mono<CosmosItemResponse<T>>
CosmosAsyncContainer.createItem
(T item) Creates an item.<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.CosmosAsyncContainer.deleteAllItemsByPartitionKey
(PartitionKey partitionKey, CosmosItemRequestOptions options) Deletes all items in the Container with the specified partitionKey value.CosmosAsyncContainer.deleteItem
(String itemId, PartitionKey partitionKey) Deletes an item.CosmosAsyncContainer.deleteItem
(String itemId, PartitionKey partitionKey, CosmosItemRequestOptions options) Deletes the item.<T> Mono<CosmosItemResponse<Object>>
CosmosAsyncContainer.deleteItem
(T item, CosmosItemRequestOptions options) Deletes the item.<T> Mono<CosmosItemResponse<T>>
CosmosAsyncContainer.patchItem
(String itemId, PartitionKey partitionKey, CosmosPatchOperations cosmosPatchOperations, CosmosPatchItemRequestOptions options, Class<T> itemType) Run partial update that modifies specific properties or fields of the item without replacing the entire item.<T> Mono<CosmosItemResponse<T>>
CosmosAsyncContainer.patchItem
(String itemId, PartitionKey partitionKey, CosmosPatchOperations cosmosPatchOperations, Class<T> itemType) Run partial update that modifies specific properties or fields of the item without replacing the entire item.<T> Mono<CosmosItemResponse<T>>
CosmosAsyncContainer.readItem
(String itemId, PartitionKey partitionKey, CosmosItemRequestOptions options, Class<T> itemType) Reads an item by itemId using a configuredCosmosItemRequestOptions
.<T> Mono<CosmosItemResponse<T>>
CosmosAsyncContainer.readItem
(String itemId, PartitionKey partitionKey, Class<T> itemType) Reads an item by itemId.<T> Mono<CosmosItemResponse<T>>
CosmosAsyncContainer.replaceItem
(T item, String itemId, PartitionKey partitionKey) Replaces an existing item in a container with a new item.<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> Mono<CosmosItemResponse<T>>
CosmosAsyncContainer.upsertItem
(T item) Upserts an 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.