Class PaperCreateResult

java.lang.Object
com.dropbox.core.v2.files.PaperCreateResult

public class PaperCreateResult extends Object
  • Field Details

    • url

      @Nonnull protected final String url
    • resultPath

      @Nonnull protected final String resultPath
    • fileId

      @Nonnull protected final String fileId
    • paperRevision

      protected final long paperRevision
  • Constructor Details

    • PaperCreateResult

      public PaperCreateResult(@Nonnull String url, @Nonnull String resultPath, @Nonnull String fileId, long paperRevision)
      Parameters:
      url - URL to open the Paper Doc. Must not be null.
      resultPath - The fully qualified path the Paper Doc was actually created at. Must not be null.
      fileId - The id to use in Dropbox APIs when referencing the Paper Doc. Must have length of at least 4, match pattern "id:.+", and not be null.
      paperRevision - The current doc revision.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
  • Method Details

    • getUrl

      @Nonnull public String getUrl()
      URL to open the Paper Doc.
      Returns:
      value for this field, never null.
    • getResultPath

      @Nonnull public String getResultPath()
      The fully qualified path the Paper Doc was actually created at.
      Returns:
      value for this field, never null.
    • getFileId

      @Nonnull public String getFileId()
      The id to use in Dropbox APIs when referencing the Paper Doc.
      Returns:
      value for this field, never null.
    • getPaperRevision

      public long getPaperRevision()
      The current doc revision.
      Returns:
      value for this field.
    • 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