Package com.dropbox.core.v2.files
Class UploadSessionFinishArg
- java.lang.Object
- 
- com.dropbox.core.v2.files.UploadSessionFinishArg
 
- 
 public class UploadSessionFinishArg extends java.lang.Object
- 
- 
Field SummaryFields Modifier and Type Field Description protected CommitInfocommitprotected java.lang.StringcontentHashprotected UploadSessionCursorcursor
 - 
Constructor SummaryConstructors Constructor Description UploadSessionFinishArg(UploadSessionCursor cursor, CommitInfo commit)NoneUploadSessionFinishArg(UploadSessionCursor cursor, CommitInfo commit, java.lang.String contentHash)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)CommitInfogetCommit()Contains the path and other optional modifiers for the commit.java.lang.StringgetContentHash()A hash of the file content uploaded in this call.UploadSessionCursorgetCursor()Contains the upload session ID and the offset.inthashCode()java.lang.StringtoString()java.lang.StringtoStringMultiline()Returns a String representation of this object formatted for easier readability.
 
- 
- 
- 
Field Detail- 
cursorprotected final UploadSessionCursor cursor 
 - 
commitprotected final CommitInfo commit 
 - 
contentHashprotected final java.lang.String contentHash 
 
- 
 - 
Constructor Detail- 
UploadSessionFinishArgpublic UploadSessionFinishArg(UploadSessionCursor cursor, CommitInfo commit, java.lang.String contentHash) - Parameters:
- cursor- Contains the upload session ID and the offset. Must not be- null.
- commit- Contains the path and other optional modifiers for the commit. Must not be- null.
- contentHash- A hash of the file content uploaded in this call. If provided and the uploaded content does not match this hash, an error will be returned. For more information see our Content hash page. Must have length of at least 64 and have length of at most 64.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
UploadSessionFinishArgpublic UploadSessionFinishArg(UploadSessionCursor cursor, CommitInfo commit) NoneThe default values for unset fields will be used. - Parameters:
- cursor- Contains the upload session ID and the offset. Must not be- null.
- commit- Contains the path and other optional modifiers for the commit. Must not be- null.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 
- 
 - 
Method Detail- 
getCursorpublic UploadSessionCursor getCursor() Contains the upload session ID and the offset.- Returns:
- value for this field, never null.
 
 - 
getCommitpublic CommitInfo getCommit() Contains the path and other optional modifiers for the commit.- Returns:
- value for this field, never null.
 
 - 
getContentHashpublic java.lang.String getContentHash() A hash of the file content uploaded in this call. If provided and the uploaded content does not match this hash, an error will be returned. For more information see our Content hash page.- Returns:
- value for this field, or nullif not present.
 
 - 
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
 
 
- 
 
-