Class CosmosOperationDetails

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

public final class CosmosOperationDetails extends Object
Encapsulates the details of an operation and allows for overriding some properties in the internal request options.
  • Method Details

    • setRequestOptions

      public void setRequestOptions(CosmosRequestOptions cosmosRequestOptions)
      Applies the options in CosmosRequestOptions to the internal request options.
      Parameters:
      cosmosRequestOptions - the common request options for overriding.
    • getRequestContext

      public CosmosRequestContext getRequestContext()
      Gets the request context associated with an operation.
      Returns:
      the request context.
    • getDiagnosticsContext

      public CosmosDiagnosticsContext getDiagnosticsContext()
      Gets the diagnostics context associated with an operation.
      Returns:
      the diagnostics context.