类 CopyObjectRequest
java.lang.Object
com.obs.services.model.GenericRequest
com.obs.services.model.BaseObjectRequest
com.obs.services.model.PutObjectBasicRequest
com.obs.services.model.CopyObjectRequest
Parameters in a request for copying an object
-
字段概要
从类继承的字段 com.obs.services.model.PutObjectBasicRequest
acl, extensionPermissionMap, sseCHeader, sseKmsHeader, successRedirectLocation从类继承的字段 com.obs.services.model.BaseObjectRequest
encodeHeaders, isIgnorePort, objectKey从类继承的字段 com.obs.services.model.GenericRequest
bucketName, cancelHandler, httpMethod, userHeaders -
构造器概要
构造器构造器说明CopyObjectRequest(String sourceBucketName, String sourceObjectKey, String destinationBucketName, String destinationObjectKey) Constructor -
方法概要
修饰符和类型方法说明Obtain the destination bucket name.Obtain the destination object name.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.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.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.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.Obtain the properties, including customized metadata, of the destination object.Obtain the source bucket name.Obtain the source object name.已过时。Obtain SSE-C decryption headers of the source object.Obtain the version ID of the source object.booleanObtain the identifier specifying whether to replace properties of the destination object.voidsetDestinationBucketName(String destinationBucketName) Set the destination bucket name.voidsetDestinationObjectKey(String destinationObjectKey) Set the destination object name.voidsetIfMatchTag(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.voidsetIfModifiedSince(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.voidsetIfNoneMatchTag(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.voidsetIfUnmodifiedSince(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.voidsetNewObjectMetadata(ObjectMetadata newObjectMetadata) Set the properties, including customized metadata, of the destination object.voidsetReplaceMetadata(boolean replaceMetadata) Set the identifier specifying whether to replace properties of the destination object.voidsetSourceBucketName(String sourceBucketName) Set the source bucket name.voidsetSourceObjectKey(String sourceObjectKey) Set the source object name.voidsetSseCHeaderDestination(SseCHeader sseCHeaderDestination) 已过时。voidsetSseCHeaderSource(SseCHeader sseCHeaderSource) Set SSE-C decryption headers of the source object.voidsetVersionId(String versionId) Set the version ID for the source object.toString()从类继承的方法 com.obs.services.model.PutObjectBasicRequest
getAcl, getAllGrantPermissions, getDomainIdsByGrantPermission, getExtensionPermissionMap, getGrantPermissionsByDomainId, getSseCHeader, getSseKmsHeader, getSuccessRedirectLocation, grantExtensionPermission, setAcl, setExtensionPermissionMap, setSseCHeader, setSseKmsHeader, setSuccessRedirectLocation, withdrawExtensionPermission, withdrawExtensionPermissions从类继承的方法 com.obs.services.model.BaseObjectRequest
getIsIgnorePort, getObjectKey, isEncodeHeaders, setIsEncodeHeaders, setIsIgnorePort, setObjectKey从类继承的方法 com.obs.services.model.GenericRequest
addUserHeaders, getBucketName, getCancelHandler, getHttpMethod, getUserHeaders, isRequesterPays, setBucketName, setCancelHandler, setRequesterPays, setUserHeaders
-
构造器详细资料
-
CopyObjectRequest
public CopyObjectRequest() -
CopyObjectRequest
public CopyObjectRequest(String sourceBucketName, String sourceObjectKey, String destinationBucketName, String destinationObjectKey) Constructor- 参数:
sourceBucketName- Source bucket namesourceObjectKey- Source object namedestinationBucketName- Destination bucket namedestinationObjectKey- Destination object name
-
-
方法详细资料
-
getSseCHeaderSource
Obtain SSE-C decryption headers of the source object.- 返回:
- SSE-C decryption headers of the source object
-
setSseCHeaderSource
Set SSE-C decryption headers of the source object.- 参数:
sseCHeaderSource- SSE-C decryption headers of the source object
-
getSseCHeaderDestination
已过时。Obtain SSE-C encryption headers of the destination object.- 返回:
- SSE-C encryption headers
-
setSseCHeaderDestination
已过时。Set SSE-C encryption headers for the destination object.- 参数:
sseCHeaderDestination- SSE-C encryption headers
-
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.- 返回:
- Time condition set for copying the object
-
setIfModifiedSince
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.- 参数:
ifModifiedSince- Time condition set for copying the object
-
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.- 返回:
- Time condition set for copying the object
-
setIfUnmodifiedSince
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.- 参数:
ifUnmodifiedSince- Time condition set for copying the object
-
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. Otherwise, "412 Precondition Failed" will be returned.- 返回:
- ETag verification condition set for copying the object
-
setIfMatchTag
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. Otherwise, "412 Precondition Failed" will be returned.- 参数:
ifMatchTag- ETag verification condition set for copying the object
-
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. Otherwise, "412 Precondition Failed" will be returned.- 返回:
- ETag verification condition set for copying the object
-
setIfNoneMatchTag
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. Otherwise, "412 Precondition Failed" will be returned.- 参数:
ifNoneMatchTag- ETag verification condition set for copying the object
-
getVersionId
Obtain the version ID of the source object.- 返回:
- Version ID of the source object
-
setVersionId
Set the version ID for the source object.- 参数:
versionId- Version ID of the source object
-
getSourceBucketName
-
setSourceBucketName
Set the source bucket name.- 参数:
sourceBucketName- Source bucket name
-
getSourceObjectKey
-
setSourceObjectKey
Set the source object name.- 参数:
sourceObjectKey- Source object name
-
getDestinationBucketName
Obtain the destination bucket name.- 返回:
- Destination bucket name
-
setDestinationBucketName
Set the destination bucket name.- 参数:
destinationBucketName- Destination bucket name
-
getDestinationObjectKey
Obtain the destination object name.- 返回:
- Destination object name
-
setDestinationObjectKey
Set the destination object name.- 参数:
destinationObjectKey- Destination object name
-
getNewObjectMetadata
Obtain the properties, including customized metadata, of the destination object.- 返回:
- ObjectMetadata Properties of the destination object
-
setNewObjectMetadata
Set the properties, including customized metadata, of the destination object.- 参数:
newObjectMetadata- Properties of the destination object
-
isReplaceMetadata
public boolean isReplaceMetadata()Obtain the identifier specifying whether to replace properties of the destination object. "true" indicates that properties will be replaced (used together with "setNewObjectMetadata") and "false" indicates that the destination object inherits properties from the source object.- 返回:
- Identifier specifying whether to replace the properties of the destination object
-
setReplaceMetadata
public void setReplaceMetadata(boolean replaceMetadata) Set the identifier specifying whether to replace properties of the destination object. "true" indicates that properties will be replaced (used together with "setNewObjectMetadata") and "false" indicates that the destination object inherits properties from the source object.- 参数:
replaceMetadata- Identifier specifying whether to replace the properties of the destination object
-
toString
- 覆盖:
toString在类中BaseObjectRequest
-