Package com.dropbox.core.v2.filerequests
Class CreateBuilder
- java.lang.Object
-
- com.dropbox.core.v2.filerequests.CreateBuilder
-
public class CreateBuilder extends java.lang.ObjectThe request builder returned byDbxUserFileRequestsRequests.createBuilder(java.lang.String, java.lang.String).Use this class to set optional request parameters and complete the request.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileRequeststart()Issues the request.CreateBuilderwithDeadline(FileRequestDeadline deadline)Set value for optional field.CreateBuilderwithDescription(java.lang.String description)Set value for optional field.CreateBuilderwithOpen(java.lang.Boolean open)Set value for optional field.
-
-
-
Method Detail
-
withDeadline
public CreateBuilder withDeadline(FileRequestDeadline deadline)
Set value for optional field.- Parameters:
deadline- The deadline for the file request. Deadlines can only be set by Professional and Business accounts.- Returns:
- this builder
-
withOpen
public CreateBuilder withOpen(java.lang.Boolean open)
Set value for optional field.If left unset or set to
null, defaults totrue.- Parameters:
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 totruewhen set tonull.- Returns:
- this builder
-
withDescription
public CreateBuilder withDescription(java.lang.String description)
Set value for optional field.- Parameters:
description- A description of the file request.- Returns:
- this builder
-
start
public FileRequest start() throws CreateFileRequestErrorException, DbxException
Issues the request.
-
-