Package com.dropbox.core.v2.filerequests
Class UpdateBuilder
- java.lang.Object
- 
- com.dropbox.core.v2.filerequests.UpdateBuilder
 
- 
 public class UpdateBuilder extends java.lang.ObjectThe request builder returned byDbxUserFileRequestsRequests.updateBuilder(java.lang.String).Use this class to set optional request parameters and complete the request. 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description FileRequeststart()Issues the request.UpdateBuilderwithDeadline(UpdateFileRequestDeadline deadline)Set value for optional field.UpdateBuilderwithDescription(java.lang.String description)Set value for optional field.UpdateBuilderwithDestination(java.lang.String destination)Set value for optional field.UpdateBuilderwithOpen(java.lang.Boolean open)Set value for optional field.UpdateBuilderwithTitle(java.lang.String title)Set value for optional field.
 
- 
- 
- 
Method Detail- 
withTitlepublic UpdateBuilder withTitle(java.lang.String title) Set value for optional field.- Parameters:
- title- The new title of the file request. Must not be empty. Must have length of at least 1.
- Returns:
- this builder
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
withDestinationpublic UpdateBuilder withDestination(java.lang.String destination) Set value for optional field.- Parameters:
- destination- The new path of the folder in the Dropbox where uploaded files will be sent. For apps with the app folder permission, this will be relative to the app folder. Must match pattern "- /(.|[\\r\\n])*".
- Returns:
- this builder
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
withDeadlinepublic UpdateBuilder withDeadline(UpdateFileRequestDeadline deadline) Set value for optional field.If left unset or set to null, defaults toUpdateFileRequestDeadline.NO_UPDATE.- Parameters:
- deadline- The new deadline for the file request. Deadlines can only be set by Professional and Business accounts. Must not be- null. Defaults to- UpdateFileRequestDeadline.NO_UPDATEwhen set to- null.
- Returns:
- this builder
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
withOpenpublic UpdateBuilder withOpen(java.lang.Boolean open) Set value for optional field.- Parameters:
- open- Whether to set this file request as open or closed.
- Returns:
- this builder
 
 - 
withDescriptionpublic UpdateBuilder withDescription(java.lang.String description) Set value for optional field.- Parameters:
- description- The description of the file request.
- Returns:
- this builder
 
 - 
startpublic FileRequest start() throws UpdateFileRequestErrorException, DbxException Issues the request.
 
- 
 
-