public class UpdateBuilder
extends java.lang.Object
DbxUserFileRequestsRequests.updateBuilder(java.lang.String)
.
Use this class to set optional request parameters and complete the request.
Modifier and Type | Method and Description |
---|---|
FileRequest |
start()
Issues the request.
|
UpdateBuilder |
withDeadline(UpdateFileRequestDeadline deadline)
Set value for optional field.
|
UpdateBuilder |
withDestination(java.lang.String destination)
Set value for optional field.
|
UpdateBuilder |
withOpen(java.lang.Boolean open)
Set value for optional field.
|
UpdateBuilder |
withTitle(java.lang.String title)
Set value for optional field.
|
public UpdateBuilder withTitle(java.lang.String title)
title
- The new title of the file request. Must not be empty. Must
have length of at least 1.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public UpdateBuilder withDestination(java.lang.String destination)
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])*
".java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public UpdateBuilder withDeadline(UpdateFileRequestDeadline deadline)
If left unset or set to null
, defaults to UpdateFileRequestDeadline.NO_UPDATE
.
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_UPDATE
when
set to null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public UpdateBuilder withOpen(java.lang.Boolean open)
open
- Whether to set this file request as open or closed.public FileRequest start() throws UpdateFileRequestErrorException, DbxException