Package com.dropbox.core.v2.files
Class Metadata.Builder
java.lang.Object
com.dropbox.core.v2.files.Metadata.Builder
- Direct Known Subclasses:
DeletedMetadata.Builder,FileMetadata.Builder,FolderMetadata.Builder
- Enclosing class:
Metadata
Builder for
Metadata.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an instance ofMetadataconfigured with this builder's valueswithParentSharedFolderId(String parentSharedFolderId) Deprecated.withPathDisplay(String pathDisplay) Set value for optional field.withPathLower(String pathLower) Set value for optional field.withPreviewUrl(String previewUrl) Set value for optional field.
-
Field Details
-
name
-
pathLower
-
pathDisplay
-
previewUrl
-
-
Constructor Details
-
Builder
-
-
Method Details
-
withPathLower
Set value for optional field.- Parameters:
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.- Returns:
- this builder
-
withPathDisplay
Set value for optional field.- Parameters:
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, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned byDbxAppFilesRequests.listFolderContinue(String). This field will be null if the file or folder is not mounted.- Returns:
- this builder
-
withPreviewUrl
Set value for optional field.- Parameters:
previewUrl- The preview URL of the file.- Returns:
- this builder
-
build
Builds an instance ofMetadataconfigured with this builder's values- Returns:
- new instance of
Metadata
-