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
 
 public static class Metadata.Builder extends java.lang.ObjectBuilder forMetadata.
- 
- 
Field SummaryFields Modifier and Type Field Description protected java.lang.Stringnameprotected java.lang.StringparentSharedFolderIdprotected java.lang.StringpathDisplayprotected java.lang.StringpathLowerprotected java.lang.StringpreviewUrl
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedBuilder(java.lang.String name)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Metadatabuild()Builds an instance ofMetadataconfigured with this builder's valuesMetadata.BuilderwithParentSharedFolderId(java.lang.String parentSharedFolderId)Set value for optional field.Metadata.BuilderwithPathDisplay(java.lang.String pathDisplay)Set value for optional field.Metadata.BuilderwithPathLower(java.lang.String pathLower)Set value for optional field.Metadata.BuilderwithPreviewUrl(java.lang.String previewUrl)Set value for optional field.
 
- 
- 
- 
Method Detail- 
withPathLowerpublic Metadata.Builder withPathLower(java.lang.String pathLower) 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
 
 - 
withPathDisplaypublic Metadata.Builder withPathDisplay(java.lang.String pathDisplay) 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 by- DbxAppFilesRequests.listFolderContinue(String). This field will be null if the file or folder is not mounted.
- Returns:
- this builder
 
 - 
withParentSharedFolderIdpublic Metadata.Builder withParentSharedFolderId(java.lang.String parentSharedFolderId) Set value for optional field.- 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 Metadata.Builder withPreviewUrl(java.lang.String previewUrl) Set value for optional field.- Parameters:
- previewUrl- The preview URL of the file.
- Returns:
- this builder
 
 
- 
 
-