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.ObjectBuilder forFileOrFolderLogInfo.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringdisplayNameprotected java.lang.StringfileIdprotected java.lang.LongfileSizeprotected PathLogInfopath
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder(PathLogInfo path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileOrFolderLogInfobuild()Builds an instance ofFileOrFolderLogInfoconfigured with this builder's valuesFileOrFolderLogInfo.BuilderwithDisplayName(java.lang.String displayName)Set value for optional field.FileOrFolderLogInfo.BuilderwithFileId(java.lang.String fileId)Set value for optional field.FileOrFolderLogInfo.BuilderwithFileSize(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.- Returns:
- this builder
-
withFileId
public FileOrFolderLogInfo.Builder withFileId(java.lang.String fileId)
Set value for optional field.- Parameters:
fileId- Unique ID.- 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 ofFileOrFolderLogInfoconfigured with this builder's values- Returns:
- new instance of
FileOrFolderLogInfo
-
-