类 UploadPartCopyRequest
- 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.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
-
-
字段概要
-
从类继承的字段 com.baidubce.services.bos.model.GenericObjectRequest
trafficLimitBitPS
-
-
构造器概要
构造器 构造器 说明 UploadPartCopyRequest()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,
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 longgetOffSet()intgetPartNumber()Returns the part number describing this part's position relative to the other parts in the multipart upload.longgetPartSize()Returns the size of this part, in bytes.StringgetSourceBucketName()StringgetSourceKey()longgetTrafficLimitBitPS()Gets the limit of put object speed.StringgetxBceCrc()voidsetOffSet(long offSet)voidsetPartNumber(int partNumber)Sets the part number describing this part's position relative to the other parts in the multipart upload.voidsetPartSize(long partSize)Sets the size of this part, in bytes.voidsetSourceBucketName(String sourceBucketName)voidsetSourceKey(String sourcetkey)voidsetTrafficLimitBitPS(long trafficLimitBitPS)Sets Gets the limit of put object speed.voidsetxBceCrc(String xBceCrc)UploadPartCopyRequestwithBucketName(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.UploadPartCopyRequestwithKey(String key)Sets the key of the initiated multipart upload, and returns this updated object so that additional method calls can be chained together.UploadPartCopyRequestwithOffSet(long offSet)UploadPartCopyRequestwithPartNumber(int partNumber)UploadPartCopyRequestwithPartSize(long partSize)UploadPartCopyRequestwithRequestCredentials(BceCredentials credentials)UploadPartCopyRequestwithSourceBucketName(String sourceBucketName)UploadPartCopyRequestwithSourceKey(String sourcetkey)UploadPartCopyRequestwithTrafficLimitBitPS(long trafficLimitBitPS)UploadPartCopyRequestwithUploadId(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.-
从类继承的方法 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
-
-
-
-
构造器详细资料
-
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)
-
withRequestCredentials
public UploadPartCopyRequest withRequestCredentials(BceCredentials credentials)
- 指定者:
withRequestCredentials在类中AbstractBceRequest
-
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).
-
withPartNumber
public UploadPartCopyRequest withPartNumber(int partNumber)
-
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.
-
withPartSize
public UploadPartCopyRequest withPartSize(long partSize)
-
getOffSet
public long getOffSet()
-
setOffSet
public void setOffSet(long offSet)
-
withOffSet
public UploadPartCopyRequest withOffSet(long offSet)
-
getSourceBucketName
public String getSourceBucketName()
-
setSourceBucketName
public void setSourceBucketName(String sourceBucketName)
-
withSourceBucketName
public UploadPartCopyRequest withSourceBucketName(String sourceBucketName)
-
getSourceKey
public String getSourceKey()
-
setSourceKey
public void setSourceKey(String sourcetkey)
-
withSourceKey
public UploadPartCopyRequest withSourceKey(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
-
-