Class FileRequest.Builder

  • Enclosing class:
    FileRequest

    public static class FileRequest.Builder
    extends java.lang.Object
    Builder for FileRequest.
    • Field Detail

      • id

        protected final java.lang.String id
      • url

        protected final java.lang.String url
      • title

        protected final java.lang.String title
      • created

        protected final java.util.Date created
      • isOpen

        protected final boolean isOpen
      • fileCount

        protected final long fileCount
      • destination

        protected java.lang.String destination
      • description

        protected java.lang.String description
    • Constructor Detail

      • Builder

        protected Builder​(java.lang.String id,
                          java.lang.String url,
                          java.lang.String title,
                          java.util.Date created,
                          boolean isOpen,
                          long fileCount)
    • Method Detail

      • withDestination

        public FileRequest.Builder withDestination​(java.lang.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:
        java.lang.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​(java.lang.String description)
        Set value for optional field.
        Parameters:
        description - A description of the file request.
        Returns:
        this builder