类 CompleteMultipartUploadRequest
- java.lang.Object
-
- com.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 extends GenericUploadRequest
Container for the parameters of the CompleteMultipartUpload operation.Required Parameters: BucketName, Key, UploadId, ObjectMetadata, PartETags
-
-
字段概要
-
从类继承的字段 com.baidubce.services.bos.model.GenericObjectRequest
trafficLimitBitPS
-
-
构造器概要
构造器 构造器 说明 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.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 ObjectMetadatagetObjectMetadata()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.voidsetObjectMetadata(ObjectMetadata objectMetadata)Sets the optional metadata instructing Baidu Bos how to handle the uploaded data.voidsetPartETags(List<PartETag> partETags)Sets the list of part numbers and ETags that identify the individual parts of the multipart upload to complete.CompleteMultipartUploadRequestwithBucketName(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.CompleteMultipartUploadRequestwithKey(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.CompleteMultipartUploadRequestwithObjectMetadata(ObjectMetadata objectMetadata)Sets the optional metadata instructing Baidu Bos how to handle the uploaded data .CompleteMultipartUploadRequestwithPartETags(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.CompleteMultipartUploadRequestwithRequestCredentials(BceCredentials credentials)CompleteMultipartUploadRequestwithUploadId(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.-
从类继承的方法 com.baidubce.services.bos.model.GenericUploadRequest
getUploadId, setUploadId
-
从类继承的方法 com.baidubce.services.bos.model.GenericObjectRequest
getKey, setKey
-
从类继承的方法 com.baidubce.services.bos.model.GenericBucketRequest
getBucketName, setBucketName
-
从类继承的方法 com.baidubce.model.AbstractBceRequest
getRequestCredentials, setRequestCredentials
-
-
-
-
构造器详细资料
-
CompleteMultipartUploadRequest
public CompleteMultipartUploadRequest()
-
CompleteMultipartUploadRequest
public CompleteMultipartUploadRequest(String bucketName, String key, String uploadId, List<PartETag> partETags)
Constructs a new request to complete a multipart upload.- 参数:
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.
-
CompleteMultipartUploadRequest
public CompleteMultipartUploadRequest(String bucketName, String key, String uploadId, List<PartETag> partETags, ObjectMetadata objectMetadata)
Constructs a new request to complete a multipart upload.- 参数:
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.
-
-
方法详细资料
-
withRequestCredentials
public CompleteMultipartUploadRequest withRequestCredentials(BceCredentials credentials)
- 指定者:
withRequestCredentials在类中AbstractBceRequest
-
withBucketName
public 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.- 指定者:
withBucketName在类中GenericBucketRequest- 参数:
bucketName- The name of the bucket containing the multipart upload to complete.- 返回:
- The updated CompleteMultipartUploadRequest.
-
withKey
public 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.- 指定者:
withKey在类中GenericObjectRequest- 参数:
key- The key under which the multipart upload to complete is stored.- 返回:
- This updated CompleteMultipartUploadRequest object.
-
withUploadId
public 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.- 指定者:
withUploadId在类中GenericUploadRequest- 参数:
uploadId- The ID of the multipart upload to complete.- 返回:
- This updated CompleteMultipartUploadRequest object.
-
getObjectMetadata
public ObjectMetadata getObjectMetadata()
Gets the optional metadata instructing Baidu Bos how to handle the uploaded data.- 返回:
- The optional metadata instructing Baidu Bos how to handle the uploaded data.
-
setObjectMetadata
public void setObjectMetadata(ObjectMetadata objectMetadata)
Sets the optional metadata instructing Baidu Bos how to handle the uploaded data.- 参数:
objectMetadata- The optional metadata instructing Baidu Bos how to handle the uploaded data.
-
withObjectMetadata
public CompleteMultipartUploadRequest withObjectMetadata(ObjectMetadata objectMetadata)
Sets the optional metadata instructing Baidu Bos how to handle the uploaded data . Returns this CompleteMultipartUploadRequest, enabling additional method calls to be chained together.- 参数:
objectMetadata- The optional metadata instructing Baidu Bos how to handle the uploaded data.- 返回:
- Returns this CompleteMultipartUploadRequest, enabling additional method calls to be chained together.
-
getPartETags
public List<PartETag> getPartETags()
Returns the list of part numbers and ETags that identify the individual parts of the multipart upload to complete.- 返回:
- The list of part numbers and ETags that identify the individual parts of the multipart upload to complete.
-
setPartETags
public void setPartETags(List<PartETag> partETags)
Sets the list of part numbers and ETags that identify the individual parts of the multipart upload to complete.- 参数:
partETags- The list of part numbers and ETags that identify the individual parts of the multipart upload to complete.
-
withPartETags
public 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.- 参数:
partETags- The list of part numbers and ETags that identify the individual parts of the multipart upload to complete.- 返回:
- This updated CompleteMultipartUploadRequest object.
-
-