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 Summary
Nested Classes Modifier and Type Class Description static classLinkSettings.BuilderBuilder forLinkSettings.
-
Field Summary
Fields Modifier and Type Field Description protected AccessLevelaccessLevelprotected LinkAudienceaudienceprotected LinkExpiryexpiryprotected LinkPasswordpassword
-
Constructor Summary
Constructors 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 Summary
All 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
-
accessLevel
protected final AccessLevel accessLevel
-
audience
protected final LinkAudience audience
-
expiry
protected final LinkExpiry expiry
-
password
protected final LinkPassword password
-
-
Constructor Detail
-
LinkSettings
public 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.
-
LinkSettings
public LinkSettings()
Settings that apply to a link.The default values for unset fields will be used.
-
-
Method Detail
-
getAccessLevel
public 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.
-
getAudience
public LinkAudience getAudience()
The type of audience on the link for this file.- Returns:
- value for this field, or
nullif not present.
-
getExpiry
public LinkExpiry getExpiry()
An expiry timestamp to set on a link.- Returns:
- value for this field, or
nullif not present.
-
getPassword
public LinkPassword getPassword()
The password for the link.- Returns:
- value for this field, or
nullif not present.
-
newBuilder
public static LinkSettings.Builder newBuilder()
Returns a new builder for creating an instance of this class.- Returns:
- builder for this class.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
toStringMultiline
public 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
-
-