Class PreviewResult.Builder

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

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

  • Constructor Details

    • Builder

      protected Builder()
  • Method Details

    • withFileMetadata

      public PreviewResult.Builder withFileMetadata(FileMetadata fileMetadata)
      Set value for optional field.
      Parameters:
      fileMetadata - Metadata corresponding to the file received as an argument. Will be populated if the endpoint is called with a path (ReadPath).
      Returns:
      this builder
    • withLinkMetadata

      public PreviewResult.Builder withLinkMetadata(MinimalFileLinkMetadata linkMetadata)
      Set value for optional field.
      Parameters:
      linkMetadata - Minimal metadata corresponding to the file received as an argument. Will be populated if the endpoint is called using a shared link (SharedLinkFileInfo).
      Returns:
      this builder
    • build

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