Package com.dropbox.core.v2.sharing
Class SharedLinkSettings
java.lang.Object
com.dropbox.core.v2.sharing.SharedLinkSettings
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final RequestedLinkAccessLevelprotected final Booleanprotected final LinkAudienceprotected final Dateprotected final Stringprotected final RequestedVisibilityprotected final Boolean -
Constructor Summary
ConstructorsConstructorDescriptionNoneSharedLinkSettings(Boolean requirePassword, String linkPassword, Date expires, LinkAudience audience, RequestedLinkAccessLevel access, RequestedVisibility requestedVisibility, Boolean allowDownload) UsenewBuilder()to create instances of this class without specifying values for all optional fields. -
Method Summary
Modifier and TypeMethodDescriptionbooleanRequested access level you want the audience to gain from this link.Boolean flag to allow or not download capabilities for shared links.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`.Expiration time of the shared link.IfgetRequirePassword()is true, this is needed to specify the password to access the link.Deprecated.Boolean flag to enable or disable password protection.inthashCode()static SharedLinkSettings.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
-
requirePassword
-
linkPassword
-
expires
-
audience
-
access
-
requestedVisibility
-
allowDownload
-
-
Constructor Details
-
SharedLinkSettings
public SharedLinkSettings(@Nullable Boolean requirePassword, @Nullable String linkPassword, @Nullable Date expires, @Nullable LinkAudience audience, @Nullable RequestedLinkAccessLevel access, @Nullable RequestedVisibility requestedVisibility, @Nullable 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- IfgetRequirePassword()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- Field is deprecated. UsegetAudience()instead. The requested access for this shared link.allowDownload- Boolean flag to allow or not download capabilities for shared links.
-
SharedLinkSettings
public SharedLinkSettings()NoneThe default values for unset fields will be used.
-
-
Method Details
-
getRequirePassword
Boolean flag to enable or disable password protection.- Returns:
- value for this field, or
nullif not present.
-
getLinkPassword
IfgetRequirePassword()is true, this is needed to specify the password to access the link.- Returns:
- value for this field, or
nullif not present.
-
getExpires
Expiration time of the shared link. By default the link won't expire.- Returns:
- value for this field, or
nullif not present.
-
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.
-
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.
-
getRequestedVisibility
Deprecated.Field is deprecated. UsegetAudience()instead. The requested access for this shared link.- Returns:
- value for this field, or
nullif not present.
-
getAllowDownload
Boolean flag to allow or not download capabilities for shared links.- 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
-