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 Summary
Modifier and TypeMethodDescriptionfileLastModified
(Instant fileLastModified) Sets the last modified time of the objectfileLength
(Long fileLength) Sets the file lengthmultipartUploadId
(String multipartUploadId) Sets multipart ID associated with this transferpartSizeInBytes
(Long partSizeInBytes) The part size associated with this transfertotalParts
(Long totalParts) Sets the total number of partstransferredParts
(Long transferredParts) Set the total number of parts transferreddefault ResumableFileUpload.Builder
uploadFileRequest
(Consumer<UploadFileRequest.Builder> uploadFileRequestBuilder) TheUploadFileRequest
requestuploadFileRequest
(UploadFileRequest uploadFileRequest) Sets the upload file requestMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Method Details
-
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) TheUploadFileRequest
requestThis is a convenience method that creates an instance of the
UploadFileRequest
builder avoiding the need to create one manually viaUploadFileRequest.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
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
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
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
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
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
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.
-