public static class SharedLinkSettings.Builder extends Object
SharedLinkSettings
.Modifier and Type | Field and Description |
---|---|
protected Date |
expires |
protected String |
linkPassword |
protected RequestedVisibility |
requestedVisibility |
Modifier | Constructor and Description |
---|---|
protected |
Builder() |
Modifier and Type | Method and Description |
---|---|
SharedLinkSettings |
build()
Builds an instance of
SharedLinkSettings configured with this
builder's values |
SharedLinkSettings.Builder |
withExpires(Date expires)
Set value for optional field.
|
SharedLinkSettings.Builder |
withLinkPassword(String linkPassword)
Set value for optional field.
|
SharedLinkSettings.Builder |
withRequestedVisibility(RequestedVisibility requestedVisibility)
Set value for optional field.
|
protected RequestedVisibility requestedVisibility
protected String linkPassword
protected Date expires
public SharedLinkSettings.Builder withRequestedVisibility(RequestedVisibility requestedVisibility)
requestedVisibility
- The requested access for this shared
link.public SharedLinkSettings.Builder withLinkPassword(String linkPassword)
linkPassword
- If SharedLinkSettings.getRequestedVisibility()
is RequestedVisibility.PASSWORD
this is needed to specify the
password to access the link.public SharedLinkSettings.Builder withExpires(Date expires)
expires
- Expiration time of the shared link. By default the
link won't expire.public SharedLinkSettings build()
SharedLinkSettings
configured with this
builder's valuesSharedLinkSettings