public class CopyObjectRequest extends PutObjectBasicRequest
acl, bucketName, extensionPermissionMap, objectKey, sseCHeader, sseKmsHeader, successRedirectLocation| 构造器和说明 |
|---|
CopyObjectRequest() |
CopyObjectRequest(String sourceBucketName,
String sourceObjectKey,
String destinationBucketName,
String destinationObjectKey)
Constructor
|
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getDestinationBucketName()
Obtain the destination bucket name.
|
String |
getDestinationObjectKey()
Obtain the destination object name.
|
String |
getIfMatchTag()
Obtain the ETag verification condition for copying the object: Only when
the ETag of the source object is the same as that specified by this
parameter, the object can be copied.
|
Date |
getIfModifiedSince()
Obtain the time condition for copying the object: Only when the source
object is modified after the point in time specified by this parameter,
it can be copied; otherwise, "412 Precondition Failed" will be returned.
|
String |
getIfNoneMatchTag()
Obtain the ETag verification condition for copying the object: Only when
the ETag of the source object is different from that specified by this
parameter, the object will be copied.
|
Date |
getIfUnmodifiedSince()
Obtain the time condition for copying the object: Only when the source
object remains unchanged after the point in time specified by this
parameter, it can be copied; otherwise, "412 Precondition Failed" will be
returned.
|
ObjectMetadata |
getNewObjectMetadata()
Obtain the properties, including customized metadata, of the destination
object.
|
String |
getSourceBucketName()
Obtain the source bucket name.
|
String |
getSourceObjectKey()
Obtain the source object name.
|
SseCHeader |
getSseCHeaderDestination()
已过时。
|
SseCHeader |
getSseCHeaderSource()
Obtain SSE-C decryption headers of the source object.
|
String |
getVersionId()
Obtain the version ID of the source object.
|
boolean |
isReplaceMetadata()
Obtain the identifier specifying whether to replace properties of the
destination object.
|
void |
setDestinationBucketName(String destinationBucketName)
Set the destination bucket name.
|
void |
setDestinationObjectKey(String destinationObjectKey)
Set the destination object name.
|
void |
setIfMatchTag(String ifMatchTag)
Set the ETag verification condition for copying the object: Only when the
ETag of the source object is the same as that specified by this
parameter, the object can be copied.
|
void |
setIfModifiedSince(Date ifModifiedSince)
Set the time condition for copying the object: Only when the source
object is modified after the point in time specified by this parameter,
it can be copied; otherwise, "412 Precondition Failed" will be returned.
|
void |
setIfNoneMatchTag(String ifNoneMatchTag)
Set the ETag verification condition for copying the object: Only when the
ETag of the source object is different from that specified by this
parameter, the object will be copied.
|
void |
setIfUnmodifiedSince(Date ifUnmodifiedSince)
Set the time condition for copying the object: Only when the source
object remains unchanged after the point in time specified by this
parameter, it can be copied; otherwise, "412 Precondition Failed" will be
returned.
|
void |
setNewObjectMetadata(ObjectMetadata newObjectMetadata)
Set the properties, including customized metadata, of the destination
object.
|
void |
setReplaceMetadata(boolean replaceMetadata)
Set the identifier specifying whether to replace properties of the
destination object.
|
void |
setSourceBucketName(String sourceBucketName)
Set the source bucket name.
|
void |
setSourceObjectKey(String sourceObjectKey)
Set the source object name.
|
void |
setSseCHeaderDestination(SseCHeader sseCHeaderDestination)
已过时。
|
void |
setSseCHeaderSource(SseCHeader sseCHeaderSource)
Set SSE-C decryption headers of the source object.
|
void |
setVersionId(String versionId)
Set the version ID for the source object.
|
String |
toString() |
getAcl, getAllGrantPermissions, getBucketName, getDomainIdsByGrantPermission, getExtensionPermissionMap, getGrantPermissionsByDomainId, getObjectKey, getSseCHeader, getSseKmsHeader, getSuccessRedirectLocation, grantExtensionPermission, setAcl, setBucketName, setExtensionPermissionMap, setObjectKey, setSseCHeader, setSseKmsHeader, setSuccessRedirectLocation, withdrawExtensionPermission, withdrawExtensionPermissionsisRequesterPays, setRequesterPayspublic CopyObjectRequest(String sourceBucketName, String sourceObjectKey, String destinationBucketName, String destinationObjectKey)
sourceBucketName - Source bucket namesourceObjectKey - Source object namedestinationBucketName - Destination bucket namedestinationObjectKey - Destination object namepublic CopyObjectRequest()
public SseCHeader getSseCHeaderSource()
public void setSseCHeaderSource(SseCHeader sseCHeaderSource)
sseCHeaderSource - SSE-C decryption headers of the source object@Deprecated public SseCHeader getSseCHeaderDestination()
@Deprecated public void setSseCHeaderDestination(SseCHeader sseCHeaderDestination)
sseCHeaderDestination - SSE-C encryption headerspublic Date getIfModifiedSince()
public void setIfModifiedSince(Date ifModifiedSince)
ifModifiedSince - Time condition set for copying the objectpublic Date getIfUnmodifiedSince()
public void setIfUnmodifiedSince(Date ifUnmodifiedSince)
ifUnmodifiedSince - Time condition set for copying the objectpublic String getIfMatchTag()
public void setIfMatchTag(String ifMatchTag)
ifMatchTag - ETag verification condition set for copying the objectpublic String getIfNoneMatchTag()
public void setIfNoneMatchTag(String ifNoneMatchTag)
ifNoneMatchTag - ETag verification condition set for copying the objectpublic String getVersionId()
public void setVersionId(String versionId)
versionId - Version ID of the source objectpublic String getSourceBucketName()
public void setSourceBucketName(String sourceBucketName)
sourceBucketName - Source bucket namepublic String getSourceObjectKey()
public void setSourceObjectKey(String sourceObjectKey)
sourceObjectKey - Source object namepublic String getDestinationBucketName()
public void setDestinationBucketName(String destinationBucketName)
destinationBucketName - Destination bucket namepublic String getDestinationObjectKey()
public void setDestinationObjectKey(String destinationObjectKey)
destinationObjectKey - Destination object namepublic ObjectMetadata getNewObjectMetadata()
public void setNewObjectMetadata(ObjectMetadata newObjectMetadata)
newObjectMetadata - Properties of the destination objectpublic boolean isReplaceMetadata()
public void setReplaceMetadata(boolean replaceMetadata)
replaceMetadata - Identifier specifying whether to replace the properties of the
destination objectpublic String toString()
toString 在类中 GenericRequestCopyright © 2021. All rights reserved.