Class FileRequest.Builder

java.lang.Object
com.dropbox.core.v2.filerequests.FileRequest.Builder
Enclosing class:
FileRequest

public static class FileRequest.Builder extends Object
Builder for FileRequest.
  • Field Details

    • id

      protected final String id
    • url

      protected final String url
    • title

      protected final String title
    • created

      protected final Date created
    • isOpen

      protected final boolean isOpen
    • fileCount

      protected final long fileCount
    • destination

      protected String destination
    • deadline

      protected FileRequestDeadline deadline
    • description

      protected String description
    • videoProjectId

      protected String videoProjectId
  • Constructor Details

    • Builder

      protected Builder(String id, String url, String title, Date created, boolean isOpen, long fileCount)
  • Method Details

    • withDestination

      public FileRequest.Builder withDestination(String destination)
      Set value for optional field.
      Parameters:
      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])*".
      Returns:
      this builder
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
    • withDeadline

      public FileRequest.Builder withDeadline(FileRequestDeadline deadline)
      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

      public FileRequest.Builder withDescription(String description)
      Set value for optional field.
      Parameters:
      description - A description of the file request.
      Returns:
      this builder
    • withVideoProjectId

      public FileRequest.Builder withVideoProjectId(String videoProjectId)
      Set value for optional field.
      Parameters:
      videoProjectId - If this request was created from video project, its id.
      Returns:
      this builder
    • build

      public FileRequest build()
      Builds an instance of FileRequest configured with this builder's values
      Returns:
      new instance of FileRequest