Class ExportInfo.Builder

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

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

    • exportAs

      protected String exportAs
    • exportOptions

      protected List<String> exportOptions
  • Constructor Details

    • Builder

      protected Builder()
  • Method Details

    • withExportAs

      public ExportInfo.Builder withExportAs(String exportAs)
      Set value for optional field.
      Parameters:
      exportAs - Format to which the file can be exported to.
      Returns:
      this builder
    • withExportOptions

      public ExportInfo.Builder withExportOptions(List<String> exportOptions)
      Set value for optional field.
      Parameters:
      exportOptions - Additional formats to which the file can be exported. These values can be specified as the export_format in /files/export. Must not contain a null item.
      Returns:
      this builder
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
    • build

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