Class DownloadResult.Builder
java.lang.Object
com.google.cloud.storage.transfermanager.DownloadResult.Builder
- Enclosing class:
- DownloadResult
Builds an instance of DownloadResult
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates a DownloadResult object.setException(@NonNull Exception exception) Sets the Exception produced by a failed download operation.Sets theBlobInfofor the object request for download.setOutputDestination(@NonNull Path outputDestination) Sets the location on the Filesystem the object has been written to.setStatus(@NonNull TransferStatus status) Sets the status of the download.This field is required.
-
Method Details
-
setInput
Sets theBlobInfofor the object request for download. This field is required.- Returns:
- the instance of the Builder with the value for input modified.
- See Also:
-
setOutputDestination
Sets the location on the Filesystem the object has been written to. This field will only be populated if the Transfer wassuccessful.- Returns:
- the instance of the Builder with the value for outputDestination modified.
- See Also:
-
setStatus
Sets the status of the download.This field is required.- Returns:
- the instance of the Builder with the value for status modified.
- See Also:
-
setException
Sets the Exception produced by a failed download operation. This field will only be populated if the Transfer was notsuccessful orskipped- Returns:
- the instance of the Builder with the value for exception modified.
- See Also:
-
build
Creates a DownloadResult object.- Returns:
DownloadResult
-