public class SharedLinkMetadata
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
SharedLinkMetadata.Builder
Builder for
SharedLinkMetadata . |
Modifier and Type | Field and Description |
---|---|
protected Team |
contentOwnerTeamInfo |
protected java.util.Date |
expires |
protected java.lang.String |
id |
protected LinkPermissions |
linkPermissions |
protected java.lang.String |
name |
protected java.lang.String |
pathLower |
protected TeamMemberInfo |
teamMemberInfo |
protected java.lang.String |
url |
Constructor and Description |
---|
SharedLinkMetadata(java.lang.String url,
java.lang.String name,
LinkPermissions linkPermissions)
The metadata of a shared link.
|
SharedLinkMetadata(java.lang.String url,
java.lang.String name,
LinkPermissions linkPermissions,
java.lang.String id,
java.util.Date expires,
java.lang.String pathLower,
TeamMemberInfo teamMemberInfo,
Team contentOwnerTeamInfo)
The metadata of a shared link.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
Team |
getContentOwnerTeamInfo()
The team information of the content's owner.
|
java.util.Date |
getExpires()
Expiration time, if set.
|
java.lang.String |
getId()
A unique identifier for the linked file.
|
LinkPermissions |
getLinkPermissions()
The link's access permissions.
|
java.lang.String |
getName()
The linked file name (including extension).
|
java.lang.String |
getPathLower()
The lowercased full path in the user's Dropbox.
|
TeamMemberInfo |
getTeamMemberInfo()
The team membership information of the link's owner.
|
java.lang.String |
getUrl()
URL of the shared link.
|
int |
hashCode() |
static SharedLinkMetadata.Builder |
newBuilder(java.lang.String url,
java.lang.String name,
LinkPermissions linkPermissions)
Returns a new builder for creating an instance of this class.
|
java.lang.String |
toString() |
java.lang.String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final java.lang.String url
protected final java.lang.String id
protected final java.lang.String name
protected final java.util.Date expires
protected final java.lang.String pathLower
protected final LinkPermissions linkPermissions
protected final TeamMemberInfo teamMemberInfo
protected final Team contentOwnerTeamInfo
public SharedLinkMetadata(java.lang.String url, java.lang.String name, LinkPermissions linkPermissions, java.lang.String id, java.util.Date expires, java.lang.String pathLower, TeamMemberInfo teamMemberInfo, Team contentOwnerTeamInfo)
Use newBuilder
to create instances of this class without
specifying values for all optional fields.
url
- URL of the shared link. Must not be null
.name
- The linked file name (including extension). This never
contains a slash. Must not be null
.linkPermissions
- The link's access permissions. Must not be null
.id
- A unique identifier for the linked file. Must have length of
at least 1.expires
- Expiration time, if set. By default the link won't
expire.pathLower
- The lowercased full path in the user's Dropbox. This
always starts with a slash. This field will only be present only if
the linked file is in the authenticated user's dropbox.teamMemberInfo
- The team membership information of the link's
owner. This field will only be present if the link's owner is a
team member.contentOwnerTeamInfo
- The team information of the content's owner.
This field will only be present if the content's owner is a team
member and the content's owner team is different from the link's
owner team.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public SharedLinkMetadata(java.lang.String url, java.lang.String name, LinkPermissions linkPermissions)
The default values for unset fields will be used.
url
- URL of the shared link. Must not be null
.name
- The linked file name (including extension). This never
contains a slash. Must not be null
.linkPermissions
- The link's access permissions. Must not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public java.lang.String getUrl()
null
.public java.lang.String getName()
null
.public LinkPermissions getLinkPermissions()
null
.public java.lang.String getId()
null
if not present.public java.util.Date getExpires()
null
if not present.public java.lang.String getPathLower()
null
if not present.public TeamMemberInfo getTeamMemberInfo()
null
if not present.public Team getContentOwnerTeamInfo()
null
if not present.public static SharedLinkMetadata.Builder newBuilder(java.lang.String url, java.lang.String name, LinkPermissions linkPermissions)
url
- URL of the shared link. Must not be null
.name
- The linked file name (including extension). This never
contains a slash. Must not be null
.linkPermissions
- The link's access permissions. Must not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringMultiline()
The returned String may contain newlines.