public class MoveBuilder
extends java.lang.Object
DbxUserFilesRequests.moveBuilder(java.lang.String, java.lang.String)
.
Use this class to set optional request parameters and complete the request.
Modifier and Type | Method and Description |
---|---|
Metadata |
start()
Issues the request.
|
MoveBuilder |
withAllowOwnershipTransfer(java.lang.Boolean allowOwnershipTransfer)
Set value for optional field.
|
MoveBuilder |
withAllowSharedFolder(java.lang.Boolean allowSharedFolder)
Set value for optional field.
|
MoveBuilder |
withAutorename(java.lang.Boolean autorename)
Set value for optional field.
|
public MoveBuilder withAllowSharedFolder(java.lang.Boolean allowSharedFolder)
If left unset or set to null
, defaults to false
.
allowSharedFolder
- If true, DbxUserFilesRequests.copy(String,String)
will copy contents in
shared folder, otherwise RelocationError.CANT_COPY_SHARED_FOLDER
will be returned if RelocationArg.getFromPath()
contains shared folder. This field is
always true for DbxUserFilesRequests.move(String,String)
.
Defaults to false
when set to null
.public MoveBuilder withAutorename(java.lang.Boolean autorename)
If left unset or set to null
, defaults to false
.
autorename
- If there's a conflict, have the Dropbox server try to
autorename the file to avoid the conflict. Defaults to false
when set to null
.public MoveBuilder 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 Metadata start() throws RelocationErrorException, DbxException
RelocationErrorException
DbxException