Class FileCopyRequest

java.lang.Object
com.morpheusdata.request.FileCopyRequest

public class FileCopyRequest extends Object
Request object for file copy operations.
  • Field Details

    • fileName

      public String fileName
      Name of the file for the file copy request URL. Must not be null.
    • user

      public User user
      The user initiating the request. Must not be null.
    • sourceStream

      public InputStream sourceStream
      Source InputStream to copy. Must not be null.
    • contentLength

      public Long contentLength
      Size of the file to be copied. Must not be null.
    • timeout

      public Long timeout
      Max timeout in milliseconds to initialize the copy operation.
    • autoExpand

      public Boolean autoExpand
      Automatically expand .tar.gz compressed files during upload.
    • contentType

      public String contentType
      Override the default application/octet-stream content type when serving the file.
    • cloud

      public Cloud cloud
      The cloud (zone) associated with this file copy operation.
  • Constructor Details

    • FileCopyRequest

      public FileCopyRequest()
    • FileCopyRequest

      public FileCopyRequest(String fileName, User user, InputStream sourceStream, Long contentLength)
      Convenience constructor for the most common required fields.
      Parameters:
      fileName - name of the file
      user - the user initiating the request
      sourceStream - source input stream
      contentLength - size of the file