Package com.dropbox.core.v2.sharing
Class FolderLinkMetadata
java.lang.Object
com.dropbox.core.v2.sharing.SharedLinkMetadata
com.dropbox.core.v2.sharing.FolderLinkMetadata
The metadata of a folder shared link.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.dropbox.core.v2.sharing.SharedLinkMetadata
contentOwnerTeamInfo, expires, id, linkPermissions, name, pathLower, teamMemberInfo, url -
Constructor Summary
ConstructorsConstructorDescriptionFolderLinkMetadata(String url, String name, LinkPermissions linkPermissions) The metadata of a folder shared link.FolderLinkMetadata(String url, String name, LinkPermissions linkPermissions, String id, Date expires, String pathLower, TeamMemberInfo teamMemberInfo, Team contentOwnerTeamInfo) The metadata of a folder shared link. -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe team information of the content's owner.Expiration time, if set.getId()A unique identifier for the linked file.The link's access permissions.getName()The linked file name (including extension).The lowercased full path in the user's Dropbox.The team membership information of the link's owner.getUrl()URL of the shared link.inthashCode()static FolderLinkMetadata.BuildernewBuilder(String url, String name, LinkPermissions linkPermissions) Returns a new builder for creating an instance of this class.toString()Returns a String representation of this object formatted for easier readability.
-
Constructor Details
-
FolderLinkMetadata
public FolderLinkMetadata(@Nonnull String url, @Nonnull String name, @Nonnull LinkPermissions linkPermissions, @Nullable String id, @Nullable Date expires, @Nullable String pathLower, @Nullable TeamMemberInfo teamMemberInfo, @Nullable 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 benull.name- The linked file name (including extension). This never contains a slash. Must not benull.linkPermissions- The link's access permissions. Must not benull.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 and the user is the owner of the link.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:
IllegalArgumentException- If any argument does not meet its preconditions.
-
FolderLinkMetadata
public FolderLinkMetadata(@Nonnull String url, @Nonnull String name, @Nonnull 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 benull.name- The linked file name (including extension). This never contains a slash. Must not benull.linkPermissions- The link's access permissions. Must not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
-
Method Details
-
getUrl
URL of the shared link.- Overrides:
getUrlin classSharedLinkMetadata- Returns:
- value for this field, never
null.
-
getName
The linked file name (including extension). This never contains a slash.- Overrides:
getNamein classSharedLinkMetadata- Returns:
- value for this field, never
null.
-
getLinkPermissions
The link's access permissions.- Overrides:
getLinkPermissionsin classSharedLinkMetadata- Returns:
- value for this field, never
null.
-
getId
A unique identifier for the linked file.- Overrides:
getIdin classSharedLinkMetadata- Returns:
- value for this field, or
nullif not present.
-
getExpires
Expiration time, if set. By default the link won't expire.- Overrides:
getExpiresin classSharedLinkMetadata- Returns:
- value for this field, or
nullif not present.
-
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 and the user is the owner of the link.- Overrides:
getPathLowerin classSharedLinkMetadata- Returns:
- value for this field, or
nullif not present.
-
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 classSharedLinkMetadata- Returns:
- value for this field, or
nullif not present.
-
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 classSharedLinkMetadata- Returns:
- value for this field, or
nullif not present.
-
newBuilder
public static FolderLinkMetadata.Builder newBuilder(String url, String name, LinkPermissions linkPermissions) Returns a new builder for creating an instance of this class.- Parameters:
url- URL of the shared link. Must not benull.name- The linked file name (including extension). This never contains a slash. Must not benull.linkPermissions- The link's access permissions. Must not benull.- Returns:
- builder for this class.
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
hashCode
public int hashCode()- Overrides:
hashCodein classSharedLinkMetadata
-
equals
- Overrides:
equalsin classSharedLinkMetadata
-
toString
- Overrides:
toStringin classSharedLinkMetadata
-
toStringMultiline
Returns a String representation of this object formatted for easier readability.The returned String may contain newlines.
- Overrides:
toStringMultilinein classSharedLinkMetadata- Returns:
- Formatted, multiline String representation of this object
-