Package com.dropbox.core.v2.files
Class ExportInfo.Builder
- java.lang.Object
-
- com.dropbox.core.v2.files.ExportInfo.Builder
-
- Enclosing class:
- ExportInfo
public static class ExportInfo.Builder extends java.lang.ObjectBuilder forExportInfo.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringexportAsprotected java.util.List<java.lang.String>exportOptions
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExportInfobuild()Builds an instance ofExportInfoconfigured with this builder's valuesExportInfo.BuilderwithExportAs(java.lang.String exportAs)Set value for optional field.ExportInfo.BuilderwithExportOptions(java.util.List<java.lang.String> exportOptions)Set value for optional field.
-
-
-
Method Detail
-
withExportAs
public ExportInfo.Builder withExportAs(java.lang.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(java.util.List<java.lang.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 anullitem.- Returns:
- this builder
- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
-
build
public ExportInfo build()
Builds an instance ofExportInfoconfigured with this builder's values- Returns:
- new instance of
ExportInfo
-
-