Class InsertOneOptions


  • @Deprecated(since="2021-05-27")
    public final class InsertOneOptions
    extends java.lang.Object
    Deprecated.
    Usage of this API is not supported in AEM as a Cloud Service.
    The options to apply to an operation that inserts a single document into a collection.
    Since:
    3.2
    • Constructor Detail

      • InsertOneOptions

        public InsertOneOptions()
        Deprecated.
    • Method Detail

      • getBypassDocumentValidation

        @Nullable
        public java.lang.Boolean getBypassDocumentValidation()
        Deprecated.
        Gets the the bypass document level validation flag
        Returns:
        the bypass document level validation flag
      • bypassDocumentValidation

        public InsertOneOptions bypassDocumentValidation​(@Nullable
                                                         java.lang.Boolean bypassDocumentValidation)
        Deprecated.
        Sets the bypass document level validation flag.
        Parameters:
        bypassDocumentValidation - If true, allows the write to opt-out of document level validation.
        Returns:
        this
      • toString

        public java.lang.String toString()
        Deprecated.
        Overrides:
        toString in class java.lang.Object