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
 
 public static class FolderMetadata.Builder extends Metadata.Builder Builder forFolderMetadata.
- 
- 
Field SummaryFields Modifier and Type Field Description protected java.lang.Stringidprotected java.util.List<PropertyGroup>propertyGroupsprotected java.lang.StringsharedFolderIdprotected FolderSharingInfosharingInfo- 
Fields inherited from class com.dropbox.core.v2.files.Metadata.Buildername, parentSharedFolderId, pathDisplay, pathLower, previewUrl
 
- 
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedBuilder(java.lang.String name, java.lang.String id)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description FolderMetadatabuild()Builds an instance ofFolderMetadataconfigured with this builder's valuesFolderMetadata.BuilderwithParentSharedFolderId(java.lang.String parentSharedFolderId)Set value for optional field.FolderMetadata.BuilderwithPathDisplay(java.lang.String pathDisplay)Set value for optional field.FolderMetadata.BuilderwithPathLower(java.lang.String pathLower)Set value for optional field.FolderMetadata.BuilderwithPreviewUrl(java.lang.String previewUrl)Set value for optional field.FolderMetadata.BuilderwithPropertyGroups(java.util.List<PropertyGroup> propertyGroups)Set value for optional field.FolderMetadata.BuilderwithSharedFolderId(java.lang.String sharedFolderId)Set value for optional field.FolderMetadata.BuilderwithSharingInfo(FolderSharingInfo sharingInfo)Set value for optional field.
 
- 
- 
- 
Field Detail- 
idprotected final java.lang.String id 
 - 
sharedFolderIdprotected java.lang.String sharedFolderId 
 - 
sharingInfoprotected FolderSharingInfo sharingInfo 
 - 
propertyGroupsprotected java.util.List<PropertyGroup> propertyGroups 
 
- 
 - 
Method Detail- 
withSharedFolderIdpublic FolderMetadata.Builder withSharedFolderId(java.lang.String sharedFolderId) Set value for optional field.- Parameters:
- sharedFolderId- Please use- FolderMetadata.getSharingInfo()instead. Must match pattern "- [-_0-9a-zA-Z:]+".
- Returns:
- this builder
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
withSharingInfopublic FolderMetadata.Builder withSharingInfo(FolderSharingInfo sharingInfo) 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
 
 - 
withPropertyGroupspublic FolderMetadata.Builder withPropertyGroups(java.util.List<PropertyGroup> propertyGroups) 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 a- nullitem.
- Returns:
- this builder
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
withPathLowerpublic FolderMetadata.Builder withPathLower(java.lang.String pathLower) Set value for optional field.- Overrides:
- withPathLowerin class- Metadata.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
 
 - 
withPathDisplaypublic FolderMetadata.Builder withPathDisplay(java.lang.String pathDisplay) Set value for optional field.- Overrides:
- withPathDisplayin class- Metadata.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 by- DbxAppFilesRequests.listFolderContinue(String). This field will be null if the file or folder is not mounted.
- Returns:
- this builder
 
 - 
withParentSharedFolderIdpublic FolderMetadata.Builder withParentSharedFolderId(java.lang.String parentSharedFolderId) Set value for optional field.- Overrides:
- withParentSharedFolderIdin class- Metadata.Builder
- Parameters:
- parentSharedFolderId- Please use- FileSharingInfo.getParentSharedFolderId()or- FolderSharingInfo.getParentSharedFolderId()instead. Must match pattern "- [-_0-9a-zA-Z:]+".
- Returns:
- this builder
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
withPreviewUrlpublic FolderMetadata.Builder withPreviewUrl(java.lang.String previewUrl) Set value for optional field.- Overrides:
- withPreviewUrlin class- Metadata.Builder
- Parameters:
- previewUrl- The preview URL of the file.
- Returns:
- this builder
 
 - 
buildpublic FolderMetadata build() Builds an instance ofFolderMetadataconfigured with this builder's values- Overrides:
- buildin class- Metadata.Builder
- Returns:
- new instance of FolderMetadata
 
 
- 
 
-