public class CreateBuilder
extends java.lang.Object
DbxUserFileRequestsRequests.createBuilder(java.lang.String, 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.
|
CreateBuilder |
withDeadline(FileRequestDeadline deadline)
Set value for optional field.
|
CreateBuilder |
withOpen(java.lang.Boolean open)
Set value for optional field.
|
public CreateBuilder withDeadline(FileRequestDeadline deadline)
deadline
- The deadline for the file request. Deadlines can only be
set by Professional and Business accounts.public CreateBuilder withOpen(java.lang.Boolean open)
If left unset or set to null
, defaults to true
.
open
- Whether or not the file request should be open. If the file
request is closed, it will not accept any file submissions, but it
can be opened later. Defaults to true
when set to null
.public FileRequest start() throws CreateFileRequestErrorException, DbxException