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.Object
Builder forExportInfo
.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
exportAs
protected java.util.List<java.lang.String>
exportOptions
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExportInfo
build()
Builds an instance ofExportInfo
configured with this builder's valuesExportInfo.Builder
withExportAs(java.lang.String exportAs)
Set value for optional field.ExportInfo.Builder
withExportOptions(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 anull
item.- Returns:
- this builder
- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
build
public ExportInfo build()
Builds an instance ofExportInfo
configured with this builder's values- Returns:
- new instance of
ExportInfo
-
-