Package com.dropbox.core.v2.files
Class UploadSessionAppendBatchArgEntry
java.lang.Object
com.dropbox.core.v2.files.UploadSessionAppendBatchArgEntry
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final booleanprotected final UploadSessionCursorprotected final long -
Constructor Summary
ConstructorsConstructorDescriptionUploadSessionAppendBatchArgEntry(UploadSessionCursor cursor, long length) NoneUploadSessionAppendBatchArgEntry(UploadSessionCursor cursor, long length, boolean close) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleangetClose()If true, the current session will be closed, at which point you won't be able to callDbxUserFilesRequests.uploadSessionAppendBatch(java.util.List,String)anymore with the current session.Contains the upload session ID and the offset.longLength in bytes of the data that should be appended for this session.inthashCode()toString()Returns a String representation of this object formatted for easier readability.
-
Field Details
-
cursor
-
length
protected final long length -
close
protected final boolean close
-
-
Constructor Details
-
UploadSessionAppendBatchArgEntry
public UploadSessionAppendBatchArgEntry(@Nonnull UploadSessionCursor cursor, long length, boolean close) - Parameters:
cursor- Contains the upload session ID and the offset. Must not benull.length- Length in bytes of the data that should be appended for this session. Used to split the batched upload data for multiple upload sessions.close- If true, the current session will be closed, at which point you won't be able to callDbxUserFilesRequests.uploadSessionAppendBatch(java.util.List,String)anymore with the current session.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
UploadSessionAppendBatchArgEntry
NoneThe default values for unset fields will be used.
- Parameters:
cursor- Contains the upload session ID and the offset. Must not benull.length- Length in bytes of the data that should be appended for this session. Used to split the batched upload data for multiple upload sessions.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
-
Method Details
-
getCursor
Contains the upload session ID and the offset.- Returns:
- value for this field, never
null.
-
getLength
public long getLength()Length in bytes of the data that should be appended for this session. Used to split the batched upload data for multiple upload sessions.- Returns:
- value for this field.
-
getClose
public boolean getClose()If true, the current session will be closed, at which point you won't be able to callDbxUserFilesRequests.uploadSessionAppendBatch(java.util.List,String)anymore with the current session.- Returns:
- value for this field, or
nullif not present. Defaults to false.
-
hashCode
public int hashCode() -
equals
-
toString
-
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
-