Package com.dropbox.core.v2.files
Class ExportMetadata.Builder
- java.lang.Object
-
- com.dropbox.core.v2.files.ExportMetadata.Builder
-
- Enclosing class:
- ExportMetadata
public static class ExportMetadata.Builder extends java.lang.Object
Builder forExportMetadata
.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
exportHash
protected java.lang.String
name
protected java.lang.Long
paperRevision
protected long
size
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder(java.lang.String name, long size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExportMetadata
build()
Builds an instance ofExportMetadata
configured with this builder's valuesExportMetadata.Builder
withExportHash(java.lang.String exportHash)
Set value for optional field.ExportMetadata.Builder
withPaperRevision(java.lang.Long paperRevision)
Set value for optional field.
-
-
-
Method Detail
-
withExportHash
public ExportMetadata.Builder withExportHash(java.lang.String exportHash)
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:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
withPaperRevision
public ExportMetadata.Builder withPaperRevision(java.lang.Long paperRevision)
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
public ExportMetadata build()
Builds an instance ofExportMetadata
configured with this builder's values- Returns:
- new instance of
ExportMetadata
-
-