public class CollectionLinkMetadata extends LinkMetadata
expires, url, visibility| Constructor and Description |
|---|
CollectionLinkMetadata(String url,
Visibility visibility)
Metadata for a collection-based shared link.
|
CollectionLinkMetadata(String url,
Visibility visibility,
Date expires)
Metadata for a collection-based shared link.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
String |
toString() |
String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
getExpires, getUrl, getVisibilitypublic CollectionLinkMetadata(String url, Visibility visibility, Date expires)
url - URL of the shared link. Must not be null.visibility - Who can access the link. Must not be null.expires - Expiration time, if set. By default the link won't
expire.IllegalArgumentException - If any argument does not meet its
preconditions.public CollectionLinkMetadata(String url, Visibility visibility)
The default values for unset fields will be used.
url - URL of the shared link. Must not be null.visibility - Who can access the link. Must not be null.IllegalArgumentException - If any argument does not meet its
preconditions.public int hashCode()
hashCode in class LinkMetadatapublic boolean equals(Object obj)
equals in class LinkMetadatapublic String toString()
toString in class LinkMetadatapublic String toStringMultiline()
The returned String may contain newlines.
toStringMultiline in class LinkMetadata