Package com.dropbox.core.v2.sharing
Class PathLinkMetadata
java.lang.Object
com.dropbox.core.v2.sharing.LinkMetadata
com.dropbox.core.v2.sharing.PathLinkMetadata
Metadata for a path-based shared link.
-
Field Summary
FieldsFields inherited from class com.dropbox.core.v2.sharing.LinkMetadata
expires, url, visibility -
Constructor Summary
ConstructorsConstructorDescriptionPathLinkMetadata(String url, Visibility visibility, String path) Metadata for a path-based shared link.PathLinkMetadata(String url, Visibility visibility, String path, Date expires) Metadata for a path-based shared link. -
Method Summary
-
Field Details
-
path
-
-
Constructor Details
-
PathLinkMetadata
public PathLinkMetadata(@Nonnull String url, @Nonnull Visibility visibility, @Nonnull String path, @Nullable Date expires) Metadata for a path-based shared link.- Parameters:
url- URL of the shared link. Must not benull.visibility- Who can access the link. Must not benull.path- Path in user's Dropbox. Must not benull.expires- Expiration time, if set. By default the link won't expire.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
PathLinkMetadata
Metadata for a path-based shared link.The default values for unset fields will be used.
- Parameters:
url- URL of the shared link. Must not benull.visibility- Who can access the link. Must not benull.path- Path in user's Dropbox. Must not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
-
Method Details
-
getUrl
URL of the shared link.- Overrides:
getUrlin classLinkMetadata- Returns:
- value for this field, never
null.
-
getVisibility
Who can access the link.- Overrides:
getVisibilityin classLinkMetadata- Returns:
- value for this field, never
null.
-
getPath
Path in user's Dropbox.- Returns:
- value for this field, never
null.
-
getExpires
Expiration time, if set. By default the link won't expire.- Overrides:
getExpiresin classLinkMetadata- Returns:
- value for this field, or
nullif not present.
-
hashCode
public int hashCode()- Overrides:
hashCodein classLinkMetadata
-
equals
- Overrides:
equalsin classLinkMetadata
-
toString
- Overrides:
toStringin classLinkMetadata
-
toStringMultiline
Returns a String representation of this object formatted for easier readability.The returned String may contain newlines.
- Overrides:
toStringMultilinein classLinkMetadata- Returns:
- Formatted, multiline String representation of this object
-