public class CopyObjectRequest extends WebServiceRequest
NOOP
构造器和说明 |
---|
CopyObjectRequest(String sourceBucketName,
String sourceKey,
String destinationBucketName,
String destinationKey)
Constructor
|
限定符和类型 | 方法和说明 |
---|---|
void |
clearMatchingETagConstraints() |
void |
clearNonmatchingETagConstraints() |
String |
getDestinationBucketName()
Gets the target bucket name.
|
String |
getDestinationKey()
Gets the target object key.
|
List<String> |
getMatchingETagConstraints()
Gets the ETag matching constraints.
|
Date |
getModifiedSinceConstraint()
Gets the modified since constraint.
|
ObjectMetadata |
getNewObjectMetadata()
Gets target object's
ObjectMetadata . |
List<String> |
getNonmatchingEtagConstraints()
Gets the ETag non-matching constraints.
|
String |
getServerSideEncryption()
Gets the target object's server side encryption algorithm.
|
String |
getSourceBucketName()
Gets the source bucket name.
|
String |
getSourceKey()
Gets the source object key.
|
Date |
getUnmodifiedSinceConstraint()
Gets the unmodified since constraint.
|
void |
setDestinationBucketName(String destinationBucketName)
Sets the target bucket name.
|
void |
setDestinationKey(String destinationKey)
Gets the target object key.
|
void |
setMatchingETagConstraints(List<String> matchingETagConstraints)
Sets the ETag matching constraints.
|
void |
setModifiedSinceConstraint(Date modifiedSinceConstraint)
Sets the modified since constraint.
|
void |
setNewObjectMetadata(ObjectMetadata newObjectMetadata)
Sets target object's
ObjectMetadata . |
void |
setNonmatchingETagConstraints(List<String> nonmatchingEtagConstraints)
Sets the ETag non-matching constraints.
|
void |
setServerSideEncryption(String serverSideEncryption)
Sets the target object's server side encryption algorithm.
|
void |
setSourceBucketName(String sourceBucketName)
Sets the source bucket name.
|
void |
setSourceKey(String sourceKey)
Sets the source object key.
|
void |
setUnmodifiedSinceConstraint(Date unmodifiedSinceConstraint)
Sets the unmodified since constraint (optional).
|
addHeader, addParameter, getHeaders, getParameters, getProgressListener, setHeaders, setParameters, setProgressListener, withProgressListener
public String getSourceBucketName()
public void setSourceBucketName(String sourceBucketName)
sourceBucketName
- Source bucket name.public String getSourceKey()
public void setSourceKey(String sourceKey)
sourceKey
- Source object key.public String getDestinationBucketName()
public void setDestinationBucketName(String destinationBucketName)
destinationBucketName
- Target bucket name.public String getDestinationKey()
public void setDestinationKey(String destinationKey)
destinationKey
- Target object key.public ObjectMetadata getNewObjectMetadata()
ObjectMetadata
.ObjectMetadata
.public void setNewObjectMetadata(ObjectMetadata newObjectMetadata)
ObjectMetadata
. Optional.newObjectMetadata
- Target Object ObjectMetadata
.public List<String> getMatchingETagConstraints()
public void setMatchingETagConstraints(List<String> matchingETagConstraints)
matchingETagConstraints
- ETag matching constraints.public void clearMatchingETagConstraints()
public List<String> getNonmatchingEtagConstraints()
public void setNonmatchingETagConstraints(List<String> nonmatchingEtagConstraints)
nonmatchingEtagConstraints
- ETag non-matching sontraints.public void clearNonmatchingETagConstraints()
public Date getUnmodifiedSinceConstraint()
public void setUnmodifiedSinceConstraint(Date unmodifiedSinceConstraint)
unmodifiedSinceConstraint
- The time threshold. If it's same or later than the actual modified time, copy the file.public Date getModifiedSinceConstraint()
public void setModifiedSinceConstraint(Date modifiedSinceConstraint)
modifiedSinceConstraint
- The time threshold. If it's earlier than the actual modified time, copy the file.public String getServerSideEncryption()
public void setServerSideEncryption(String serverSideEncryption)
serverSideEncryption
- Server side encryption algorithm,null if no encryption.Copyright © 2017. All Rights Reserved.