Package com.dropbox.core.v2.teamlog
Class FileOrFolderLogInfo.Builder
- java.lang.Object
-
- com.dropbox.core.v2.teamlog.FileOrFolderLogInfo.Builder
-
- Direct Known Subclasses:
FileLogInfo.Builder
,FolderLogInfo.Builder
- Enclosing class:
- FileOrFolderLogInfo
public static class FileOrFolderLogInfo.Builder extends java.lang.Object
Builder forFileOrFolderLogInfo
.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
displayName
protected java.lang.String
fileId
protected java.lang.Long
fileSize
protected PathLogInfo
path
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder(PathLogInfo path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileOrFolderLogInfo
build()
Builds an instance ofFileOrFolderLogInfo
configured with this builder's valuesFileOrFolderLogInfo.Builder
withDisplayName(java.lang.String displayName)
Set value for optional field.FileOrFolderLogInfo.Builder
withFileId(java.lang.String fileId)
Set value for optional field.FileOrFolderLogInfo.Builder
withFileSize(java.lang.Long fileSize)
Set value for optional field.
-
-
-
Field Detail
-
path
protected final PathLogInfo path
-
displayName
protected java.lang.String displayName
-
fileId
protected java.lang.String fileId
-
fileSize
protected java.lang.Long fileSize
-
-
Constructor Detail
-
Builder
protected Builder(PathLogInfo path)
-
-
Method Detail
-
withDisplayName
public FileOrFolderLogInfo.Builder withDisplayName(java.lang.String displayName)
Set value for optional field.- Parameters:
displayName
- Display name. Might be missing due to historical data gap.- Returns:
- this builder
-
withFileId
public FileOrFolderLogInfo.Builder withFileId(java.lang.String fileId)
Set value for optional field.- Parameters:
fileId
- Unique ID. Might be missing due to historical data gap.- Returns:
- this builder
-
withFileSize
public FileOrFolderLogInfo.Builder withFileSize(java.lang.Long fileSize)
Set value for optional field.- Parameters:
fileSize
- File or folder size in bytes.- Returns:
- this builder
-
build
public FileOrFolderLogInfo build()
Builds an instance ofFileOrFolderLogInfo
configured with this builder's values- Returns:
- new instance of
FileOrFolderLogInfo
-
-