Class PaperDocGetMetadataResult

java.lang.Object
com.dropbox.core.v2.paper.PaperDocGetMetadataResult

public class PaperDocGetMetadataResult extends Object
Metadata returned by docs/get_metadata.
  • Field Details

    • docId

      @Nonnull protected final String docId
    • owner

      @Nonnull protected final String owner
    • title

      @Nonnull protected final String title
    • createdDate

      @Nonnull protected final Date createdDate
    • status

      @Nonnull protected final PaperDocStatus status
    • revision

      protected final long revision
    • lastUpdatedDate

      @Nonnull protected final Date lastUpdatedDate
    • lastEditor

      @Nonnull protected final String lastEditor
  • Constructor Details

    • PaperDocGetMetadataResult

      public PaperDocGetMetadataResult(@Nonnull String docId, @Nonnull String owner, @Nonnull String title, @Nonnull Date createdDate, @Nonnull PaperDocStatus status, long revision, @Nonnull Date lastUpdatedDate, @Nonnull String lastEditor)
      Metadata returned by docs/get_metadata.
      Parameters:
      docId - The Paper doc ID. Must not be null.
      owner - The Paper doc owner's email address. Must not be null.
      title - The Paper doc title. Must not be null.
      createdDate - The Paper doc creation date. Must not be null.
      status - The Paper doc status. Must not be null.
      revision - The Paper doc revision. Simply an ever increasing number.
      lastUpdatedDate - The date when the Paper doc was last edited. Must not be null.
      lastEditor - The email address of the last editor of the Paper doc. Must not be null.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
  • Method Details

    • getDocId

      @Nonnull public String getDocId()
      The Paper doc ID.
      Returns:
      value for this field, never null.
    • getOwner

      @Nonnull public String getOwner()
      The Paper doc owner's email address.
      Returns:
      value for this field, never null.
    • getTitle

      @Nonnull public String getTitle()
      The Paper doc title.
      Returns:
      value for this field, never null.
    • getCreatedDate

      @Nonnull public Date getCreatedDate()
      The Paper doc creation date.
      Returns:
      value for this field, never null.
    • getStatus

      @Nonnull public PaperDocStatus getStatus()
      The Paper doc status.
      Returns:
      value for this field, never null.
    • getRevision

      public long getRevision()
      The Paper doc revision. Simply an ever increasing number.
      Returns:
      value for this field.
    • getLastUpdatedDate

      @Nonnull public Date getLastUpdatedDate()
      The date when the Paper doc was last edited.
      Returns:
      value for this field, never null.
    • getLastEditor

      @Nonnull public String getLastEditor()
      The email address of the last editor of the Paper doc.
      Returns:
      value for this field, never null.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toStringMultiline

      public String toStringMultiline()
      Returns a String representation of this object formatted for easier readability.

      The returned String may contain newlines.

      Returns:
      Formatted, multiline String representation of this object