Package com.dropbox.core.v2.clouddocs
Class RenameBuilder
- java.lang.Object
-
- com.dropbox.core.v2.clouddocs.RenameBuilder
-
public class RenameBuilder extends java.lang.ObjectThe request builder returned byDbxUserCloudDocsRequests.renameBuilder().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 RenameResultstart()Issues the request.RenameBuilderwithFileId(java.lang.String fileId)Set value for optional field.RenameBuilderwithTitle(java.lang.String title)Set value for optional field.
-
-
-
Method Detail
-
withFileId
public RenameBuilder withFileId(java.lang.String fileId)
Set value for optional field.If left unset or set to
null, defaults to"\"\"".- Parameters:
fileId- The API ID ("id:...") associated with the Cloud Doc. Must not benull. Defaults to"\"\""when set tonull.- Returns:
- this builder
- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
-
withTitle
public RenameBuilder withTitle(java.lang.String title)
Set value for optional field.If left unset or set to
null, defaults to"\"\"".- Parameters:
title- The new title of the doc, excluding extension. Must not benull. Defaults to"\"\""when set tonull.- Returns:
- this builder
- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
-
start
public RenameResult start() throws RenameErrorException, DbxException
Issues the request.- Throws:
RenameErrorExceptionDbxException
-
-