Package com.dropbox.core.v2.files
Class MoveBuilder
- java.lang.Object
-
- com.dropbox.core.v2.files.MoveBuilder
-
public class MoveBuilder extends java.lang.Object
The request builder returned byDbxUserFilesRequests.moveBuilder(java.lang.String, java.lang.String)
.Use this class to set optional request parameters and complete the request.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
withAllowSharedFolder
public MoveBuilder withAllowSharedFolder(java.lang.Boolean allowSharedFolder)
Set value for optional field.If left unset or set to
null
, defaults tofalse
.- Parameters:
allowSharedFolder
- If true,DbxUserFilesRequests.copy(String,String)
will copy contents in shared folder, otherwiseRelocationError.CANT_COPY_SHARED_FOLDER
will be returned ifRelocationPath.getFromPath()
contains shared folder. This field is always true forDbxUserFilesRequests.move(String,String)
. Defaults tofalse
when set tonull
.- Returns:
- this builder
-
withAutorename
public MoveBuilder withAutorename(java.lang.Boolean autorename)
Set value for optional field.If left unset or set to
null
, defaults tofalse
.- Parameters:
autorename
- If there's a conflict, have the Dropbox server try to autorename the file to avoid the conflict. Defaults tofalse
when set tonull
.- Returns:
- this builder
-
withAllowOwnershipTransfer
public MoveBuilder withAllowOwnershipTransfer(java.lang.Boolean allowOwnershipTransfer)
Set value for optional field.If left unset or set to
null
, defaults tofalse
.- Parameters:
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 tofalse
when set tonull
.- Returns:
- this builder
-
start
public Metadata start() throws RelocationErrorException, DbxException
Issues the request.- Throws:
RelocationErrorException
DbxException
-
-