public static class FileRequest.Builder
extends java.lang.Object
FileRequest
.Modifier and Type | Field and Description |
---|---|
protected java.util.Date |
created |
protected FileRequestDeadline |
deadline |
protected java.lang.String |
destination |
protected long |
fileCount |
protected java.lang.String |
id |
protected boolean |
isOpen |
protected java.lang.String |
title |
protected java.lang.String |
url |
Modifier | Constructor and Description |
---|---|
protected |
Builder(java.lang.String id,
java.lang.String url,
java.lang.String title,
java.util.Date created,
boolean isOpen,
long fileCount) |
Modifier and Type | Method and Description |
---|---|
FileRequest |
build()
Builds an instance of
FileRequest configured with this
builder's values |
FileRequest.Builder |
withDeadline(FileRequestDeadline deadline)
Set value for optional field.
|
FileRequest.Builder |
withDestination(java.lang.String destination)
Set value for optional field.
|
protected final java.lang.String id
protected final java.lang.String url
protected final java.lang.String title
protected final java.util.Date created
protected final boolean isOpen
protected final long fileCount
protected java.lang.String destination
protected FileRequestDeadline deadline
protected Builder(java.lang.String id, java.lang.String url, java.lang.String title, java.util.Date created, boolean isOpen, long fileCount)
public FileRequest.Builder withDestination(java.lang.String destination)
destination
- The path of the folder in the Dropbox where
uploaded files will be sent. This can be null
if the
destination was removed. 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 FileRequest.Builder withDeadline(FileRequestDeadline deadline)
deadline
- The deadline for this file request. Only set if the
request has a deadline.public FileRequest build()
FileRequest
configured with this
builder's valuesFileRequest