public static class FolderMetadata.Builder extends Metadata.Builder
FolderMetadata
.Modifier and Type | Field and Description |
---|---|
protected String |
id |
protected List<PropertyGroup> |
propertyGroups |
protected String |
sharedFolderId |
protected FolderSharingInfo |
sharingInfo |
name, parentSharedFolderId, pathDisplay, pathLower
Modifier | Constructor and Description |
---|---|
protected |
Builder(String name,
String id) |
Modifier and Type | Method and Description |
---|---|
FolderMetadata |
build()
Builds an instance of
FolderMetadata configured with this
builder's values |
FolderMetadata.Builder |
withParentSharedFolderId(String parentSharedFolderId)
Set value for optional field.
|
FolderMetadata.Builder |
withPathDisplay(String pathDisplay)
Set value for optional field.
|
FolderMetadata.Builder |
withPathLower(String pathLower)
Set value for optional field.
|
FolderMetadata.Builder |
withPropertyGroups(List<PropertyGroup> propertyGroups)
Set value for optional field.
|
FolderMetadata.Builder |
withSharedFolderId(String sharedFolderId)
Set value for optional field.
|
FolderMetadata.Builder |
withSharingInfo(FolderSharingInfo sharingInfo)
Set value for optional field.
|
protected final String id
protected String sharedFolderId
protected FolderSharingInfo sharingInfo
protected List<PropertyGroup> propertyGroups
public FolderMetadata.Builder withSharedFolderId(String sharedFolderId)
sharedFolderId
- Deprecated. Please use FolderMetadata.getSharingInfo()
instead. Must match pattern
"[-_0-9a-zA-Z:]+
".IllegalArgumentException
- If any argument does not meet its
preconditions.public FolderMetadata.Builder withSharingInfo(FolderSharingInfo sharingInfo)
sharingInfo
- Set if the folder is contained in a shared folder
or is a shared folder mount point.public FolderMetadata.Builder withPropertyGroups(List<PropertyGroup> propertyGroups)
propertyGroups
- Additional information if the file has custom
properties with the property template specified. Must not contain
a null
item.IllegalArgumentException
- If any argument does not meet its
preconditions.public FolderMetadata.Builder withPathLower(String pathLower)
withPathLower
in class Metadata.Builder
pathLower
- The lowercased full path in the user's Dropbox.
This always starts with a slash. This field will be null if the
file or folder is not mounted.public FolderMetadata.Builder withPathDisplay(String pathDisplay)
withPathDisplay
in class Metadata.Builder
pathDisplay
- The cased path to be used for display purposes
only. In rare instances the casing will not correctly match the
user's filesystem, but this behavior will match the path provided
in the Core API v1. Changes to the casing of paths won't be
returned by DbxUserFilesRequests.listFolderContinue(String)
. This field will
be null if the file or folder is not mounted.public FolderMetadata.Builder withParentSharedFolderId(String parentSharedFolderId)
withParentSharedFolderId
in class Metadata.Builder
parentSharedFolderId
- Deprecated. Please use FileSharingInfo.getParentSharedFolderId()
or FolderSharingInfo.getParentSharedFolderId()
instead. Must match
pattern "[-_0-9a-zA-Z:]+
".IllegalArgumentException
- If any argument does not meet its
preconditions.public FolderMetadata build()
FolderMetadata
configured with this
builder's valuesbuild
in class Metadata.Builder
FolderMetadata