Package com.dropbox.core.v2.sharing
Class SharedLinkSettings.Builder
- java.lang.Object
- 
- com.dropbox.core.v2.sharing.SharedLinkSettings.Builder
 
- 
- Enclosing class:
- SharedLinkSettings
 
 public static class SharedLinkSettings.Builder extends java.lang.ObjectBuilder forSharedLinkSettings.
- 
- 
Field SummaryFields Modifier and Type Field Description protected RequestedLinkAccessLevelaccessprotected java.lang.BooleanallowDownloadprotected LinkAudienceaudienceprotected java.util.Dateexpiresprotected java.lang.StringlinkPasswordprotected RequestedVisibilityrequestedVisibilityprotected java.lang.BooleanrequirePassword
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedBuilder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description SharedLinkSettingsbuild()Builds an instance ofSharedLinkSettingsconfigured with this builder's valuesSharedLinkSettings.BuilderwithAccess(RequestedLinkAccessLevel access)Set value for optional field.SharedLinkSettings.BuilderwithAllowDownload(java.lang.Boolean allowDownload)Set value for optional field.SharedLinkSettings.BuilderwithAudience(LinkAudience audience)Set value for optional field.SharedLinkSettings.BuilderwithExpires(java.util.Date expires)Set value for optional field.SharedLinkSettings.BuilderwithLinkPassword(java.lang.String linkPassword)Set value for optional field.SharedLinkSettings.BuilderwithRequestedVisibility(RequestedVisibility requestedVisibility)Set value for optional field.SharedLinkSettings.BuilderwithRequirePassword(java.lang.Boolean requirePassword)Set value for optional field.
 
- 
- 
- 
Field Detail- 
requirePasswordprotected java.lang.Boolean requirePassword 
 - 
linkPasswordprotected java.lang.String linkPassword 
 - 
expiresprotected java.util.Date expires 
 - 
audienceprotected LinkAudience audience 
 - 
accessprotected RequestedLinkAccessLevel access 
 - 
requestedVisibilityprotected RequestedVisibility requestedVisibility 
 - 
allowDownloadprotected java.lang.Boolean allowDownload 
 
- 
 - 
Method Detail- 
withRequirePasswordpublic SharedLinkSettings.Builder withRequirePassword(java.lang.Boolean requirePassword) Set value for optional field.- Parameters:
- requirePassword- Boolean flag to enable or disable password protection.
- Returns:
- this builder
 
 - 
withLinkPasswordpublic SharedLinkSettings.Builder withLinkPassword(java.lang.String linkPassword) Set value for optional field.- Parameters:
- linkPassword- If- SharedLinkSettings.getRequirePassword()is true, this is needed to specify the password to access the link.
- Returns:
- this builder
 
 - 
withExpirespublic SharedLinkSettings.Builder withExpires(java.util.Date expires) Set value for optional field.- Parameters:
- expires- Expiration time of the shared link. By default the link won't expire.
- Returns:
- this builder
 
 - 
withAudiencepublic SharedLinkSettings.Builder withAudience(LinkAudience audience) Set value for optional field.- Parameters:
- audience- The new audience who can benefit from the access level specified by the link's access level specified in the `link_access_level` field of `LinkPermissions`. This is used in conjunction with team policies and shared folder policies to determine the final effective audience type in the `effective_audience` field of `LinkPermissions.
- Returns:
- this builder
 
 - 
withAccesspublic SharedLinkSettings.Builder withAccess(RequestedLinkAccessLevel access) Set value for optional field.- Parameters:
- access- Requested access level you want the audience to gain from this link. Note, modifying access level for an existing link is not supported.
- Returns:
- this builder
 
 - 
withRequestedVisibilitypublic SharedLinkSettings.Builder withRequestedVisibility(RequestedVisibility requestedVisibility) Set value for optional field.- Parameters:
- requestedVisibility- Use- SharedLinkSettings.getAudience()instead. The requested access for this shared link.
- Returns:
- this builder
 
 - 
withAllowDownloadpublic SharedLinkSettings.Builder withAllowDownload(java.lang.Boolean allowDownload) Set value for optional field.- Parameters:
- allowDownload- Boolean flag to allow or not download capabilities for shared links.
- Returns:
- this builder
 
 - 
buildpublic SharedLinkSettings build() Builds an instance ofSharedLinkSettingsconfigured with this builder's values- Returns:
- new instance of SharedLinkSettings
 
 
- 
 
-