|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.baidubce.model.AbstractBceRequest
com.baidubce.services.bos.model.GenericBucketRequest
com.baidubce.services.bos.model.GenericObjectRequest
com.baidubce.services.bos.model.GenericUploadRequest
com.baidubce.services.bos.model.CompleteMultipartUploadRequest
public class CompleteMultipartUploadRequest
Container for the parameters of the CompleteMultipartUpload operation.
Required Parameters: BucketName, Key, UploadId, ObjectMetadata, PartETags
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class com.baidubce.services.bos.model.GenericUploadRequest |
---|
getUploadId, setUploadId |
Methods inherited from class com.baidubce.services.bos.model.GenericObjectRequest |
---|
getKey, setKey |
Methods inherited from class com.baidubce.services.bos.model.GenericBucketRequest |
---|
getBucketName, setBucketName |
Methods inherited from class com.baidubce.model.AbstractBceRequest |
---|
getRequestCredentials, setRequestCredentials |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public 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.Method Detail |
---|
public CompleteMultipartUploadRequest withRequestCredentials(BceCredentials credentials)
withRequestCredentials
in class AbstractBceRequest
public CompleteMultipartUploadRequest withBucketName(String bucketName)
withBucketName
in class GenericBucketRequest
bucketName
- The name of the bucket containing the multipart upload to complete.
public CompleteMultipartUploadRequest withKey(String key)
withKey
in class GenericObjectRequest
key
- The key under which the multipart upload to complete is stored.
public CompleteMultipartUploadRequest withUploadId(String uploadId)
withUploadId
in class GenericUploadRequest
uploadId
- 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |