Package com.dropbox.core.v2.sharing
Class LinkSettings.Builder
- java.lang.Object
-
- com.dropbox.core.v2.sharing.LinkSettings.Builder
-
- Enclosing class:
- LinkSettings
public static class LinkSettings.Builder extends java.lang.ObjectBuilder forLinkSettings.
-
-
Field Summary
Fields Modifier and Type Field Description protected AccessLevelaccessLevelprotected LinkAudienceaudienceprotected LinkExpiryexpiryprotected LinkPasswordpassword
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LinkSettingsbuild()Builds an instance ofLinkSettingsconfigured with this builder's valuesLinkSettings.BuilderwithAccessLevel(AccessLevel accessLevel)Set value for optional field.LinkSettings.BuilderwithAudience(LinkAudience audience)Set value for optional field.LinkSettings.BuilderwithExpiry(LinkExpiry expiry)Set value for optional field.LinkSettings.BuilderwithPassword(LinkPassword password)Set value for optional field.
-
-
-
Field Detail
-
accessLevel
protected AccessLevel accessLevel
-
audience
protected LinkAudience audience
-
expiry
protected LinkExpiry expiry
-
password
protected LinkPassword password
-
-
Method Detail
-
withAccessLevel
public LinkSettings.Builder withAccessLevel(AccessLevel accessLevel)
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
public LinkSettings.Builder withAudience(LinkAudience audience)
Set value for optional field.- Parameters:
audience- The type of audience on the link for this file.- Returns:
- this builder
-
withExpiry
public LinkSettings.Builder withExpiry(LinkExpiry expiry)
Set value for optional field.- Parameters:
expiry- An expiry timestamp to set on a link.- Returns:
- this builder
-
withPassword
public LinkSettings.Builder withPassword(LinkPassword password)
Set value for optional field.- Parameters:
password- The password for the link.- Returns:
- this builder
-
build
public LinkSettings build()
Builds an instance ofLinkSettingsconfigured with this builder's values- Returns:
- new instance of
LinkSettings
-
-