Package com.dropbox.core.v2.sharing
Class PathLinkMetadata
- java.lang.Object
- 
- com.dropbox.core.v2.sharing.LinkMetadata
- 
- com.dropbox.core.v2.sharing.PathLinkMetadata
 
 
- 
 public class PathLinkMetadata extends LinkMetadata Metadata for a path-based shared link.
- 
- 
Field SummaryFields Modifier and Type Field Description protected java.lang.Stringpath- 
Fields inherited from class com.dropbox.core.v2.sharing.LinkMetadataexpires, url, visibility
 
- 
 - 
Constructor SummaryConstructors Constructor Description PathLinkMetadata(java.lang.String url, Visibility visibility, java.lang.String path)Metadata for a path-based shared link.PathLinkMetadata(java.lang.String url, Visibility visibility, java.lang.String path, java.util.Date expires)Metadata for a path-based shared link.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.util.DategetExpires()Expiration time, if set.java.lang.StringgetPath()Path in user's Dropbox.java.lang.StringgetUrl()URL of the shared link.VisibilitygetVisibility()Who can access the link.inthashCode()java.lang.StringtoString()java.lang.StringtoStringMultiline()Returns a String representation of this object formatted for easier readability.
 
- 
- 
- 
Constructor Detail- 
PathLinkMetadatapublic PathLinkMetadata(java.lang.String url, Visibility visibility, java.lang.String path, java.util.Date expires)Metadata for a path-based shared link.- Parameters:
- url- URL of the shared link. Must not be- null.
- visibility- Who can access the link. Must not be- null.
- path- Path in user's Dropbox. Must not be- null.
- expires- Expiration time, if set. By default the link won't expire.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
PathLinkMetadatapublic PathLinkMetadata(java.lang.String url, Visibility visibility, java.lang.String path)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 be- null.
- visibility- Who can access the link. Must not be- null.
- path- Path in user's Dropbox. Must not be- null.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 
- 
 - 
Method Detail- 
getUrlpublic java.lang.String getUrl() URL of the shared link.- Overrides:
- getUrlin class- LinkMetadata
- Returns:
- value for this field, never null.
 
 - 
getVisibilitypublic Visibility getVisibility() Who can access the link.- Overrides:
- getVisibilityin class- LinkMetadata
- Returns:
- value for this field, never null.
 
 - 
getPathpublic java.lang.String getPath() Path in user's Dropbox.- Returns:
- value for this field, never null.
 
 - 
getExpirespublic java.util.Date getExpires() Expiration time, if set. By default the link won't expire.- Overrides:
- getExpiresin class- LinkMetadata
- Returns:
- value for this field, or nullif not present.
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- LinkMetadata
 
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- LinkMetadata
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- LinkMetadata
 
 - 
toStringMultilinepublic java.lang.String toStringMultiline() Returns a String representation of this object formatted for easier readability.The returned String may contain newlines. - Overrides:
- toStringMultilinein class- LinkMetadata
- Returns:
- Formatted, multiline String representation of this object
 
 
- 
 
-