Package com.dropbox.core.v2.team
Class LegalHoldHeldRevisionMetadata
java.lang.Object
com.dropbox.core.v2.team.LegalHoldHeldRevisionMetadata
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLegalHoldHeldRevisionMetadata(String newFilename, String originalRevisionId, String originalFilePath, Date serverModified, String authorMemberId, TeamMemberStatus authorMemberStatus, String authorEmail, String fileType, long size, String contentHash) -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe email address of the held revision author.The member id of the revision's author.The member status of the revision's author.A hash of the file content.The type of the held revision's file.The held revision filename.The original path of the held revision.The id of the held revision.The last time the file was modified on Dropbox.longgetSize()The file size in bytes.inthashCode()toString()Returns a String representation of this object formatted for easier readability.
-
Field Details
-
newFilename
-
originalRevisionId
-
originalFilePath
-
serverModified
-
authorMemberId
-
authorMemberStatus
-
authorEmail
-
fileType
-
size
protected final long size -
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 benull.originalRevisionId- The id of the held revision. Must have length of at least 9, match pattern "[0-9a-f]+", and not benull.originalFilePath- The original path of the held revision. Must match pattern "(/(.|[\\r\\n])*)?" and not benull.serverModified- The last time the file was modified on Dropbox. Must not benull.authorMemberId- The member id of the revision's author. Must not benull.authorMemberStatus- The member status of the revision's author. Must not benull.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 benull.fileType- The type of the held revision's file. Must not benull.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 benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
-
Method Details
-
getNewFilename
The held revision filename.- Returns:
- value for this field, never
null.
-
getOriginalRevisionId
The id of the held revision.- Returns:
- value for this field, never
null.
-
getOriginalFilePath
The original path of the held revision.- Returns:
- value for this field, never
null.
-
getServerModified
The last time the file was modified on Dropbox.- Returns:
- value for this field, never
null.
-
getAuthorMemberId
The member id of the revision's author.- Returns:
- value for this field, never
null.
-
getAuthorMemberStatus
The member status of the revision's author.- Returns:
- value for this field, never
null.
-
getAuthorEmail
The email address of the held revision author.- Returns:
- value for this field, never
null.
-
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
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() -
equals
-
toString
-
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
-