Package com.dropbox.core.v2.sharing
Class FolderLinkMetadata
- java.lang.Object
- 
- com.dropbox.core.v2.sharing.SharedLinkMetadata
- 
- com.dropbox.core.v2.sharing.FolderLinkMetadata
 
 
- 
 public class FolderLinkMetadata extends SharedLinkMetadata The metadata of a folder shared link.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classFolderLinkMetadata.BuilderBuilder forFolderLinkMetadata.
 - 
Field Summary- 
Fields inherited from class com.dropbox.core.v2.sharing.SharedLinkMetadatacontentOwnerTeamInfo, expires, id, linkPermissions, name, pathLower, teamMemberInfo, url
 
- 
 - 
Constructor SummaryConstructors Constructor Description FolderLinkMetadata(java.lang.String url, java.lang.String name, LinkPermissions linkPermissions)The metadata of a folder shared link.FolderLinkMetadata(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 folder shared link.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)TeamgetContentOwnerTeamInfo()The team information of the content's owner.java.util.DategetExpires()Expiration time, if set.java.lang.StringgetId()A unique identifier for the linked file.LinkPermissionsgetLinkPermissions()The link's access permissions.java.lang.StringgetName()The linked file name (including extension).java.lang.StringgetPathLower()The lowercased full path in the user's Dropbox.TeamMemberInfogetTeamMemberInfo()The team membership information of the link's owner.java.lang.StringgetUrl()URL of the shared link.inthashCode()static FolderLinkMetadata.BuildernewBuilder(java.lang.String url, java.lang.String name, LinkPermissions linkPermissions)Returns a new builder for creating an instance of this class.java.lang.StringtoString()java.lang.StringtoStringMultiline()Returns a String representation of this object formatted for easier readability.
 
- 
- 
- 
Constructor Detail- 
FolderLinkMetadatapublic FolderLinkMetadata(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 folder shared link.Use newBuilder(java.lang.String,java.lang.String,com.dropbox.core.v2.sharing.LinkPermissions)to create instances of this class without specifying values for all optional fields.- Parameters:
- 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.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
FolderLinkMetadatapublic FolderLinkMetadata(java.lang.String url, java.lang.String name, LinkPermissions linkPermissions)The metadata of a folder shared link.The default values for unset fields will be used. - Parameters:
- 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.
- 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- SharedLinkMetadata
- Returns:
- value for this field, never null.
 
 - 
getNamepublic java.lang.String getName() The linked file name (including extension). This never contains a slash.- Overrides:
- getNamein class- SharedLinkMetadata
- Returns:
- value for this field, never null.
 
 - 
getLinkPermissionspublic LinkPermissions getLinkPermissions() The link's access permissions.- Overrides:
- getLinkPermissionsin class- SharedLinkMetadata
- Returns:
- value for this field, never null.
 
 - 
getIdpublic java.lang.String getId() A unique identifier for the linked file.- Overrides:
- getIdin class- SharedLinkMetadata
- Returns:
- value for this field, or nullif not present.
 
 - 
getExpirespublic java.util.Date getExpires() Expiration time, if set. By default the link won't expire.- Overrides:
- getExpiresin class- SharedLinkMetadata
- Returns:
- value for this field, or nullif not present.
 
 - 
getPathLowerpublic java.lang.String getPathLower() 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.- Overrides:
- getPathLowerin class- SharedLinkMetadata
- Returns:
- value for this field, or nullif not present.
 
 - 
getTeamMemberInfopublic TeamMemberInfo getTeamMemberInfo() The team membership information of the link's owner. This field will only be present if the link's owner is a team member.- Overrides:
- getTeamMemberInfoin class- SharedLinkMetadata
- Returns:
- value for this field, or nullif not present.
 
 - 
getContentOwnerTeamInfopublic Team getContentOwnerTeamInfo() 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.- Overrides:
- getContentOwnerTeamInfoin class- SharedLinkMetadata
- Returns:
- value for this field, or nullif not present.
 
 - 
newBuilderpublic static FolderLinkMetadata.Builder newBuilder(java.lang.String url, java.lang.String name, LinkPermissions linkPermissions) Returns a new builder for creating an instance of this class.- Parameters:
- 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.
- Returns:
- builder for this class.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- SharedLinkMetadata
 
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- SharedLinkMetadata
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- SharedLinkMetadata
 
 - 
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- SharedLinkMetadata
- Returns:
- Formatted, multiline String representation of this object
 
 
- 
 
-