public class CopyObjectRequest extends OSSRequest
OSSRequest.CRC64Config| 构造器和说明 | 
|---|
CopyObjectRequest(java.lang.String sourceBucketName,
                 java.lang.String sourceKey,
                 java.lang.String destinationBucketName,
                 java.lang.String destinationKey)
Creates an instance of  
CopyObjectRequest | 
| 限定符和类型 | 方法和说明 | 
|---|---|
void | 
clearMatchingETagConstraints()  | 
void | 
clearNonmatchingETagConstraints()  | 
java.lang.String | 
getDestinationBucketName()
Gets the target bucket name 
 | 
java.lang.String | 
getDestinationKey()
Gets target object's key 
 | 
java.util.List<java.lang.String> | 
getMatchingETagConstraints()
Gets the ETag matching constraints. 
 | 
java.util.Date | 
getModifiedSinceConstraint()
Gets the modified-since constraint. 
 | 
ObjectMetadata | 
getNewObjectMetadata()
Gets the target Object  
ObjectMetadata instance | 
java.util.List<java.lang.String> | 
getNonmatchingEtagConstraints()
Gets the ETag's non-matching constraints. 
 | 
java.lang.String | 
getServerSideEncryption()
Gets the server side encryption 
 | 
java.lang.String | 
getSourceBucketName()
Gets Object bucket name 
 | 
java.lang.String | 
getSourceKey()
Gets the source object key 
 | 
java.util.Date | 
getUnmodifiedSinceConstraint()
Gets the unmodified-since constraint. 
 | 
void | 
setDestinationBucketName(java.lang.String destinationBucketName)
Sets the target bucket name 
 | 
void | 
setDestinationKey(java.lang.String destinationKey)
Sets the target object Key 
 | 
void | 
setMatchingETagConstraints(java.util.List<java.lang.String> matchingETagConstraints)
Sets the ETag matching constraints. 
 | 
void | 
setModifiedSinceConstraint(java.util.Date modifiedSinceConstraint)
Sets the modified-since constraint. 
 | 
void | 
setNewObjectMetadata(ObjectMetadata newObjectMetadata)
Sets the target Object  
ObjectMetadata instance | 
void | 
setNonmatchingETagConstraints(java.util.List<java.lang.String> nonmatchingEtagConstraints)
Sets the ETag's non-matching constraints. 
 | 
void | 
setServerSideEncryption(java.lang.String serverSideEncryption)
Sets the server side encryption 
 | 
void | 
setSourceBucketName(java.lang.String sourceBucketName)
Sets source object's bucket name 
 | 
void | 
setSourceKey(java.lang.String sourceKey)
Sets the object key 
 | 
void | 
setUnmodifiedSinceConstraint(java.util.Date unmodifiedSinceConstraint)
Gets the unmodified-since constraint. 
 | 
getCRC64, isAuthorizationRequired, setCRC64, setIsAuthorizationRequiredpublic CopyObjectRequest(java.lang.String sourceBucketName,
                         java.lang.String sourceKey,
                         java.lang.String destinationBucketName,
                         java.lang.String destinationKey)
CopyObjectRequestsourceBucketName - Source Object's bucket namesourceKey - Source Object's keydestinationBucketName - Target Object's bucket namedestinationKey - Target Object keypublic java.lang.String getSourceBucketName()
public void setSourceBucketName(java.lang.String sourceBucketName)
sourceBucketName - Source object's bucket namepublic java.lang.String getSourceKey()
public void setSourceKey(java.lang.String sourceKey)
sourceKey - Source Object Keypublic java.lang.String getDestinationBucketName()
public void setDestinationBucketName(java.lang.String destinationBucketName)
destinationBucketName - Target object's bucket namepublic java.lang.String getDestinationKey()
public void setDestinationKey(java.lang.String destinationKey)
destinationKey - The target Object keypublic ObjectMetadata getNewObjectMetadata()
ObjectMetadata instanceObjectMetadata instancepublic void setNewObjectMetadata(ObjectMetadata newObjectMetadata)
ObjectMetadata instancenewObjectMetadata - he target Object ObjectMetadata instancepublic java.util.List<java.lang.String> getMatchingETagConstraints()
public void setMatchingETagConstraints(java.util.List<java.lang.String> matchingETagConstraints)
matchingETagConstraints - ETag list to match.public void clearMatchingETagConstraints()
public java.util.List<java.lang.String> getNonmatchingEtagConstraints()
public void setNonmatchingETagConstraints(java.util.List<java.lang.String> nonmatchingEtagConstraints)
nonmatchingEtagConstraints - ETag list to matchpublic void clearNonmatchingETagConstraints()
public java.util.Date getUnmodifiedSinceConstraint()
public void setUnmodifiedSinceConstraint(java.util.Date unmodifiedSinceConstraint)
unmodifiedSinceConstraint - The timestamp threshold of last modified time.public java.util.Date getModifiedSinceConstraint()
public void setModifiedSinceConstraint(java.util.Date modifiedSinceConstraint)
modifiedSinceConstraint - The timestamp threshold of last modified time.public java.lang.String getServerSideEncryption()
public void setServerSideEncryption(java.lang.String serverSideEncryption)
serverSideEncryption - the server side encryption