Package com.dropbox.core.v2.team
Class LegalHoldHeldRevisionMetadata
- java.lang.Object
-
- com.dropbox.core.v2.team.LegalHoldHeldRevisionMetadata
-
public class LegalHoldHeldRevisionMetadata extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
authorEmail
protected java.lang.String
authorMemberId
protected TeamMemberStatus
authorMemberStatus
protected java.lang.String
contentHash
protected java.lang.String
fileType
protected java.lang.String
newFilename
protected java.lang.String
originalFilePath
protected java.lang.String
originalRevisionId
protected java.util.Date
serverModified
protected long
size
-
Constructor Summary
Constructors Constructor Description LegalHoldHeldRevisionMetadata(java.lang.String newFilename, java.lang.String originalRevisionId, java.lang.String originalFilePath, java.util.Date serverModified, java.lang.String authorMemberId, TeamMemberStatus authorMemberStatus, java.lang.String authorEmail, java.lang.String fileType, long size, java.lang.String contentHash)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getAuthorEmail()
The email address of the held revision author.java.lang.String
getAuthorMemberId()
The member id of the revision's author.TeamMemberStatus
getAuthorMemberStatus()
The member status of the revision's author.java.lang.String
getContentHash()
A hash of the file content.java.lang.String
getFileType()
The type of the held revision's file.java.lang.String
getNewFilename()
The held revision filename.java.lang.String
getOriginalFilePath()
The original path of the held revision.java.lang.String
getOriginalRevisionId()
The id of the held revision.java.util.Date
getServerModified()
The last time the file was modified on Dropbox.long
getSize()
The file size in bytes.int
hashCode()
java.lang.String
toString()
java.lang.String
toStringMultiline()
Returns a String representation of this object formatted for easier readability.
-
-
-
Field Detail
-
newFilename
@Nonnull protected final java.lang.String newFilename
-
originalRevisionId
@Nonnull protected final java.lang.String originalRevisionId
-
originalFilePath
@Nonnull protected final java.lang.String originalFilePath
-
serverModified
@Nonnull protected final java.util.Date serverModified
-
authorMemberId
@Nonnull protected final java.lang.String authorMemberId
-
authorMemberStatus
@Nonnull protected final TeamMemberStatus authorMemberStatus
-
authorEmail
@Nonnull protected final java.lang.String authorEmail
-
fileType
@Nonnull protected final java.lang.String fileType
-
size
protected final long size
-
contentHash
@Nonnull protected final java.lang.String contentHash
-
-
Constructor Detail
-
LegalHoldHeldRevisionMetadata
public LegalHoldHeldRevisionMetadata(@Nonnull java.lang.String newFilename, @Nonnull java.lang.String originalRevisionId, @Nonnull java.lang.String originalFilePath, @Nonnull java.util.Date serverModified, @Nonnull java.lang.String authorMemberId, @Nonnull TeamMemberStatus authorMemberStatus, @Nonnull java.lang.String authorEmail, @Nonnull java.lang.String fileType, long size, @Nonnull java.lang.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:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
-
Method Detail
-
getNewFilename
@Nonnull public java.lang.String getNewFilename()
The held revision filename.- Returns:
- value for this field, never
null
.
-
getOriginalRevisionId
@Nonnull public java.lang.String getOriginalRevisionId()
The id of the held revision.- Returns:
- value for this field, never
null
.
-
getOriginalFilePath
@Nonnull public java.lang.String getOriginalFilePath()
The original path of the held revision.- Returns:
- value for this field, never
null
.
-
getServerModified
@Nonnull public java.util.Date getServerModified()
The last time the file was modified on Dropbox.- Returns:
- value for this field, never
null
.
-
getAuthorMemberId
@Nonnull public java.lang.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 java.lang.String getAuthorEmail()
The email address of the held revision author.- Returns:
- value for this field, never
null
.
-
getFileType
@Nonnull public java.lang.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 java.lang.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 classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toStringMultiline
public java.lang.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
-
-