Package com.dropbox.core.v2.sharing
Class LinkSettings.Builder
java.lang.Object
com.dropbox.core.v2.sharing.LinkSettings.Builder
- Enclosing class:
LinkSettings
Builder for
LinkSettings.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AccessLevelprotected LinkAudienceprotected LinkExpiryprotected LinkPassword -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an instance ofLinkSettingsconfigured with this builder's valueswithAccessLevel(AccessLevel accessLevel) Set value for optional field.withAudience(LinkAudience audience) Set value for optional field.withExpiry(LinkExpiry expiry) Set value for optional field.withPassword(LinkPassword password) Set value for optional field.
-
Field Details
-
accessLevel
-
audience
-
expiry
-
password
-
-
Constructor Details
-
Builder
protected Builder()
-
-
Method Details
-
withAccessLevel
Set value for optional field.- Parameters:
accessLevel- The access level on the link for this file. Currently, it only accepts 'viewer' and 'viewer_no_comment'.- Returns:
- this builder
-
withAudience
Set value for optional field.- Parameters:
audience- The type of audience on the link for this file.- Returns:
- this builder
-
withExpiry
Set value for optional field.- Parameters:
expiry- An expiry timestamp to set on a link.- Returns:
- this builder
-
withPassword
Set value for optional field.- Parameters:
password- The password for the link.- Returns:
- this builder
-
build
Builds an instance ofLinkSettingsconfigured with this builder's values- Returns:
- new instance of
LinkSettings
-