public class ShareFolderBuilder extends 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 |
withAclUpdatePolicy(AclUpdatePolicy aclUpdatePolicy)
Set value for optional field.
|
ShareFolderBuilder |
withForceAsync(Boolean forceAsync)
Set value for optional field.
|
ShareFolderBuilder |
withMemberPolicy(MemberPolicy memberPolicy)
Set value for optional field.
|
ShareFolderBuilder |
withSharedLinkPolicy(SharedLinkPolicy sharedLinkPolicy)
Set value for optional field.
|
public ShareFolderBuilder withMemberPolicy(MemberPolicy memberPolicy)
If left unset or set to null
, defaults to MemberPolicy.ANYONE
.
memberPolicy
- Who can be a member of this shared folder. Only
applicable if the current user is on a team. Must not be null
. Defaults to MemberPolicy.ANYONE
when set to null
.IllegalArgumentException
- If any argument does not meet its
preconditions.public ShareFolderBuilder withAclUpdatePolicy(AclUpdatePolicy aclUpdatePolicy)
If left unset or set to null
, defaults to AclUpdatePolicy.OWNER
.
aclUpdatePolicy
- Who can add and remove members of this shared
folder. Must not be null
. Defaults to AclUpdatePolicy.OWNER
when set to null
.IllegalArgumentException
- If any argument does not meet its
preconditions.public ShareFolderBuilder withSharedLinkPolicy(SharedLinkPolicy sharedLinkPolicy)
If left unset or set to null
, defaults to SharedLinkPolicy.ANYONE
.
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
. Must not
be null
. Defaults to SharedLinkPolicy.ANYONE
when set
to null
.IllegalArgumentException
- If any argument does not meet its
preconditions.public ShareFolderBuilder withForceAsync(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 ShareFolderLaunch start() throws ShareFolderErrorException, DbxException