Class MultipartUpload.Builder
java.lang.Object
com.google.cloud.storage.multipartupload.model.MultipartUpload.Builder
- Enclosing class:
- MultipartUpload
A builder for
MultipartUpload.- Since:
- 2.61.0 This new api is in preview and is subject to breaking changes.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the multipart upload.initiated(OffsetDateTime initiated) Sets the date and time at which the multipart upload was initiated.Sets the object name for which the multipart upload was initiated.storageClass(StorageClass storageClass) Sets the storage class of the object.Sets the ID of the multipart upload.
-
Method Details
-
key
Sets the object name for which the multipart upload was initiated.- Parameters:
key- The object name.- Returns:
- This builder.
- Since:
- 2.61.0 This new api is in preview and is subject to breaking changes.
-
uploadId
Sets the ID of the multipart upload.- Parameters:
uploadId- The upload ID.- Returns:
- This builder.
- Since:
- 2.61.0 This new api is in preview and is subject to breaking changes.
-
storageClass
Sets the storage class of the object.- Parameters:
storageClass- The storage class.- Returns:
- This builder.
- Since:
- 2.61.0 This new api is in preview and is subject to breaking changes.
-
initiated
Sets the date and time at which the multipart upload was initiated.- Parameters:
initiated- The initiation date and time.- Returns:
- This builder.
- Since:
- 2.61.0 This new api is in preview and is subject to breaking changes.
-
build
Builds the multipart upload.- Returns:
- The built multipart upload.
- Since:
- 2.61.0 This new api is in preview and is subject to breaking changes.
-