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.Object
Builder forLinkSettings
.
-
-
Field Summary
Fields Modifier and Type Field Description protected AccessLevel
accessLevel
protected LinkAudience
audience
protected LinkExpiry
expiry
protected LinkPassword
password
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LinkSettings
build()
Builds an instance ofLinkSettings
configured with this builder's valuesLinkSettings.Builder
withAccessLevel(AccessLevel accessLevel)
Set value for optional field.LinkSettings.Builder
withAudience(LinkAudience audience)
Set value for optional field.LinkSettings.Builder
withExpiry(LinkExpiry expiry)
Set value for optional field.LinkSettings.Builder
withPassword(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 ofLinkSettings
configured with this builder's values- Returns:
- new instance of
LinkSettings
-
-