Package com.dropbox.core.v2.files
Class FolderMetadata.Builder
java.lang.Object
com.dropbox.core.v2.files.Metadata.Builder
com.dropbox.core.v2.files.FolderMetadata.Builder
- Enclosing class:
FolderMetadata
Builder for
FolderMetadata.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Stringprotected List<PropertyGroup> protected Stringprotected FolderSharingInfoFields inherited from class com.dropbox.core.v2.files.Metadata.Builder
name, parentSharedFolderId, pathDisplay, pathLower, previewUrl -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an instance ofFolderMetadataconfigured 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.withPropertyGroups(List<PropertyGroup> propertyGroups) Set value for optional field.withSharedFolderId(String sharedFolderId) Deprecated.withSharingInfo(FolderSharingInfo sharingInfo) Set value for optional field.
-
Field Details
-
id
-
sharingInfo
-
propertyGroups
-
-
Constructor Details
-
Builder
-
-
Method Details
-
withSharingInfo
Set value for optional field.- Parameters:
sharingInfo- Set if the folder is contained in a shared folder or is a shared folder mount point.- Returns:
- this builder
-
withPropertyGroups
Set value for optional field.- Parameters:
propertyGroups- Additional information if the file has custom properties with the property template specified. Note that only properties associated with user-owned templates, not team-owned templates, can be attached to folders. Must not contain anullitem.- Returns:
- this builder
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
withPathLower
Set value for optional field.- Overrides:
withPathLowerin classMetadata.Builder- 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.- Overrides:
withPathDisplayin classMetadata.Builder- 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.- Overrides:
withPreviewUrlin classMetadata.Builder- Parameters:
previewUrl- The preview URL of the file.- Returns:
- this builder
-
build
Builds an instance ofFolderMetadataconfigured with this builder's values- Overrides:
buildin classMetadata.Builder- Returns:
- new instance of
FolderMetadata