Package com.dropbox.core.v2.filerequests
Class FileRequest.Builder
java.lang.Object
com.dropbox.core.v2.filerequests.FileRequest.Builder
- Enclosing class:
FileRequest
Builder for
FileRequest.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an instance ofFileRequestconfigured with this builder's valueswithDeadline(FileRequestDeadline deadline) Set value for optional field.withDescription(String description) Set value for optional field.withDestination(String destination) Set value for optional field.withVideoProjectId(String videoProjectId) Set value for optional field.
-
Field Details
-
id
-
url
-
title
-
created
-
isOpen
protected final boolean isOpen -
fileCount
protected final long fileCount -
destination
-
deadline
-
description
-
videoProjectId
-
-
Constructor Details
-
Builder
-
-
Method Details
-
withDestination
Set value for optional field.- Parameters:
destination- The path of the folder in the Dropbox where uploaded files will be sent. This can benullif the destination was removed. For apps with the app folder permission, this will be relative to the app folder. Must match pattern "/(.|[\\r\\n])*".- Returns:
- this builder
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
withDeadline
Set value for optional field.- Parameters:
deadline- The deadline for this file request. Only set if the request has a deadline.- Returns:
- this builder
-
withDescription
Set value for optional field.- Parameters:
description- A description of the file request.- Returns:
- this builder
-
withVideoProjectId
Set value for optional field.- Parameters:
videoProjectId- If this request was created from video project, its id.- Returns:
- this builder
-
build
Builds an instance ofFileRequestconfigured with this builder's values- Returns:
- new instance of
FileRequest
-