Package com.dropbox.core.v2.files
Class DeletedMetadata.Builder
- java.lang.Object
-
- com.dropbox.core.v2.files.Metadata.Builder
-
- com.dropbox.core.v2.files.DeletedMetadata.Builder
-
- Enclosing class:
- DeletedMetadata
public static class DeletedMetadata.Builder extends Metadata.Builder
Builder forDeletedMetadata
.
-
-
Field Summary
-
Fields inherited from class com.dropbox.core.v2.files.Metadata.Builder
name, parentSharedFolderId, pathDisplay, pathLower
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeletedMetadata
build()
Builds an instance ofDeletedMetadata
configured with this builder's valuesDeletedMetadata.Builder
withParentSharedFolderId(java.lang.String parentSharedFolderId)
Set value for optional field.DeletedMetadata.Builder
withPathDisplay(java.lang.String pathDisplay)
Set value for optional field.DeletedMetadata.Builder
withPathLower(java.lang.String pathLower)
Set value for optional field.
-
-
-
Method Detail
-
withPathLower
public DeletedMetadata.Builder withPathLower(java.lang.String pathLower)
Set value for optional field.- Overrides:
withPathLower
in 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
public DeletedMetadata.Builder withPathDisplay(java.lang.String pathDisplay)
Set value for optional field.- Overrides:
withPathDisplay
in 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 byDbxUserFilesRequests.listFolderContinue(String)
. This field will be null if the file or folder is not mounted.- Returns:
- this builder
-
withParentSharedFolderId
public DeletedMetadata.Builder withParentSharedFolderId(java.lang.String parentSharedFolderId)
Set value for optional field.- Overrides:
withParentSharedFolderId
in classMetadata.Builder
- Parameters:
parentSharedFolderId
- Please useFileSharingInfo.getParentSharedFolderId()
orFolderSharingInfo.getParentSharedFolderId()
instead. Must match pattern "[-_0-9a-zA-Z:]+
".- Returns:
- this builder
- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
build
public DeletedMetadata build()
Builds an instance ofDeletedMetadata
configured with this builder's values- Overrides:
build
in classMetadata.Builder
- Returns:
- new instance of
DeletedMetadata
-
-