Package com.dropbox.core.v2.sharing
Class CollectionLinkMetadata
- java.lang.Object
-
- com.dropbox.core.v2.sharing.LinkMetadata
-
- com.dropbox.core.v2.sharing.CollectionLinkMetadata
-
public class CollectionLinkMetadata extends LinkMetadata
Metadata for a collection-based shared link.
-
-
Field Summary
-
Fields inherited from class com.dropbox.core.v2.sharing.LinkMetadata
expires, url, visibility
-
-
Constructor Summary
Constructors Constructor Description CollectionLinkMetadata(java.lang.String url, Visibility visibility)Metadata for a collection-based shared link.CollectionLinkMetadata(java.lang.String url, Visibility visibility, java.util.Date expires)Metadata for a collection-based shared link.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.util.DategetExpires()Expiration time, if set.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
-
CollectionLinkMetadata
public CollectionLinkMetadata(java.lang.String url, Visibility visibility, java.util.Date expires)Metadata for a collection-based shared link.- Parameters:
url- URL of the shared link. Must not benull.visibility- Who can access the link. Must not benull.expires- Expiration time, if set. By default the link won't expire.- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
-
CollectionLinkMetadata
public CollectionLinkMetadata(java.lang.String url, Visibility visibility)Metadata for a collection-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.- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
-
-
Method Detail
-
getUrl
public java.lang.String getUrl()
URL of the shared link.- Overrides:
getUrlin classLinkMetadata- Returns:
- value for this field, never
null.
-
getVisibility
public Visibility getVisibility()
Who can access the link.- Overrides:
getVisibilityin classLinkMetadata- Returns:
- value for this field, never
null.
-
getExpires
public java.util.Date 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
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classLinkMetadata
-
toString
public java.lang.String toString()
- Overrides:
toStringin classLinkMetadata
-
toStringMultiline
public java.lang.String 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
-
-