Class UploadResult.Builder
java.lang.Object
com.google.cloud.storage.transfermanager.UploadResult.Builder
- Enclosing class:
- UploadResult
Builds an instance of UploadResult
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Creates an UploadResult object.setException
(@NonNull Exception exception) Sets the exception produced by a failed upload operation.Sets theBlobInfo
for the object request for upload.setStatus
(@NonNull TransferStatus status) Sets the Status of the Upload request.setUploadedBlob
(@NonNull BlobInfo uploadedBlob) Sets theBlobInfo
for the uploaded object.
-
Method Details
-
setInput
Sets theBlobInfo
for the object request for upload. This field is required.- Returns:
- the Builder instance with the value for BlobInfo modified.
- See Also:
-
setStatus
Sets the Status of the Upload request. This field is required.- Returns:
- the Builder instance with the value for status modified.
- See Also:
-
setUploadedBlob
Sets theBlobInfo
for the uploaded object. This field will only be populated if the Transfer was aSUCCESS
.- Returns:
- the Builder instance with the value for uploadedBlob modified.
-
setException
Sets the exception produced by a failed upload operation. This field will only be populated if the Transfer was notsuccess
ful orskipped
- Returns:
- the Builder instance with the value for exception modified.
- See Also:
-
build
Creates an UploadResult object.- Returns:
UploadResult
-