类 UploadPartCopyRequest


  • public class UploadPartCopyRequest
    extends GenericUploadRequest
    Contains the parameters used for the UploadPartCopy operation on Baidu Bos.

    Required Parameters: BucketName, Key, sourceBucketName, sourcetkey, UploadId, PartNumber, partSize, offSet

    • 构造器详细资料

      • UploadPartCopyRequest

        public UploadPartCopyRequest()
      • UploadPartCopyRequest

        public UploadPartCopyRequest​(String bucketName,
                                     String key,
                                     String sourcetBucketName,
                                     String sourcetkey,
                                     String uploadId,
                                     int partNumber,
                                     long partSize,
                                     long offSet)
        Constructs a new UploadPartCopyRequest object to copy a stream of data to the specified bucket and key,
        参数:
        bucketName - The name of the bucket containing the initiated multipart upload with which this new part will be associated.
        key - The key of the initiated multipart upload.
        sourcetBucketName - The sourceBucketName describing the source bucket for uploadCopyPart operation.
        sourcetkey - The sourcetkey describing the source object for uploadCopyPart operation.
        uploadId - The ID of an existing, initiated multipart upload, with which this new part will be associated.
        partNumber - The part number describing this part's position relative to the other parts in the multipart upload. Part number must be between 1 and 10,000 (inclusive).
        partSize - The size of this part, in bytes.
        offSet - The offset describing skipBytes for this object in bytes.
    • 方法详细资料

      • getxBceCrc

        public String getxBceCrc()
      • setxBceCrc

        public void setxBceCrc​(String xBceCrc)
      • withBucketName

        public UploadPartCopyRequest withBucketName​(String bucketName)
        Sets the name of the bucket containing the existing, initiated multipart upload, with which this new part will be associated, and returns this updated object so that additional method calls can be chained together.
        指定者:
        withBucketName 在类中 GenericBucketRequest
        参数:
        bucketName - the name of the bucket containing the existing, initiated multipart upload, with which this new part will be associated.
        返回:
        This updated UploadPartCopyRequest object.
      • withKey

        public UploadPartCopyRequest withKey​(String key)
        Sets the key of the initiated multipart upload, and returns this updated object so that additional method calls can be chained together.
        指定者:
        withKey 在类中 GenericObjectRequest
        参数:
        key - the key of the initiated multipart upload.
        返回:
        This updated UploadPartCopyRequest object.
      • withUploadId

        public UploadPartCopyRequest withUploadId​(String uploadId)
        Sets the ID of the existing, initiated multipart upload with which this new part will be associated, and returns this updated UploadPartRequest object so that additional method calls can be chained together.
        指定者:
        withUploadId 在类中 GenericUploadRequest
        参数:
        uploadId - the ID of the existing, initiated multipart upload with which this new part will be associated.
        返回:
        This updated UploadPartCopyRequest object.
      • getPartNumber

        public int getPartNumber()
        Returns the part number describing this part's position relative to the other parts in the multipart upload. Part number must be between 1 and 10,000 (inclusive).
        返回:
        the part number describing this part's position relative to the other parts in the multipart upload. Part number must be between 1 and 10,000 (inclusive).
      • setPartNumber

        public void setPartNumber​(int partNumber)
        Sets the part number describing this part's position relative to the other parts in the multipart upload. Part number must be between 1 and 10,000 (inclusive).
        参数:
        partNumber - the part number describing this part's position relative to the other parts in the multipart upload. Part number must be between 1 and 10,000 (inclusive).
      • getPartSize

        public long getPartSize()
        Returns the size of this part, in bytes.
        返回:
        the size of this part, in bytes.
      • setPartSize

        public void setPartSize​(long partSize)
        Sets the size of this part, in bytes.
        参数:
        partSize - the size of this part, in bytes.
      • getOffSet

        public long getOffSet()
      • setOffSet

        public void setOffSet​(long offSet)
      • getSourceBucketName

        public String getSourceBucketName()
      • setSourceBucketName

        public void setSourceBucketName​(String sourceBucketName)
      • getSourceKey

        public String getSourceKey()
      • setSourceKey

        public void setSourceKey​(String sourcetkey)
      • getTrafficLimitBitPS

        public long getTrafficLimitBitPS()
        Gets the limit of put object speed.
        返回:
        the limit of put object speed. unit: bit/s
      • setTrafficLimitBitPS

        public void setTrafficLimitBitPS​(long trafficLimitBitPS)
        Sets Gets the limit of put object speed. range: 819200 bit/s ~ 838860800 bit/s
        参数:
        trafficLimitBitPS - the limit of put object speed. unit: bit/s
      • withTrafficLimitBitPS

        public UploadPartCopyRequest withTrafficLimitBitPS​(long trafficLimitBitPS)
        参数:
        trafficLimitBitPS - the limit of put object speed. unit: bit/s, range: 819200 bit/s ~ 838860800 bit/s
        返回:
        This PutObjectRequest, so that additional method calls can be chained together