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.ObjectBuilder forExportMetadata.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringexportHashprotected java.lang.Stringnameprotected java.lang.LongpaperRevisionprotected longsize
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder(java.lang.String name, long size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExportMetadatabuild()Builds an instance ofExportMetadataconfigured with this builder's valuesExportMetadata.BuilderwithExportHash(java.lang.String exportHash)Set value for optional field.ExportMetadata.BuilderwithPaperRevision(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 ofExportMetadataconfigured with this builder's values- Returns:
- new instance of
ExportMetadata
-
-