public static class Metadata.Builder extends Object
Metadata
.Modifier and Type | Field and Description |
---|---|
protected String |
name |
protected String |
parentSharedFolderId |
protected String |
pathDisplay |
protected String |
pathLower |
Modifier | Constructor and Description |
---|---|
protected |
Builder(String name) |
Modifier and Type | Method and Description |
---|---|
Metadata |
build()
Builds an instance of
Metadata configured with this builder's
values |
Metadata.Builder |
withParentSharedFolderId(String parentSharedFolderId)
Set value for optional field.
|
Metadata.Builder |
withPathDisplay(String pathDisplay)
Set value for optional field.
|
Metadata.Builder |
withPathLower(String pathLower)
Set value for optional field.
|
protected final String name
protected String pathLower
protected String pathDisplay
protected String parentSharedFolderId
protected Builder(String name)
public Metadata.Builder withPathLower(String pathLower)
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 Metadata.Builder withPathDisplay(String pathDisplay)
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 Metadata.Builder withParentSharedFolderId(String parentSharedFolderId)
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.