Package com.dropbox.core.v2.sharing
Class LinkSettings
java.lang.Object
com.dropbox.core.v2.sharing.LinkSettings
Settings that apply to a link.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AccessLevelprotected final LinkAudienceprotected final LinkExpiryprotected final LinkPassword -
Constructor Summary
ConstructorsConstructorDescriptionSettings that apply to a link.LinkSettings(AccessLevel accessLevel, LinkAudience audience, LinkExpiry expiry, LinkPassword password) Settings that apply to a link. -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe access level on the link for this file.The type of audience on the link for this file.An expiry timestamp to set on a link.The password for the link.inthashCode()static LinkSettings.BuilderReturns a new builder for creating an instance of this class.toString()Returns a String representation of this object formatted for easier readability.
-
Field Details
-
accessLevel
-
audience
-
expiry
-
password
-
-
Constructor Details
-
LinkSettings
public LinkSettings(@Nullable AccessLevel accessLevel, @Nullable LinkAudience audience, @Nullable LinkExpiry expiry, @Nullable 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 Details
-
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
The type of audience on the link for this file.- Returns:
- value for this field, or
nullif not present.
-
getExpiry
An expiry timestamp to set on a link.- Returns:
- value for this field, or
nullif not present.
-
getPassword
The password for the link.- Returns:
- value for this field, or
nullif not present.
-
newBuilder
Returns a new builder for creating an instance of this class.- Returns:
- builder for this class.
-
hashCode
public int hashCode() -
equals
-
toString
-
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
-