Class UploadObjectRequest

    • Method Detail

      • getPartSize

        public long getPartSize()
        Returns the part-size used for muti-part upload for this request. This part size will be used as a reference for the multi-part uploads but the physical part size may vary.
      • withPartSize

        public UploadObjectRequest withPartSize​(long partSize)
        Configured the part size for multi-part upload. Must be at least MIN_PART_SIZE. This part size will be used as a reference for the multi-part uploads but the physical part size may vary.
        Returns:
        this object for method chaining purposes
      • getDiskLimit

        public long getDiskLimit()
        Returns the maximum size (in bytes) of additional disk space that will be consumed for this request; or Long.MAX_VALUE if there is no limit.
      • withDiskLimit

        public UploadObjectRequest withDiskLimit​(long diskLimit)
        Configured the maximum disk space (in bytes) that will be consumed for this request. The maximum disk space must be at least twice the size of partSize.
        Returns:
        this object for method chaining purposes
      • getExecutorService

        public ExecutorService getExecutorService()
        Returns a custom executor service for concurrent uploads; or null there is no customization.
      • withExecutorService

        public UploadObjectRequest withExecutorService​(ExecutorService executorService)
        Configure a custom executor service for concurrent uploads.
        Returns:
        this object for method chaining purposes
      • getMultiFileOutputStream

        public com.amazonaws.services.s3.internal.MultiFileOutputStream getMultiFileOutputStream()
        Returns a custom multi-file output stream; or null if the default is to be used.
      • withMultiFileOutputStream

        public UploadObjectRequest withMultiFileOutputStream​(com.amazonaws.services.s3.internal.MultiFileOutputStream multiFileOutputStream)
        Configure a custom multi-file output stream; or null if the default is to be used.
        Returns:
        this object for method chaining purposes
      • getUploadObjectObserver

        public UploadObjectObserver getUploadObjectObserver()
        Returns a custom upload-object observer; or null there is no customization.
      • withUploadObjectObserver

        public UploadObjectRequest withUploadObjectObserver​(UploadObjectObserver uploadObjectObserver)
        Configure a custom upload-object observer; or null if the default is to be used.
        Returns:
        this object for method chaining purposes
      • setMaterialsDescription

        public void setMaterialsDescription​(Map<String,​String> materialsDescription)
        Sets the materials description for the encryption materials to be used with the current request.
        Parameters:
        materialsDescription - the materialsDescription to set
      • getUploadPartMetadata

        public ObjectMetadata getUploadPartMetadata()
        Gets the optional metadata to be included in each UploadPart request.
      • setUploadPartMetadata

        public void setUploadPartMetadata​(ObjectMetadata partUploadMetadata)
        Sets the optional metadata to be included in each UploadPart request.