public class MoveBatchBuilder
extends java.lang.Object
DbxUserFilesRequests.moveBatchBuilder(java.util.List<com.dropbox.core.v2.files.RelocationPath>)
.
Use this class to set optional request parameters and complete the request.
Modifier and Type | Method and Description |
---|---|
RelocationBatchLaunch |
start()
Issues the request.
|
MoveBatchBuilder |
withAllowOwnershipTransfer(java.lang.Boolean allowOwnershipTransfer)
Set value for optional field.
|
MoveBatchBuilder |
withAllowSharedFolder(java.lang.Boolean allowSharedFolder)
Set value for optional field.
|
MoveBatchBuilder |
withAutorename(java.lang.Boolean autorename)
Set value for optional field.
|
public MoveBatchBuilder withAutorename(java.lang.Boolean autorename)
If left unset or set to null
, defaults to false
.
autorename
- If there's a conflict with any file, have the Dropbox
server try to autorename that file to avoid the conflict. Defaults to
false
when set to null
.public MoveBatchBuilder withAllowSharedFolder(java.lang.Boolean allowSharedFolder)
If left unset or set to null
, defaults to false
.
allowSharedFolder
- If true, DbxUserFilesRequests.copyBatch(java.util.List)
will copy contents in
shared folder, otherwise RelocationError.CANT_COPY_SHARED_FOLDER
will be returned if RelocationPath.getFromPath()
contains shared folder. This field is
always true for DbxUserFilesRequests.moveBatch(java.util.List)
. Defaults to false
when set to null
.public MoveBatchBuilder withAllowOwnershipTransfer(java.lang.Boolean allowOwnershipTransfer)
If left unset or set to null
, defaults to false
.
allowOwnershipTransfer
- Allow moves by owner even if it would
result in an ownership transfer for the content being moved. This
does not apply to copies. Defaults to false
when set to
null
.public RelocationBatchLaunch start() throws DbxApiException, DbxException
DbxApiException
DbxException