public class ShareFolderBuilder
extends java.lang.Object
DbxUserSharingRequests.shareFolderBuilder(java.lang.String)
.
Use this class to set optional request parameters and complete the request.
Modifier and Type | Method and Description |
---|---|
ShareFolderLaunch |
start()
Issues the request.
|
ShareFolderBuilder |
withAccessInheritance(AccessInheritance accessInheritance)
Set value for optional field.
|
ShareFolderBuilder |
withAclUpdatePolicy(AclUpdatePolicy aclUpdatePolicy)
Set value for optional field.
|
ShareFolderBuilder |
withActions(java.util.List<FolderAction> actions)
Set value for optional field.
|
ShareFolderBuilder |
withForceAsync(java.lang.Boolean forceAsync)
Set value for optional field.
|
ShareFolderBuilder |
withLinkSettings(LinkSettings linkSettings)
Set value for optional field.
|
ShareFolderBuilder |
withMemberPolicy(MemberPolicy memberPolicy)
Set value for optional field.
|
ShareFolderBuilder |
withSharedLinkPolicy(SharedLinkPolicy sharedLinkPolicy)
Set value for optional field.
|
ShareFolderBuilder |
withViewerInfoPolicy(ViewerInfoPolicy viewerInfoPolicy)
Set value for optional field.
|
public ShareFolderBuilder withAclUpdatePolicy(AclUpdatePolicy aclUpdatePolicy)
aclUpdatePolicy
- Who can add and remove members of this shared
folder.public ShareFolderBuilder withForceAsync(java.lang.Boolean forceAsync)
If left unset or set to null
, defaults to false
.
forceAsync
- Whether to force the share to happen asynchronously.
Defaults to false
when set to null
.public ShareFolderBuilder withMemberPolicy(MemberPolicy memberPolicy)
memberPolicy
- Who can be a member of this shared folder. Only
applicable if the current user is on a team.public ShareFolderBuilder withSharedLinkPolicy(SharedLinkPolicy sharedLinkPolicy)
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
.public ShareFolderBuilder withViewerInfoPolicy(ViewerInfoPolicy viewerInfoPolicy)
viewerInfoPolicy
- Who can enable/disable viewer info for this
shared folder.public ShareFolderBuilder withAccessInheritance(AccessInheritance accessInheritance)
If left unset or set to null
, defaults to AccessInheritance.INHERIT
.
accessInheritance
- The access inheritance settings for the folder.
Must not be null
. Defaults to AccessInheritance.INHERIT
when set to null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public ShareFolderBuilder withActions(java.util.List<FolderAction> actions)
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
null
item.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public ShareFolderBuilder withLinkSettings(LinkSettings linkSettings)
linkSettings
- Settings on the link for this folder.public ShareFolderLaunch start() throws ShareFolderErrorException, DbxException