Class InsertOneModel<T>

  • Type Parameters:
    T - the type of document to insert. This can be of any type for which a Codec is registered

    @Deprecated(since="2021-05-27")
    public final class InsertOneModel<T>
    extends WriteModel<T>
    Deprecated.
    Usage of this API is not supported in AEM as a Cloud Service.
    A model describing an insert of a single document.
    Since:
    3.0
    • Constructor Summary

      Constructors 
      Constructor Description
      InsertOneModel​(T document)
      Deprecated.
      Construct a new instance.
    • Constructor Detail

      • InsertOneModel

        public InsertOneModel​(T document)
        Deprecated.
        Construct a new instance.
        Parameters:
        document - the document to insert, which may not be null.
    • Method Detail

      • getDocument

        public T getDocument()
        Deprecated.
        Gets the document to insert.
        Returns:
        the document to insert
      • toString

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