Class LegalHoldHeldRevisionMetadata

java.lang.Object
com.dropbox.core.v2.team.LegalHoldHeldRevisionMetadata

public class LegalHoldHeldRevisionMetadata extends Object
  • Field Details

    • newFilename

      @Nonnull protected final String newFilename
    • originalRevisionId

      @Nonnull protected final String originalRevisionId
    • originalFilePath

      @Nonnull protected final String originalFilePath
    • serverModified

      @Nonnull protected final Date serverModified
    • authorMemberId

      @Nonnull protected final String authorMemberId
    • authorMemberStatus

      @Nonnull protected final TeamMemberStatus authorMemberStatus
    • authorEmail

      @Nonnull protected final String authorEmail
    • fileType

      @Nonnull protected final String fileType
    • size

      protected final long size
    • contentHash

      @Nonnull protected final String contentHash
  • Constructor Details

    • LegalHoldHeldRevisionMetadata

      public LegalHoldHeldRevisionMetadata(@Nonnull String newFilename, @Nonnull String originalRevisionId, @Nonnull String originalFilePath, @Nonnull Date serverModified, @Nonnull String authorMemberId, @Nonnull TeamMemberStatus authorMemberStatus, @Nonnull String authorEmail, @Nonnull String fileType, long size, @Nonnull String contentHash)
      Parameters:
      newFilename - The held revision filename. Must not be null.
      originalRevisionId - The id of the held revision. Must have length of at least 9, match pattern "[0-9a-f]+", and not be null.
      originalFilePath - The original path of the held revision. Must match pattern "(/(.|[\\r\\n])*)?" and not be null.
      serverModified - The last time the file was modified on Dropbox. Must not be null.
      authorMemberId - The member id of the revision's author. Must not be null.
      authorMemberStatus - The member status of the revision's author. Must not be null.
      authorEmail - The email address of the held revision author. Must have length of at most 255, match pattern " ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$", and not be null.
      fileType - The type of the held revision's file. Must not be null.
      size - The file size in bytes.
      contentHash - A hash of the file content. This field can be used to verify data integrity. For more information see our Content hash page. Must have length of at least 64, have length of at most 64, and not be null.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
  • Method Details

    • getNewFilename

      @Nonnull public String getNewFilename()
      The held revision filename.
      Returns:
      value for this field, never null.
    • getOriginalRevisionId

      @Nonnull public String getOriginalRevisionId()
      The id of the held revision.
      Returns:
      value for this field, never null.
    • getOriginalFilePath

      @Nonnull public String getOriginalFilePath()
      The original path of the held revision.
      Returns:
      value for this field, never null.
    • getServerModified

      @Nonnull public Date getServerModified()
      The last time the file was modified on Dropbox.
      Returns:
      value for this field, never null.
    • getAuthorMemberId

      @Nonnull public String getAuthorMemberId()
      The member id of the revision's author.
      Returns:
      value for this field, never null.
    • getAuthorMemberStatus

      @Nonnull public TeamMemberStatus getAuthorMemberStatus()
      The member status of the revision's author.
      Returns:
      value for this field, never null.
    • getAuthorEmail

      @Nonnull public String getAuthorEmail()
      The email address of the held revision author.
      Returns:
      value for this field, never null.
    • getFileType

      @Nonnull public String getFileType()
      The type of the held revision's file.
      Returns:
      value for this field, never null.
    • getSize

      public long getSize()
      The file size in bytes.
      Returns:
      value for this field.
    • getContentHash

      @Nonnull public String getContentHash()
      A hash of the file content. This field can be used to verify data integrity. For more information see our Content hash page.
      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