public class CopyPartRequest extends Object
Constructor and Description |
---|
CopyPartRequest() |
CopyPartRequest(String uploadId,
String sourceBucketName,
String sourceObjectKey,
String destinationBucketName,
String destinationObjectKey,
int partNumber)
Constructor
|
Modifier and Type | Method and Description |
---|---|
Long |
getByteRangeEnd()
Obtain the end position for copying.
|
Long |
getByteRangeStart()
Obtain the start position for copying.
|
String |
getDestinationBucketName()
Obtain the name of the bucket (destination bucket) to which the multipart upload belongs.
|
String |
getDestinationObjectKey()
Obtain the name of the object (destination object) involved in the multipart upload.
|
int |
getPartNumber()
Obtain the part number of the to-be-copied part.
|
String |
getSourceBucketName()
Obtain the source bucket name.
|
String |
getSourceObjectKey()
Obtain the source object name.
|
SseCHeader |
getSseCHeaderDestination()
Obtain SSE-C encryption headers of the destination object.
|
SseCHeader |
getSseCHeaderSource()
Obtain SSE-C decryption headers of the source object.
|
String |
getUploadId()
Obtain the multipart upload ID.
|
String |
getVersionId()
Obtain the version ID of the source object.
|
void |
setByteRangeEnd(Long byteRangeEnd)
Set the end position for copying.
|
void |
setByteRangeStart(Long byteRangeStart)
Set the start position for copying.
|
void |
setDestinationBucketName(String destBucketName)
Set the name of the bucket (destination bucket) to which the multipart upload belongs.
|
void |
setDestinationObjectKey(String destObjectKey)
Set the name of the object (destination object) involved in the multipart upload.
|
void |
setPartNumber(int partNumber)
Set the part number of the to-be-copied part.
|
void |
setSourceBucketName(String bucketName)
Set the source bucket name.
|
void |
setSourceObjectKey(String objectKey)
Set the source object name.
|
void |
setSseCHeaderDestination(SseCHeader sseCHeaderDestination)
Set SSE-C encryption headers for the destination object.
|
void |
setSseCHeaderSource(SseCHeader sseCHeaderSource)
Set SSE-C decryption headers of the source object.
|
void |
setUploadId(String uploadId)
Set the multipart upload ID.
|
void |
setVersionId(String versionId)
Set the version ID for the source object.
|
String |
toString() |
public CopyPartRequest()
public CopyPartRequest(String uploadId, String sourceBucketName, String sourceObjectKey, String destinationBucketName, String destinationObjectKey, int partNumber)
uploadId
- Multipart upload IDsourceBucketName
- Source bucket namesourceObjectKey
- Source object namedestinationBucketName
- Destination bucket namedestinationObjectKey
- Destination object namepartNumber
- Part numberpublic SseCHeader getSseCHeaderSource()
public void setSseCHeaderSource(SseCHeader sseCHeaderSource)
sseCHeaderSource
- SSE-C decryption headers of the source objectpublic SseCHeader getSseCHeaderDestination()
public void setSseCHeaderDestination(SseCHeader sseCHeaderDestination)
sseCHeaderDestination
- SSE-C encryption headers of the destination objectpublic Long getByteRangeStart()
public void setByteRangeStart(Long byteRangeStart)
byteRangeStart
- Start position for copyingpublic Long getByteRangeEnd()
public void setByteRangeEnd(Long byteRangeEnd)
byteRangeEnd
- End position for copyingpublic int getPartNumber()
public void setPartNumber(int partNumber)
partNumber
- Part numberpublic String getUploadId()
public void setUploadId(String uploadId)
uploadId
- Multipart upload IDpublic String getSourceBucketName()
public void setSourceBucketName(String bucketName)
bucketName
- Source bucket namepublic String getSourceObjectKey()
public void setSourceObjectKey(String objectKey)
objectKey
- Source object namepublic String getDestinationBucketName()
public void setDestinationBucketName(String destBucketName)
destBucketName
- Name of the bucket to which the multipart upload belongspublic String getDestinationObjectKey()
public void setDestinationObjectKey(String destObjectKey)
destObjectKey
- Name of the object involved in the multipart uploadpublic String getVersionId()
public void setVersionId(String versionId)
versionId
- Version ID of the source objectCopyright © 2019. All rights reserved.