public static final class MultipartUpload.BuilderA builder for MultipartUpload.
Methods
build()
public MultipartUpload build()Builds the multipart upload.
| Returns | |
|---|---|
| Type | Description |
MultipartUpload |
The built multipart upload. |
initiated(OffsetDateTime initiated)
public MultipartUpload.Builder initiated(OffsetDateTime initiated)Sets the date and time at which the multipart upload was initiated.
| Parameter | |
|---|---|
| Name | Description |
initiated |
OffsetDateTimeThe initiation date and time. |
| Returns | |
|---|---|
| Type | Description |
MultipartUpload.Builder |
This builder. |
key(String key)
public MultipartUpload.Builder key(String key)Sets the object name for which the multipart upload was initiated.
| Parameter | |
|---|---|
| Name | Description |
key |
StringThe object name. |
| Returns | |
|---|---|
| Type | Description |
MultipartUpload.Builder |
This builder. |
storageClass(StorageClass storageClass)
public MultipartUpload.Builder storageClass(StorageClass storageClass)Sets the storage class of the object.
| Parameter | |
|---|---|
| Name | Description |
storageClass |
StorageClassThe storage class. |
| Returns | |
|---|---|
| Type | Description |
MultipartUpload.Builder |
This builder. |
uploadId(String uploadId)
public MultipartUpload.Builder uploadId(String uploadId)Sets the ID of the multipart upload.
| Parameter | |
|---|---|
| Name | Description |
uploadId |
StringThe upload ID. |
| Returns | |
|---|---|
| Type | Description |
MultipartUpload.Builder |
This builder. |