Package com.dropbox.core.v2.sharing
Class SharedContentLinkMetadata
- java.lang.Object
- 
- com.dropbox.core.v2.sharing.SharedContentLinkMetadataBase
- 
- com.dropbox.core.v2.sharing.SharedContentLinkMetadata
 
 
- 
 public class SharedContentLinkMetadata extends SharedContentLinkMetadataBase Metadata of a shared link for a file or folder.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classSharedContentLinkMetadata.BuilderBuilder forSharedContentLinkMetadata.
 - 
Field SummaryFields Modifier and Type Field Description protected AudienceExceptionsaudienceExceptionsprotected java.lang.Stringurl- 
Fields inherited from class com.dropbox.core.v2.sharing.SharedContentLinkMetadataBaseaccessLevel, audienceOptions, audienceRestrictingSharedFolder, currentAudience, expiry, linkPermissions, passwordProtected
 
- 
 - 
Constructor SummaryConstructors Constructor Description SharedContentLinkMetadata(java.util.List<LinkAudience> audienceOptions, LinkAudience currentAudience, java.util.List<LinkPermission> linkPermissions, boolean passwordProtected, java.lang.String url)Metadata of a shared link for a file or folder.SharedContentLinkMetadata(java.util.List<LinkAudience> audienceOptions, LinkAudience currentAudience, java.util.List<LinkPermission> linkPermissions, boolean passwordProtected, java.lang.String url, AccessLevel accessLevel, AudienceRestrictingSharedFolder audienceRestrictingSharedFolder, java.util.Date expiry, AudienceExceptions audienceExceptions)Metadata of a shared link for a file or folder.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)AccessLevelgetAccessLevel()The access level on the link for this file.AudienceExceptionsgetAudienceExceptions()The content inside this folder with link audience different than this folder's.java.util.List<LinkAudience>getAudienceOptions()The audience options that are available for the content.AudienceRestrictingSharedFoldergetAudienceRestrictingSharedFolder()The shared folder that prevents the link audience for this link from being more restrictive.LinkAudiencegetCurrentAudience()The current audience of the link.java.util.DategetExpiry()Whether the link has an expiry set on it.java.util.List<LinkPermission>getLinkPermissions()A list of permissions for actions you can perform on the link.booleangetPasswordProtected()Whether the link is protected by a password.java.lang.StringgetUrl()The URL of the link.inthashCode()static SharedContentLinkMetadata.BuildernewBuilder(java.util.List<LinkAudience> audienceOptions, LinkAudience currentAudience, java.util.List<LinkPermission> linkPermissions, boolean passwordProtected, java.lang.String url)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.- 
Methods inherited from class com.dropbox.core.v2.sharing.SharedContentLinkMetadataBasenewBuilder
 
- 
 
- 
- 
- 
Field Detail- 
audienceExceptionsprotected final AudienceExceptions audienceExceptions 
 - 
urlprotected final java.lang.String url 
 
- 
 - 
Constructor Detail- 
SharedContentLinkMetadatapublic SharedContentLinkMetadata(java.util.List<LinkAudience> audienceOptions, LinkAudience currentAudience, java.util.List<LinkPermission> linkPermissions, boolean passwordProtected, java.lang.String url, AccessLevel accessLevel, AudienceRestrictingSharedFolder audienceRestrictingSharedFolder, java.util.Date expiry, AudienceExceptions audienceExceptions) Metadata of a shared link for a file or folder.Use newBuilder(java.util.List<com.dropbox.core.v2.sharing.LinkAudience>,com.dropbox.core.v2.sharing.LinkAudience,java.util.List<com.dropbox.core.v2.sharing.LinkPermission>,boolean,java.lang.String)to create instances of this class without specifying values for all optional fields.- Parameters:
- audienceOptions- The audience options that are available for the content. Some audience options may be unavailable. For example, team_only may be unavailable if the content is not owned by a user on a team. The 'default' audience option is always available if the user can modify link settings. Must not contain a- nullitem and not be- null.
- currentAudience- The current audience of the link. Must not be- null.
- linkPermissions- A list of permissions for actions you can perform on the link. Must not contain a- nullitem and not be- null.
- passwordProtected- Whether the link is protected by a password.
- url- The URL of the link. Must not be- null.
- accessLevel- The access level on the link for this file.
- audienceRestrictingSharedFolder- The shared folder that prevents the link audience for this link from being more restrictive.
- expiry- Whether the link has an expiry set on it. A link with an expiry will have its audience changed to members when the expiry is reached.
- audienceExceptions- The content inside this folder with link audience different than this folder's. This is only returned when an endpoint that returns metadata for a single shared folder is called, e.g. /get_folder_metadata.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
SharedContentLinkMetadatapublic SharedContentLinkMetadata(java.util.List<LinkAudience> audienceOptions, LinkAudience currentAudience, java.util.List<LinkPermission> linkPermissions, boolean passwordProtected, java.lang.String url) Metadata of a shared link for a file or folder.The default values for unset fields will be used. - Parameters:
- audienceOptions- The audience options that are available for the content. Some audience options may be unavailable. For example, team_only may be unavailable if the content is not owned by a user on a team. The 'default' audience option is always available if the user can modify link settings. Must not contain a- nullitem and not be- null.
- currentAudience- The current audience of the link. Must not be- null.
- linkPermissions- A list of permissions for actions you can perform on the link. Must not contain a- nullitem and not be- null.
- passwordProtected- Whether the link is protected by a password.
- url- The URL of the link. Must not be- null.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 
- 
 - 
Method Detail- 
getAudienceOptionspublic java.util.List<LinkAudience> getAudienceOptions() The audience options that are available for the content. Some audience options may be unavailable. For example, team_only may be unavailable if the content is not owned by a user on a team. The 'default' audience option is always available if the user can modify link settings.- Overrides:
- getAudienceOptionsin class- SharedContentLinkMetadataBase
- Returns:
- value for this field, never null.
 
 - 
getCurrentAudiencepublic LinkAudience getCurrentAudience() The current audience of the link.- Overrides:
- getCurrentAudiencein class- SharedContentLinkMetadataBase
- Returns:
- value for this field, never null.
 
 - 
getLinkPermissionspublic java.util.List<LinkPermission> getLinkPermissions() A list of permissions for actions you can perform on the link.- Overrides:
- getLinkPermissionsin class- SharedContentLinkMetadataBase
- Returns:
- value for this field, never null.
 
 - 
getPasswordProtectedpublic boolean getPasswordProtected() Whether the link is protected by a password.- Overrides:
- getPasswordProtectedin class- SharedContentLinkMetadataBase
- Returns:
- value for this field.
 
 - 
getUrlpublic java.lang.String getUrl() The URL of the link.- Returns:
- value for this field, never null.
 
 - 
getAccessLevelpublic AccessLevel getAccessLevel() The access level on the link for this file.- Overrides:
- getAccessLevelin class- SharedContentLinkMetadataBase
- Returns:
- value for this field, or nullif not present.
 
 - 
getAudienceRestrictingSharedFolderpublic AudienceRestrictingSharedFolder getAudienceRestrictingSharedFolder() The shared folder that prevents the link audience for this link from being more restrictive.- Overrides:
- getAudienceRestrictingSharedFolderin class- SharedContentLinkMetadataBase
- Returns:
- value for this field, or nullif not present.
 
 - 
getExpirypublic java.util.Date getExpiry() Whether the link has an expiry set on it. A link with an expiry will have its audience changed to members when the expiry is reached.- Overrides:
- getExpiryin class- SharedContentLinkMetadataBase
- Returns:
- value for this field, or nullif not present.
 
 - 
getAudienceExceptionspublic AudienceExceptions getAudienceExceptions() The content inside this folder with link audience different than this folder's. This is only returned when an endpoint that returns metadata for a single shared folder is called, e.g. /get_folder_metadata.- Returns:
- value for this field, or nullif not present.
 
 - 
newBuilderpublic static SharedContentLinkMetadata.Builder newBuilder(java.util.List<LinkAudience> audienceOptions, LinkAudience currentAudience, java.util.List<LinkPermission> linkPermissions, boolean passwordProtected, java.lang.String url) Returns a new builder for creating an instance of this class.- Parameters:
- audienceOptions- The audience options that are available for the content. Some audience options may be unavailable. For example, team_only may be unavailable if the content is not owned by a user on a team. The 'default' audience option is always available if the user can modify link settings. Must not contain a- nullitem and not be- null.
- currentAudience- The current audience of the link. Must not be- null.
- linkPermissions- A list of permissions for actions you can perform on the link. Must not contain a- nullitem and not be- null.
- passwordProtected- Whether the link is protected by a password.
- url- The URL of the link. 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- SharedContentLinkMetadataBase
 
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- SharedContentLinkMetadataBase
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- SharedContentLinkMetadataBase
 
 - 
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- SharedContentLinkMetadataBase
- Returns:
- Formatted, multiline String representation of this object
 
 
- 
 
-