Class UploadPartRequest.Builder
java.lang.Object
com.google.cloud.storage.multipartupload.model.UploadPartRequest.Builder
- Enclosing class:
- UploadPartRequest
A builder for
UploadPartRequest.- Since:
- 2.60.0
-
Method Summary
Modifier and TypeMethodDescriptionSets the bucket to upload the part to.build()Builds theUploadPartRequest.Sets the CRC32C checksum of the part to upload.Sets the key of the object to upload the part to.partNumber(int partNumber) Sets the part number of the part to upload.Sets the upload ID of the multipart upload.userProject(String userProject) Sets the user-project.
-
Method Details
-
bucket
Sets the bucket to upload the part to.- Parameters:
bucket- The bucket to upload the part to.- Returns:
- This builder.
- Since:
- 2.60.0
-
key
Sets the key of the object to upload the part to.- Parameters:
key- The key of the object to upload the part to.- Returns:
- This builder.
- Since:
- 2.60.0
-
partNumber
Sets the part number of the part to upload.- Parameters:
partNumber- The part number of the part to upload.- Returns:
- This builder.
- Since:
- 2.60.0
-
uploadId
Sets the upload ID of the multipart upload.- Parameters:
uploadId- The upload ID of the multipart upload.- Returns:
- This builder.
- Since:
- 2.60.0
-
crc32c
Sets the CRC32C checksum of the part to upload.- Parameters:
crc32c- The CRC32C checksum of the part to upload.- Returns:
- This builder.
- Since:
- 2.61.0
-
userProject
Sets the user-project.- Parameters:
userProject- The user-project.- Returns:
- This builder.
- Since:
- 2.61.0
- See Also:
-
build
Builds theUploadPartRequest.- Returns:
- The built
UploadPartRequest. - Since:
- 2.60.0
-