Package com.dropbox.core.v2.sharing
Class LinkSettings
- java.lang.Object
- 
- com.dropbox.core.v2.sharing.LinkSettings
 
- 
 public class LinkSettings extends java.lang.ObjectSettings that apply to a link.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classLinkSettings.BuilderBuilder forLinkSettings.
 - 
Field SummaryFields Modifier and Type Field Description protected AccessLevelaccessLevelprotected LinkAudienceaudienceprotected LinkExpiryexpiryprotected LinkPasswordpassword
 - 
Constructor SummaryConstructors Constructor Description LinkSettings()Settings that apply to a link.LinkSettings(AccessLevel accessLevel, LinkAudience audience, LinkExpiry expiry, LinkPassword password)Settings that apply to a link.
 - 
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.LinkAudiencegetAudience()The type of audience on the link for this file.LinkExpirygetExpiry()An expiry timestamp to set on a link.LinkPasswordgetPassword()The password for the link.inthashCode()static LinkSettings.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- 
accessLevelprotected final AccessLevel accessLevel 
 - 
audienceprotected final LinkAudience audience 
 - 
expiryprotected final LinkExpiry expiry 
 - 
passwordprotected final LinkPassword password 
 
- 
 - 
Constructor Detail- 
LinkSettingspublic LinkSettings(AccessLevel accessLevel, LinkAudience audience, LinkExpiry expiry, LinkPassword password) Settings that apply to a link.Use newBuilder()to create instances of this class without specifying values for all optional fields.- Parameters:
- accessLevel- The access level on the link for this file. Currently, it only accepts 'viewer' and 'viewer_no_comment'.
- audience- The type of audience on the link for this file.
- expiry- An expiry timestamp to set on a link.
- password- The password for the link.
 
 - 
LinkSettingspublic LinkSettings() Settings that apply to a link.The default values for unset fields will be used. 
 
- 
 - 
Method Detail- 
getAccessLevelpublic AccessLevel getAccessLevel() The access level on the link for this file. Currently, it only accepts 'viewer' and 'viewer_no_comment'.- Returns:
- value for this field, or nullif not present.
 
 - 
getAudiencepublic LinkAudience getAudience() The type of audience on the link for this file.- Returns:
- value for this field, or nullif not present.
 
 - 
getExpirypublic LinkExpiry getExpiry() An expiry timestamp to set on a link.- Returns:
- value for this field, or nullif not present.
 
 - 
getPasswordpublic LinkPassword getPassword() The password for the link.- Returns:
- value for this field, or nullif not present.
 
 - 
newBuilderpublic static LinkSettings.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
 
 
- 
 
-