public class CompleteMultipartUploadRequest extends GenericUploadRequest
Required Parameters: BucketName, Key, UploadId, ObjectMetadata, PartETags
| Constructor and Description |
|---|
CompleteMultipartUploadRequest() |
CompleteMultipartUploadRequest(String bucketName,
String key,
String uploadId,
List<PartETag> partETags)
Constructs a new request to complete a multipart upload.
|
CompleteMultipartUploadRequest(String bucketName,
String key,
String uploadId,
List<PartETag> partETags,
ObjectMetadata objectMetadata)
Constructs a new request to complete a multipart upload.
|
| Modifier and Type | Method and Description |
|---|---|
ObjectMetadata |
getObjectMetadata()
Gets the optional metadata instructing Baidu Bos how to handle the uploaded data.
|
List<PartETag> |
getPartETags()
Returns the list of part numbers and ETags that identify the individual
parts of the multipart upload to complete.
|
void |
setObjectMetadata(ObjectMetadata objectMetadata)
Sets the optional metadata instructing Baidu Bos how to handle the uploaded data.
|
void |
setPartETags(List<PartETag> partETags)
Sets the list of part numbers and ETags that identify the individual
parts of the multipart upload to complete.
|
CompleteMultipartUploadRequest |
withBucketName(String bucketName)
Sets the name of the bucket containing the multipart upload to complete,
and returns this updated CompleteMultipartUploadRequest so that
additional method calls can be chained together.
|
CompleteMultipartUploadRequest |
withKey(String key)
Sets the key under which the multipart upload to complete is stored, and
returns this updated CompleteMultipartUploadRequest object so that
additional method calls can be chained together.
|
CompleteMultipartUploadRequest |
withObjectMetadata(ObjectMetadata objectMetadata)
Sets the optional metadata instructing Baidu Bos how to handle the uploaded data .
|
CompleteMultipartUploadRequest |
withPartETags(List<PartETag> partETags)
Sets the list of part numbers and ETags that identify the individual
parts of the multipart upload to complete, and returns this updated
CompleteMultipartUploadRequest object so that additional method calls can be chained.
|
CompleteMultipartUploadRequest |
withRequestCredentials(BceCredentials credentials) |
CompleteMultipartUploadRequest |
withUploadId(String uploadId)
Sets the ID of the multipart upload to complete, and returns this updated
CompleteMultipartUploadRequest object so that additional method calls can
be chained together.
|
getUploadId, setUploadIdgetKey, setKeygetBucketName, setBucketNamegetRequestCredentials, setRequestCredentialspublic CompleteMultipartUploadRequest()
public CompleteMultipartUploadRequest(String bucketName, String key, String uploadId, List<PartETag> partETags)
bucketName - The name of the bucket containing the multipart upload to complete.key - The key of the multipart upload to complete.uploadId - The ID of the multipart upload to complete.partETags - The list of part numbers and ETags to use when completing the multipart upload.public CompleteMultipartUploadRequest(String bucketName, String key, String uploadId, List<PartETag> partETags, ObjectMetadata objectMetadata)
bucketName - The name of the bucket containing the multipart upload to complete.key - The key of the multipart upload to complete.uploadId - The ID of the multipart upload to complete.partETags - The list of part numbers and ETags to use when completing the multipart upload.objectMetadata - The optional metadata instructing Baidu Bos how to handle the uploaded data.public CompleteMultipartUploadRequest withRequestCredentials(BceCredentials credentials)
withRequestCredentials in class AbstractBceRequestpublic CompleteMultipartUploadRequest withBucketName(String bucketName)
withBucketName in class GenericBucketRequestbucketName - The name of the bucket containing the multipart upload to complete.public CompleteMultipartUploadRequest withKey(String key)
withKey in class GenericObjectRequestkey - The key under which the multipart upload to complete is stored.public CompleteMultipartUploadRequest withUploadId(String uploadId)
withUploadId in class GenericUploadRequestuploadId - The ID of the multipart upload to complete.public ObjectMetadata getObjectMetadata()
public void setObjectMetadata(ObjectMetadata objectMetadata)
objectMetadata - The optional metadata instructing Baidu Bos how to handle the uploaded data.public CompleteMultipartUploadRequest withObjectMetadata(ObjectMetadata objectMetadata)
objectMetadata - The optional metadata instructing Baidu Bos how to handle the uploaded data.public List<PartETag> getPartETags()
public void setPartETags(List<PartETag> partETags)
partETags - The list of part numbers and ETags that identify the
individual parts of the multipart upload to complete.public CompleteMultipartUploadRequest withPartETags(List<PartETag> partETags)
partETags - The list of part numbers and ETags that identify the
individual parts of the multipart upload to complete.Copyright © 2021. All rights reserved.