Package com.dropbox.core.v2.teamlog
Class FileOrFolderLogInfo
- java.lang.Object
-
- com.dropbox.core.v2.teamlog.FileOrFolderLogInfo
-
- Direct Known Subclasses:
FileLogInfo,FolderLogInfo
public class FileOrFolderLogInfo extends java.lang.ObjectGeneric information relevant both for files and folders
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFileOrFolderLogInfo.BuilderBuilder forFileOrFolderLogInfo.
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringdisplayNameprotected java.lang.StringfileIdprotected java.lang.LongfileSizeprotected PathLogInfopath
-
Constructor Summary
Constructors Constructor Description FileOrFolderLogInfo(PathLogInfo path)Generic information relevant both for files and foldersFileOrFolderLogInfo(PathLogInfo path, java.lang.String displayName, java.lang.String fileId, java.lang.Long fileSize)Generic information relevant both for files and folders
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetDisplayName()Display name.java.lang.StringgetFileId()Unique ID.java.lang.LonggetFileSize()File or folder size in bytes.PathLogInfogetPath()Path relative to event context.inthashCode()static FileOrFolderLogInfo.BuildernewBuilder(PathLogInfo path)Returns a new builder for creating an instance of this class.java.lang.StringtoString()java.lang.StringtoStringMultiline()Returns a String representation of this object formatted for easier readability.
-
-
-
Field Detail
-
path
protected final PathLogInfo path
-
displayName
protected final java.lang.String displayName
-
fileId
protected final java.lang.String fileId
-
fileSize
protected final java.lang.Long fileSize
-
-
Constructor Detail
-
FileOrFolderLogInfo
public FileOrFolderLogInfo(PathLogInfo path, java.lang.String displayName, java.lang.String fileId, java.lang.Long fileSize)
Generic information relevant both for files and foldersUse
newBuilder(com.dropbox.core.v2.teamlog.PathLogInfo)to create instances of this class without specifying values for all optional fields.- Parameters:
path- Path relative to event context. Must not benull.displayName- Display name.fileId- Unique ID.fileSize- File or folder size in bytes.- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
-
FileOrFolderLogInfo
public FileOrFolderLogInfo(PathLogInfo path)
Generic information relevant both for files and foldersThe default values for unset fields will be used.
- Parameters:
path- Path relative to event context. Must not benull.- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
-
-
Method Detail
-
getPath
public PathLogInfo getPath()
Path relative to event context.- Returns:
- value for this field, never
null.
-
getDisplayName
public java.lang.String getDisplayName()
Display name.- Returns:
- value for this field, or
nullif not present.
-
getFileId
public java.lang.String getFileId()
Unique ID.- Returns:
- value for this field, or
nullif not present.
-
getFileSize
public java.lang.Long getFileSize()
File or folder size in bytes.- Returns:
- value for this field, or
nullif not present.
-
newBuilder
public static FileOrFolderLogInfo.Builder newBuilder(PathLogInfo path)
Returns a new builder for creating an instance of this class.- Parameters:
path- Path relative to event context. Must not benull.- Returns:
- builder for this class.
- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin 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
-
-