Class UploadFileChunkRequest

java.lang.Object
ai.nightfall.scan.model.UploadFileChunkRequest

public class UploadFileChunkRequest extends Object
An object representing a request to upload a chunk of file data to the Nightfall API.
  • Constructor Details

    • UploadFileChunkRequest

      public UploadFileChunkRequest(UUID fileUploadID, long fileOffset)
      Create a new instance of a file chunk upload request.
      Parameters:
      fileUploadID - the ID of the file
      fileOffset - the offset at which to upload bytes
    • UploadFileChunkRequest

      public UploadFileChunkRequest(UUID fileUploadID, long fileOffset, byte[] content)
      Create a new instance of a file chunk upload request.
      Parameters:
      fileUploadID - the ID of the file
      fileOffset - the offset at which to upload bytes
      content - the payload bytes to upload
  • Method Details

    • getFileUploadID

      public UUID getFileUploadID()
      Get the file ID.
      Returns:
      the file ID
    • getFileOffset

      public long getFileOffset()
      Get the file offset.
      Returns:
      the offset at which to upload bytes
    • getContent

      public byte[] getContent()
      Get the request payload.
      Returns:
      the payload bytes to upload
    • setContent

      public void setContent(byte[] content)
      Set the request payload.
      Parameters:
      content - the content to upload