CosmosClientBuilder.contentResponseOnWriteEnabled(boolean contentResponseOnWriteEnabled) Method


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. If set to false (which is by default), 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 false.

public CosmosClientBuilder contentResponseOnWriteEnabled(boolean contentResponseOnWriteEnabled)



a boolean indicating whether payload will be included in the response or not


current cosmosClientBuilder

Applies to