Package com.dropbox.core.v2.files
Class DeletedMetadata
java.lang.Object
com.dropbox.core.v2.files.Metadata
com.dropbox.core.v2.files.DeletedMetadata
Indicates that there used to be a file or folder at this path, but it no
longer exists.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class com.dropbox.core.v2.files.Metadata
name, parentSharedFolderId, pathDisplay, pathLower, previewUrl -
Constructor Summary
ConstructorsConstructorDescriptionDeletedMetadata(String name) Indicates that there used to be a file or folder at this path, but it no longer exists.DeletedMetadata(String name, String pathLower, String pathDisplay, String parentSharedFolderId, String previewUrl, Boolean isRestorable) Indicates that there used to be a file or folder at this path, but it no longer exists. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIf present, indicates whether this deleted entry can be restored.getName()The last component of the path (including extension).Deprecated.The cased path to be used for display purposes only.The lowercased full path in the user's Dropbox.The preview URL of the file.inthashCode()static DeletedMetadata.BuildernewBuilder(String name) Returns a new builder for creating an instance of this class.toString()Returns a String representation of this object formatted for easier readability.
-
Field Details
-
isRestorable
-
-
Constructor Details
-
DeletedMetadata
public DeletedMetadata(@Nonnull String name, @Nullable String pathLower, @Nullable String pathDisplay, @Nullable String parentSharedFolderId, @Nullable String previewUrl, @Nullable Boolean isRestorable) Indicates that there used to be a file or folder at this path, but it no longer exists.Use
newBuilder(java.lang.String)to create instances of this class without specifying values for all optional fields.- Parameters:
name- The last component of the path (including extension). This never contains a slash. Must not benull.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.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.parentSharedFolderId- Field is deprecated. Please useFileSharingInfo.getParentSharedFolderId()orFolderSharingInfo.getParentSharedFolderId()instead. Must match pattern "[-_0-9a-zA-Z:]+".previewUrl- The preview URL of the file.isRestorable- If present, indicates whether this deleted entry can be restored.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
DeletedMetadata
Indicates that there used to be a file or folder at this path, but it no longer exists.The default values for unset fields will be used.
- Parameters:
name- The last component of the path (including extension). This never contains a slash. Must not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
-
Method Details
-
getName
The last component of the path (including extension). This never contains a slash. -
getPathLower
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.- Overrides:
getPathLowerin classMetadata- Returns:
- value for this field, or
nullif not present.
-
getPathDisplay
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.- Overrides:
getPathDisplayin classMetadata- Returns:
- value for this field, or
nullif not present.
-
getPreviewUrl
The preview URL of the file.- Overrides:
getPreviewUrlin classMetadata- Returns:
- value for this field, or
nullif not present.
-
getIsRestorable
If present, indicates whether this deleted entry can be restored.- Returns:
- value for this field, or
nullif not present.
-
newBuilder
Returns a new builder for creating an instance of this class.- Parameters:
name- The last component of the path (including extension). This never contains a slash. Must not benull.- Returns:
- builder for this class.
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
hashCode
public int hashCode() -
equals
-
toString
-
toStringMultiline
Returns a String representation of this object formatted for easier readability.The returned String may contain newlines.
- Overrides:
toStringMultilinein classMetadata- Returns:
- Formatted, multiline String representation of this object
-