Package com.dropbox.core.v2.files
Class ExportMetadata.Builder
java.lang.Object
com.dropbox.core.v2.files.ExportMetadata.Builder
- Enclosing class:
ExportMetadata
Builder for
ExportMetadata.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an instance ofExportMetadataconfigured with this builder's valueswithExportHash(String exportHash) Set value for optional field.withPaperRevision(Long paperRevision) Set value for optional field.
-
Field Details
-
name
-
size
protected final long size -
exportHash
-
paperRevision
-
-
Constructor Details
-
Builder
-
-
Method Details
-
withExportHash
Set value for optional field.- Parameters:
exportHash- A hash based on the exported file content. This field can be used to verify data integrity. Similar to content hash. For more information see our Content hash page. Must have length of at least 64 and have length of at most 64.- Returns:
- this builder
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
withPaperRevision
Set value for optional field.- Parameters:
paperRevision- If the file is a Paper doc, this gives the latest doc revision which can be used inDbxUserFilesRequests.paperUpdate(String,ImportFormat,PaperDocUpdatePolicy,Long).- Returns:
- this builder
-
build
Builds an instance ofExportMetadataconfigured with this builder's values- Returns:
- new instance of
ExportMetadata
-