com.baidubce.services.bos.model
Class UploadPartCopyRequest

java.lang.Object
  extended by com.baidubce.model.AbstractBceRequest
      extended by com.baidubce.services.bos.model.GenericBucketRequest
          extended by com.baidubce.services.bos.model.GenericObjectRequest
              extended by com.baidubce.services.bos.model.GenericUploadRequest
                  extended by 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


Constructor Summary
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,
 
Method Summary
 long getOffSet()
           
 int getPartNumber()
          Returns the part number describing this part's position relative to the other parts in the multipart upload.
 long getPartSize()
          Returns the size of this part, in bytes.
 String getSourceBucketName()
           
 String getSourceKey()
           
 String getxBceCrc()
           
 void setOffSet(long offSet)
           
 void setPartNumber(int partNumber)
          Sets the part number describing this part's position relative to the other parts in the multipart upload.
 void setPartSize(long partSize)
          Sets the size of this part, in bytes.
 void setSourceBucketName(String sourceBucketName)
           
 void setSourceKey(String sourcetkey)
           
 void setxBceCrc(String xBceCrc)
           
 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.
 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.
 UploadPartCopyRequest withOffSet(long offSet)
           
 UploadPartCopyRequest withPartNumber(int partNumber)
           
 UploadPartCopyRequest withPartSize(long partSize)
           
 UploadPartCopyRequest withRequestCredentials(BceCredentials credentials)
           
 UploadPartCopyRequest withSourceBucketName(String sourceBucketName)
           
 UploadPartCopyRequest withSourceKey(String sourcetkey)
           
 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.
 
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

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,

Parameters:
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.
Method Detail

getxBceCrc

public String getxBceCrc()

setxBceCrc

public void setxBceCrc(String xBceCrc)

withRequestCredentials

public UploadPartCopyRequest withRequestCredentials(BceCredentials credentials)
Specified by:
withRequestCredentials in class 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.

Specified by:
withBucketName in class GenericBucketRequest
Parameters:
bucketName - the name of the bucket containing the existing, initiated multipart upload, with which this new part will be associated.
Returns:
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.

Specified by:
withKey in class GenericObjectRequest
Parameters:
key - the key of the initiated multipart upload.
Returns:
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.

Specified by:
withUploadId in class GenericUploadRequest
Parameters:
uploadId - the ID of the existing, initiated multipart upload with which this new part will be associated.
Returns:
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).

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

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

Parameters:
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.

Returns:
the size of this part, in bytes.

setPartSize

public void setPartSize(long partSize)
Sets the size of this part, in bytes.

Parameters:
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)


Copyright © 2018. All rights reserved.