Class SharedLinkFileInfo.Builder

java.lang.Object
com.dropbox.core.v2.files.SharedLinkFileInfo.Builder
Enclosing class:
SharedLinkFileInfo

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

    • url

      protected final String url
    • path

      protected String path
    • password

      protected String password
  • Constructor Details

    • Builder

      protected Builder(String url)
  • Method Details

    • withPath

      public SharedLinkFileInfo.Builder withPath(String path)
      Set value for optional field.
      Parameters:
      path - The path corresponding to a file in a shared link to a folder. Required for shared links to folders.
      Returns:
      this builder
    • withPassword

      public SharedLinkFileInfo.Builder withPassword(String password)
      Set value for optional field.
      Parameters:
      password - Password for the shared link. Required for password-protected shared links to files unless it can be read from a cookie.
      Returns:
      this builder
    • build

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