Interface ResumableFileUpload.Builder

All Superinterfaces:
Buildable, CopyableBuilder<ResumableFileUpload.Builder,ResumableFileUpload>, SdkBuilder<ResumableFileUpload.Builder,ResumableFileUpload>
Enclosing class:
ResumableFileUpload

public static interface ResumableFileUpload.Builder extends CopyableBuilder<ResumableFileUpload.Builder,ResumableFileUpload>
  • Method Details

    • uploadFileRequest

      ResumableFileUpload.Builder uploadFileRequest(UploadFileRequest uploadFileRequest)
      Sets the upload file request
      Parameters:
      uploadFileRequest - the upload file request
      Returns:
      a reference to this object so that method calls can be chained together.
    • uploadFileRequest

      default ResumableFileUpload.Builder uploadFileRequest(Consumer<UploadFileRequest.Builder> uploadFileRequestBuilder)
      The UploadFileRequest request

      This is a convenience method that creates an instance of the UploadFileRequest builder avoiding the need to create one manually via UploadFileRequest.builder().

      Parameters:
      uploadFileRequestBuilder - the upload file request builder
      Returns:
      a reference to this object so that method calls can be chained together.
      See Also:
    • multipartUploadId

      ResumableFileUpload.Builder multipartUploadId(String multipartUploadId)
      Sets multipart ID associated with this transfer
      Parameters:
      multipartUploadId - the multipart ID
      Returns:
      a reference to this object so that method calls can be chained together.
    • fileLastModified

      ResumableFileUpload.Builder fileLastModified(Instant fileLastModified)
      Sets the last modified time of the object
      Parameters:
      fileLastModified - the last modified time of the file
      Returns:
      a reference to this object so that method calls can be chained together.
    • fileLength

      ResumableFileUpload.Builder fileLength(Long fileLength)
      Sets the file length
      Parameters:
      fileLength - the last modified time of the object
      Returns:
      a reference to this object so that method calls can be chained together.
    • totalParts

      ResumableFileUpload.Builder totalParts(Long totalParts)
      Sets the total number of parts
      Parameters:
      totalParts - the total number of parts
      Returns:
      a reference to this object so that method calls can be chained together.
    • transferredParts

      ResumableFileUpload.Builder transferredParts(Long transferredParts)
      Set the total number of parts transferred
      Parameters:
      transferredParts - the number of parts completed
      Returns:
      a reference to this object so that method calls can be chained together.
    • partSizeInBytes

      ResumableFileUpload.Builder partSizeInBytes(Long partSizeInBytes)
      The part size associated with this transfer
      Parameters:
      partSizeInBytes - the part size in bytes
      Returns:
      a reference to this object so that method calls can be chained together.