public class CosmosItem extends Object
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<CosmosItemResponse> |
delete()
Deletes the item.
|
reactor.core.publisher.Mono<CosmosItemResponse> |
delete(CosmosItemRequestOptions options)
Deletes the item.
|
String |
id()
Get the id of the
CosmosItem |
reactor.core.publisher.Mono<CosmosItemResponse> |
read()
Reads an item.
|
reactor.core.publisher.Mono<CosmosItemResponse> |
read(CosmosItemRequestOptions options)
Reads an item.
|
reactor.core.publisher.Mono<CosmosItemResponse> |
replace(Object item)
Replaces an item with the passed in item.
|
reactor.core.publisher.Mono<CosmosItemResponse> |
replace(Object item,
CosmosItemRequestOptions options)
Replaces an item with the passed in item.
|
public String id()
CosmosItemCosmosItempublic reactor.core.publisher.Mono<CosmosItemResponse> read()
Mono upon successful completion will contain a cosmos item response with the read item
In case of failure the Mono will error.Mono containing the cosmos item response with the read item or an errorpublic reactor.core.publisher.Mono<CosmosItemResponse> read(CosmosItemRequestOptions options)
Mono upon successful completion will contain a cosmos item response with the read item
In case of failure the Mono will error.options - the request comosItemRequestOptionsMono containing the cosmos item response with the read item or an errorpublic reactor.core.publisher.Mono<CosmosItemResponse> replace(Object item)
Mono upon successful completion will contain a single cosmos item response with the replaced item.
In case of failure the Mono will error.item - the item to replace (containing the document id).Mono containing the cosmos item resource response with the replaced item or an error.public reactor.core.publisher.Mono<CosmosItemResponse> replace(Object item, CosmosItemRequestOptions options)
Mono upon successful completion will contain a single cosmos item response with the replaced item.
In case of failure the Mono will error.item - the item to replace (containing the document id).options - the request comosItemRequestOptionsMono containing the cosmos item resource response with the replaced item or an error.public reactor.core.publisher.Mono<CosmosItemResponse> delete()
Mono upon successful completion will contain a single cosmos item response with the replaced item.
In case of failure the Mono will error.Mono containing the cosmos item resource response.public reactor.core.publisher.Mono<CosmosItemResponse> delete(CosmosItemRequestOptions options)
Mono upon successful completion will contain a single cosmos item response with the replaced item.
In case of failure the Mono will error.options - the request optionsMono containing the cosmos item resource response.Copyright © 2019. All rights reserved.