Class CosmosConflictProperties


  • public final class CosmosConflictProperties
    extends Object
    The type Cosmos conflict properties.
    • Method Detail

      • getOperationKind

        public com.azure.cosmos.implementation.OperationKind getOperationKind()
        Gets the operation kind.
        Returns:
        the operation kind.
      • getItem

        public <T> T getItem​(Class<T> klass)
        Gets the conflicting resource in the Azure Cosmos DB service.
        Type Parameters:
        T - the type of the object.
        Parameters:
        klass - The returned type of conflicting resource.
        Returns:
        The conflicting resource.
      • getId

        public String getId()
        Gets the name of the resource.
        Returns:
        the name of the resource.
      • getTimestamp

        public Instant getTimestamp()
        Get the last modified timestamp associated with the resource. This is only relevant when getting response from the server.
        Returns:
        the timestamp.
      • getETag

        public String getETag()
        Get the entity tag associated with the resource. This is only relevant when getting response from the server.
        Returns:
        the e tag.