Interface ClientDeleteOneOptions


@Sealed public interface ClientDeleteOneOptions
The options to apply when deleting a document.
Since:
5.3
  • Method Details

    • clientDeleteOneOptions

      static ClientDeleteOneOptions clientDeleteOneOptions()
      Creates the default options.
      Returns:
      The default options.
    • collation

      Sets the collation.
      Parameters:
      collation - The collation. null represents the server default.
      Returns:
      this.
    • hint

      ClientDeleteOneOptions hint(@Nullable org.bson.conversions.Bson hint)
      Sets the index specification, null-ifies hint string.
      Parameters:
      hint - The index specification. null represents the server default.
      Returns:
      this.
    • hintString

      ClientDeleteOneOptions hintString(@Nullable String hintString)
      Sets the index name, null-ifies hint.
      Parameters:
      hintString - The index name. null represents the server default.
      Returns:
      this.