Class UploadSessionAppendBatchArgEntry

java.lang.Object
com.dropbox.core.v2.files.UploadSessionAppendBatchArgEntry

public class UploadSessionAppendBatchArgEntry extends Object
  • Field Details

    • cursor

      @Nonnull protected final UploadSessionCursor 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 be null.
      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 call DbxUserFilesRequests.uploadSessionAppendBatch(java.util.List,String) anymore with the current session.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
    • UploadSessionAppendBatchArgEntry

      public UploadSessionAppendBatchArgEntry(@Nonnull UploadSessionCursor cursor, long length)
      None

      The default values for unset fields will be used.

      Parameters:
      cursor - Contains the upload session ID and the offset. Must not be null.
      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

      @Nonnull public UploadSessionCursor 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 call DbxUserFilesRequests.uploadSessionAppendBatch(java.util.List,String) anymore with the current session.
      Returns:
      value for this field, or null if not present. Defaults to false.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toStringMultiline

      public 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