类 CompleteMultipartUploadRequest


  • public class CompleteMultipartUploadRequest
    extends GenericUploadRequest
    Container for the parameters of the CompleteMultipartUpload operation.

    Required Parameters: BucketName, Key, UploadId, ObjectMetadata, PartETags

    • 构造器详细资料

      • 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.
    • 方法详细资料

      • 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.