Package com.dropbox.core.v2.files
Class ExportMetadata
- java.lang.Object
- 
- com.dropbox.core.v2.files.ExportMetadata
 
- 
 public class ExportMetadata extends java.lang.Object
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classExportMetadata.BuilderBuilder forExportMetadata.
 - 
Field SummaryFields Modifier and Type Field Description protected java.lang.StringexportHashprotected java.lang.Stringnameprotected java.lang.LongpaperRevisionprotected longsize
 - 
Constructor SummaryConstructors Constructor Description ExportMetadata(java.lang.String name, long size)NoneExportMetadata(java.lang.String name, long size, java.lang.String exportHash, java.lang.Long paperRevision)UsenewBuilder(java.lang.String,long)to create instances of this class without specifying values for all optional fields.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetExportHash()A hash based on the exported file content.java.lang.StringgetName()The last component of the path (including extension).java.lang.LonggetPaperRevision()If the file is a Paper doc, this gives the latest doc revision which can be used inDbxUserFilesRequests.paperUpdate(String,ImportFormat,PaperDocUpdatePolicy,Long).longgetSize()The file size in bytes.inthashCode()static ExportMetadata.BuildernewBuilder(java.lang.String name, long size)Returns a new builder for creating an instance of this class.java.lang.StringtoString()java.lang.StringtoStringMultiline()Returns a String representation of this object formatted for easier readability.
 
- 
- 
- 
Constructor Detail- 
ExportMetadatapublic ExportMetadata(java.lang.String name, long size, java.lang.String exportHash, java.lang.Long paperRevision)UsenewBuilder(java.lang.String,long)to create instances of this class without specifying values for all optional fields.- Parameters:
- name- The last component of the path (including extension). This never contains a slash. Must not be- null.
- size- The file size in bytes.
- 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.
- 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).
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
ExportMetadatapublic ExportMetadata(java.lang.String name, long size)NoneThe default values for unset fields will be used. - Parameters:
- name- The last component of the path (including extension). This never contains a slash. Must not be- null.
- size- The file size in bytes.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 
- 
 - 
Method Detail- 
getNamepublic java.lang.String getName() The last component of the path (including extension). This never contains a slash.- Returns:
- value for this field, never null.
 
 - 
getSizepublic long getSize() The file size in bytes.- Returns:
- value for this field.
 
 - 
getExportHashpublic java.lang.String getExportHash() 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.- Returns:
- value for this field, or nullif not present.
 
 - 
getPaperRevisionpublic java.lang.Long getPaperRevision() If the file is a Paper doc, this gives the latest doc revision which can be used inDbxUserFilesRequests.paperUpdate(String,ImportFormat,PaperDocUpdatePolicy,Long).- Returns:
- value for this field, or nullif not present.
 
 - 
newBuilderpublic static ExportMetadata.Builder newBuilder(java.lang.String name, long size) Returns a new builder for creating an instance of this class.- Parameters:
- name- The last component of the path (including extension). This never contains a slash. Must not be- null.
- size- The file size in bytes.
- Returns:
- builder for this class.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
toStringMultilinepublic java.lang.String toStringMultiline() Returns a String representation of this object formatted for easier readability.The returned String may contain newlines. - Returns:
- Formatted, multiline String representation of this object
 
 
- 
 
-