public static class LinkSettings.Builder
extends java.lang.Object
LinkSettings
.Modifier and Type | Field and Description |
---|---|
protected AccessLevel |
accessLevel |
protected LinkAudience |
audience |
protected LinkExpiry |
expiry |
protected LinkPassword |
password |
Modifier | Constructor and Description |
---|---|
protected |
Builder() |
Modifier and Type | Method and Description |
---|---|
LinkSettings |
build()
Builds an instance of
LinkSettings configured with this
builder's values |
LinkSettings.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.
|
protected AccessLevel accessLevel
protected LinkAudience audience
protected LinkExpiry expiry
protected LinkPassword password
public LinkSettings.Builder withAccessLevel(AccessLevel accessLevel)
accessLevel
- The access level on the link for this file.
Currently, it only accepts 'viewer' and 'viewer_no_comment'.public LinkSettings.Builder withAudience(LinkAudience audience)
audience
- The type of audience on the link for this file.public LinkSettings.Builder withExpiry(LinkExpiry expiry)
expiry
- An expiry timestamp to set on a link.public LinkSettings.Builder withPassword(LinkPassword password)
password
- The password for the link.public LinkSettings build()
LinkSettings
configured with this
builder's valuesLinkSettings