Interface ResumableFileDownload.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<ResumableFileDownload.Builder,ResumableFileDownload>
,SdkBuilder<ResumableFileDownload.Builder,ResumableFileDownload>
- Enclosing class:
- ResumableFileDownload
public static interface ResumableFileDownload.Builder extends CopyableBuilder<ResumableFileDownload.Builder,ResumableFileDownload>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ResumableFileDownload.Builder
bytesTransferred(Long bytesTransferred)
Sets the number of bytes transferreddefault ResumableFileDownload.Builder
downloadFileRequest(Consumer<DownloadFileRequest.Builder> downloadFileRequestBuilder)
TheDownloadFileRequest
requestResumableFileDownload.Builder
downloadFileRequest(DownloadFileRequest downloadFileRequest)
Sets the download file requestResumableFileDownload.Builder
fileLastModified(Instant lastModified)
Sets the last modified time of the objectResumableFileDownload.Builder
s3ObjectLastModified(Instant s3ObjectLastModified)
Sets the last modified time of the objectResumableFileDownload.Builder
totalSizeInBytes(Long totalSizeInBytes)
Sets the total transfer size in bytes-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
-
-
-
Method Detail
-
downloadFileRequest
ResumableFileDownload.Builder downloadFileRequest(DownloadFileRequest downloadFileRequest)
Sets the download file request- Parameters:
downloadFileRequest
- the download file request- Returns:
- a reference to this object so that method calls can be chained together.
-
downloadFileRequest
default ResumableFileDownload.Builder downloadFileRequest(Consumer<DownloadFileRequest.Builder> downloadFileRequestBuilder)
TheDownloadFileRequest
requestThis is a convenience method that creates an instance of the
DownloadFileRequest
builder avoiding the need to create one manually viaDownloadFileRequest.builder()
.- Parameters:
downloadFileRequestBuilder
- the download file request builder- Returns:
- a reference to this object so that method calls can be chained together.
- See Also:
downloadFileRequest(DownloadFileRequest)
-
bytesTransferred
ResumableFileDownload.Builder bytesTransferred(Long bytesTransferred)
Sets the number of bytes transferred- Parameters:
bytesTransferred
- the number of bytes transferred- Returns:
- a reference to this object so that method calls can be chained together.
-
totalSizeInBytes
ResumableFileDownload.Builder totalSizeInBytes(Long totalSizeInBytes)
Sets the total transfer size in bytes- Parameters:
totalSizeInBytes
- the transfer size in bytes- Returns:
- a reference to this object so that method calls can be chained together.
-
s3ObjectLastModified
ResumableFileDownload.Builder s3ObjectLastModified(Instant s3ObjectLastModified)
Sets the last modified time of the object- Parameters:
s3ObjectLastModified
- the last modified time of the object- Returns:
- a reference to this object so that method calls can be chained together.
-
fileLastModified
ResumableFileDownload.Builder fileLastModified(Instant lastModified)
Sets the last modified time of the object- Parameters:
lastModified
- the last modified time of the object- Returns:
- a reference to this object so that method calls can be chained together.
-
-