public class MembersRemoveBuilder extends Object
DbxTeamTeamRequests.membersRemoveBuilder(com.dropbox.core.v2.team.UserSelectorArg)
.
Use this class to set optional request parameters and complete the request.
Modifier and Type | Method and Description |
---|---|
LaunchEmptyResult |
start()
Issues the request.
|
MembersRemoveBuilder |
withKeepAccount(Boolean keepAccount)
Set value for optional field.
|
MembersRemoveBuilder |
withTransferAdminId(UserSelectorArg transferAdminId)
Set value for optional field.
|
MembersRemoveBuilder |
withTransferDestId(UserSelectorArg transferDestId)
Set value for optional field.
|
MembersRemoveBuilder |
withWipeData(Boolean wipeData)
Set value for optional field.
|
public MembersRemoveBuilder withWipeData(Boolean wipeData)
If left unset or set to null
, defaults to true
.
wipeData
- If provided, controls if the user's data will be deleted
on their linked devices. Defaults to true
when set to null
.public MembersRemoveBuilder withTransferDestId(UserSelectorArg transferDestId)
transferDestId
- If provided, files from the deleted member account
will be transferred to this user.public MembersRemoveBuilder withTransferAdminId(UserSelectorArg transferAdminId)
transferAdminId
- If provided, errors during the transfer process
will be sent via email to this user. If the transfer_dest_id argument
was provided, then this argument must be provided as well.public MembersRemoveBuilder withKeepAccount(Boolean keepAccount)
If left unset or set to null
, defaults to false
.
keepAccount
- Downgrade the member to a Basic account. The user
will retain the email address associated with their Dropbox account
and data in their account that is not restricted to team members.
Defaults to false
when set to null
.public LaunchEmptyResult start() throws MembersRemoveErrorException, DbxException