Package com.dropbox.core.v2.sharing
Class ShareFolderBuilder
- java.lang.Object
- 
- com.dropbox.core.v2.sharing.ShareFolderBuilder
 
- 
 public class ShareFolderBuilder extends java.lang.ObjectThe request builder returned byDbxUserSharingRequests.shareFolderBuilder(java.lang.String).Use this class to set optional request parameters and complete the request. 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ShareFolderLaunchstart()Issues the request.ShareFolderBuilderwithAccessInheritance(AccessInheritance accessInheritance)Set value for optional field.ShareFolderBuilderwithAclUpdatePolicy(AclUpdatePolicy aclUpdatePolicy)Set value for optional field.ShareFolderBuilderwithActions(java.util.List<FolderAction> actions)Set value for optional field.ShareFolderBuilderwithForceAsync(java.lang.Boolean forceAsync)Set value for optional field.ShareFolderBuilderwithLinkSettings(LinkSettings linkSettings)Set value for optional field.ShareFolderBuilderwithMemberPolicy(MemberPolicy memberPolicy)Set value for optional field.ShareFolderBuilderwithSharedLinkPolicy(SharedLinkPolicy sharedLinkPolicy)Set value for optional field.ShareFolderBuilderwithViewerInfoPolicy(ViewerInfoPolicy viewerInfoPolicy)Set value for optional field.
 
- 
- 
- 
Method Detail- 
withAclUpdatePolicypublic ShareFolderBuilder withAclUpdatePolicy(AclUpdatePolicy aclUpdatePolicy) Set value for optional field.- Parameters:
- aclUpdatePolicy- Who can add and remove members of this shared folder.
- Returns:
- this builder
 
 - 
withForceAsyncpublic ShareFolderBuilder withForceAsync(java.lang.Boolean forceAsync) Set value for optional field.If left unset or set to null, defaults tofalse.- Parameters:
- forceAsync- Whether to force the share to happen asynchronously. Defaults to- falsewhen set to- null.
- Returns:
- this builder
 
 - 
withMemberPolicypublic ShareFolderBuilder withMemberPolicy(MemberPolicy memberPolicy) Set value for optional field.- Parameters:
- memberPolicy- Who can be a member of this shared folder. Only applicable if the current user is on a team.
- Returns:
- this builder
 
 - 
withSharedLinkPolicypublic ShareFolderBuilder withSharedLinkPolicy(SharedLinkPolicy sharedLinkPolicy) Set value for optional field.- Parameters:
- sharedLinkPolicy- The policy to apply to shared links created for content inside this shared folder. The current user must be on a team to set this policy to- SharedLinkPolicy.MEMBERS.
- Returns:
- this builder
 
 - 
withViewerInfoPolicypublic ShareFolderBuilder withViewerInfoPolicy(ViewerInfoPolicy viewerInfoPolicy) Set value for optional field.- Parameters:
- viewerInfoPolicy- Who can enable/disable viewer info for this shared folder.
- Returns:
- this builder
 
 - 
withAccessInheritancepublic ShareFolderBuilder withAccessInheritance(AccessInheritance accessInheritance) Set value for optional field.If left unset or set to null, defaults toAccessInheritance.INHERIT.- Parameters:
- accessInheritance- The access inheritance settings for the folder. Must not be- null. Defaults to- AccessInheritance.INHERITwhen set to- null.
- Returns:
- this builder
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
withActionspublic ShareFolderBuilder withActions(java.util.List<FolderAction> actions) Set value for optional field.- Parameters:
- actions- A list of `FolderAction`s corresponding to `FolderPermission`s that should appear in the response's- SharedFolderMetadata.getPermissions()field describing the actions the authenticated user can perform on the folder. Must not contain a- nullitem.
- Returns:
- this builder
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
withLinkSettingspublic ShareFolderBuilder withLinkSettings(LinkSettings linkSettings) Set value for optional field.- Parameters:
- linkSettings- Settings on the link for this folder.
- Returns:
- this builder
 
 - 
startpublic ShareFolderLaunch start() throws ShareFolderErrorException, DbxException Issues the request.
 
- 
 
-