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 SummaryFields Modifier and Type Field Description protected java.lang.StringexportHashprotected java.lang.Stringnameprotected java.lang.LongpaperRevisionprotected longsize
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedBuilder(java.lang.String name, long size)
 - 
Method SummaryAll 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- 
withExportHashpublic 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.
 
 - 
withPaperRevisionpublic 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 in- DbxUserFilesRequests.paperUpdate(String,ImportFormat,PaperDocUpdatePolicy,Long).
- Returns:
- this builder
 
 - 
buildpublic ExportMetadata build() Builds an instance ofExportMetadataconfigured with this builder's values- Returns:
- new instance of ExportMetadata
 
 
- 
 
-