Package com.dropbox.core.v2.sharing
Class SharedLinkSettings
- java.lang.Object
- 
- com.dropbox.core.v2.sharing.SharedLinkSettings
 
- 
 public class SharedLinkSettings extends java.lang.Object
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classSharedLinkSettings.BuilderBuilder forSharedLinkSettings.
 - 
Field SummaryFields Modifier and Type Field Description protected RequestedLinkAccessLevelaccessprotected java.lang.BooleanallowDownloadprotected LinkAudienceaudienceprotected java.util.Dateexpiresprotected java.lang.StringlinkPasswordprotected RequestedVisibilityrequestedVisibilityprotected java.lang.BooleanrequirePassword
 - 
Constructor SummaryConstructors Constructor Description SharedLinkSettings()NoneSharedLinkSettings(java.lang.Boolean requirePassword, java.lang.String linkPassword, java.util.Date expires, LinkAudience audience, RequestedLinkAccessLevel access, RequestedVisibility requestedVisibility, java.lang.Boolean allowDownload)UsenewBuilder()to create instances of this class without specifying values for all optional fields.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)RequestedLinkAccessLevelgetAccess()Requested access level you want the audience to gain from this link.java.lang.BooleangetAllowDownload()Boolean flag to allow or not download capabilities for shared links.LinkAudiencegetAudience()The new audience who can benefit from the access level specified by the link's access level specified in the `link_access_level` field of `LinkPermissions`.java.util.DategetExpires()Expiration time of the shared link.java.lang.StringgetLinkPassword()IfgetRequirePassword()is true, this is needed to specify the password to access the link.RequestedVisibilitygetRequestedVisibility()UsegetAudience()instead.java.lang.BooleangetRequirePassword()Boolean flag to enable or disable password protection.inthashCode()static SharedLinkSettings.BuildernewBuilder()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.
 
- 
- 
- 
Field Detail- 
requirePasswordprotected final java.lang.Boolean requirePassword 
 - 
linkPasswordprotected final java.lang.String linkPassword 
 - 
expiresprotected final java.util.Date expires 
 - 
audienceprotected final LinkAudience audience 
 - 
accessprotected final RequestedLinkAccessLevel access 
 - 
requestedVisibilityprotected final RequestedVisibility requestedVisibility 
 - 
allowDownloadprotected final java.lang.Boolean allowDownload 
 
- 
 - 
Constructor Detail- 
SharedLinkSettingspublic SharedLinkSettings(java.lang.Boolean requirePassword, java.lang.String linkPassword, java.util.Date expires, LinkAudience audience, RequestedLinkAccessLevel access, RequestedVisibility requestedVisibility, java.lang.Boolean allowDownload)UsenewBuilder()to create instances of this class without specifying values for all optional fields.- Parameters:
- requirePassword- Boolean flag to enable or disable password protection.
- linkPassword- If- getRequirePassword()is true, this is needed to specify the password to access the link.
- expires- Expiration time of the shared link. By default the link won't expire.
- audience- The new audience who can benefit from the access level specified by the link's access level specified in the `link_access_level` field of `LinkPermissions`. This is used in conjunction with team policies and shared folder policies to determine the final effective audience type in the `effective_audience` field of `LinkPermissions.
- access- Requested access level you want the audience to gain from this link. Note, modifying access level for an existing link is not supported.
- requestedVisibility- Use- getAudience()instead. The requested access for this shared link.
- allowDownload- Boolean flag to allow or not download capabilities for shared links.
 
 - 
SharedLinkSettingspublic SharedLinkSettings() NoneThe default values for unset fields will be used. 
 
- 
 - 
Method Detail- 
getRequirePasswordpublic java.lang.Boolean getRequirePassword() Boolean flag to enable or disable password protection.- Returns:
- value for this field, or nullif not present.
 
 - 
getLinkPasswordpublic java.lang.String getLinkPassword() IfgetRequirePassword()is true, this is needed to specify the password to access the link.- Returns:
- value for this field, or nullif not present.
 
 - 
getExpirespublic java.util.Date getExpires() Expiration time of the shared link. By default the link won't expire.- Returns:
- value for this field, or nullif not present.
 
 - 
getAudiencepublic LinkAudience getAudience() The new audience who can benefit from the access level specified by the link's access level specified in the `link_access_level` field of `LinkPermissions`. This is used in conjunction with team policies and shared folder policies to determine the final effective audience type in the `effective_audience` field of `LinkPermissions.- Returns:
- value for this field, or nullif not present.
 
 - 
getAccesspublic RequestedLinkAccessLevel getAccess() Requested access level you want the audience to gain from this link. Note, modifying access level for an existing link is not supported.- Returns:
- value for this field, or nullif not present.
 
 - 
getRequestedVisibilitypublic RequestedVisibility getRequestedVisibility() UsegetAudience()instead. The requested access for this shared link.- Returns:
- value for this field, or nullif not present.
 
 - 
getAllowDownloadpublic java.lang.Boolean getAllowDownload() Boolean flag to allow or not download capabilities for shared links.- Returns:
- value for this field, or nullif not present.
 
 - 
newBuilderpublic static SharedLinkSettings.Builder newBuilder() Returns a new builder for creating an instance of this class.- Returns:
- builder for this class.
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
toStringMultilinepublic java.lang.String toStringMultiline() Returns a String representation of this object formatted for easier readability.The returned String may contain newlines. - Returns:
- Formatted, multiline String representation of this object
 
 
- 
 
-