Package com.dropbox.core.v2.sharing
Class LinkMetadata
java.lang.Object
com.dropbox.core.v2.sharing.LinkMetadata
- Direct Known Subclasses:
CollectionLinkMetadata,PathLinkMetadata
Metadata for a shared link. This can be either a
PathLinkMetadata or
CollectionLinkMetadata.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Dateprotected final Stringprotected final Visibility -
Constructor Summary
ConstructorsConstructorDescriptionLinkMetadata(String url, Visibility visibility) Metadata for a shared link.LinkMetadata(String url, Visibility visibility, Date expires) Metadata for a shared link. -
Method Summary
-
Field Details
-
url
-
visibility
-
expires
-
-
Constructor Details
-
LinkMetadata
Metadata for a shared link. This can be either aPathLinkMetadataorCollectionLinkMetadata.- 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:
IllegalArgumentException- If any argument does not meet its preconditions.
-
LinkMetadata
Metadata for a shared link. This can be either aPathLinkMetadataorCollectionLinkMetadata.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:
IllegalArgumentException- If any argument does not meet its preconditions.
-
-
Method Details
-
getUrl
URL of the shared link.- Returns:
- value for this field, never
null.
-
getVisibility
Who can access the link.- Returns:
- value for this field, never
null.
-
getExpires
Expiration time, if set. By default the link won't expire.- Returns:
- value for this field, or
nullif not present.
-
hashCode
public int hashCode() -
equals
-
toString
-
toStringMultiline
Returns a String representation of this object formatted for easier readability.The returned String may contain newlines.
- Returns:
- Formatted, multiline String representation of this object
-