CosmosOperationDetails Class

  • java.lang.Object
    • com.azure.cosmos.models.CosmosOperationDetails

public final class CosmosOperationDetails

Encapsulates the details of an operation and allows for overriding some properties in the internal request options.

Method Summary

Modifier and Type Method and Description
CosmosDiagnosticsContext getDiagnosticsContext()

Gets the diagnostics context associated with an operation.

CosmosRequestContext getRequestContext()

Gets the request context associated with an operation.

void setRequestOptions(CosmosRequestOptions cosmosRequestOptions)

Applies the options in CosmosRequestOptions to the internal request options.

Methods inherited from java.lang.Object

Method Details

getDiagnosticsContext

public CosmosDiagnosticsContext getDiagnosticsContext()

Gets the diagnostics context associated with an operation.

Returns:

the diagnostics context.

getRequestContext

public CosmosRequestContext getRequestContext()

Gets the request context associated with an operation.

Returns:

the request context.

setRequestOptions

public void setRequestOptions(CosmosRequestOptions cosmosRequestOptions)

Applies the options in CosmosRequestOptions to the internal request options.

Parameters:

cosmosRequestOptions - the common request options for overriding.

Applies to