Package com.emc.object.s3.request
Class CopyObjectRequest
- java.lang.Object
-
- com.emc.object.ObjectRequest
-
- com.emc.object.s3.request.AbstractBucketRequest
-
- com.emc.object.s3.request.S3ObjectRequest
-
- com.emc.object.s3.request.CopyObjectRequest
-
- Direct Known Subclasses:
CopyPartRequest
public class CopyObjectRequest extends S3ObjectRequest
-
-
Constructor Summary
Constructors Constructor Description CopyObjectRequest(java.lang.String sourceBucketName, java.lang.String sourceKey, java.lang.String bucketName, java.lang.String key)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccessControlList
getAcl()
CannedAcl
getCannedAcl()
java.util.Map<java.lang.String,java.util.List<java.lang.Object>>
getHeaders()
Override to return request-specific headers based on properties of the request.java.lang.String
getIfSourceMatch()
java.util.Date
getIfSourceModifiedSince()
java.lang.String
getIfSourceNoneMatch()
java.util.Date
getIfSourceUnmodifiedSince()
java.lang.String
getIfTargetMatch()
java.lang.String
getIfTargetNoneMatch()
S3ObjectMetadata
getObjectMetadata()
ObjectTagging
getObjectTagging()
java.lang.String
getSourceBucketName()
java.lang.String
getSourceKey()
java.lang.String
getSourceVersionId()
void
setAcl(AccessControlList acl)
void
setCannedAcl(CannedAcl cannedAcl)
void
setIfSourceMatch(java.lang.String ifSourceMatch)
void
setIfSourceModifiedSince(java.util.Date ifSourceModifiedSince)
void
setIfSourceNoneMatch(java.lang.String ifSourceNoneMatch)
void
setIfSourceUnmodifiedSince(java.util.Date ifSourceUnmodifiedSince)
void
setIfTargetMatch(java.lang.String ifTargetMatch)
void
setIfTargetNoneMatch(java.lang.String ifTargetNoneMatch)
void
setObjectMetadata(S3ObjectMetadata objectMetadata)
void
setObjectTagging(ObjectTagging objectTagging)
void
setSourceVersionId(java.lang.String sourceVersionId)
CopyObjectRequest
withAcl(AccessControlList acl)
CopyObjectRequest
withCannedAcl(CannedAcl cannedAcl)
CopyObjectRequest
withIfMatch(java.lang.String ifMatch)
CopyObjectRequest
withIfModifiedSince(java.util.Date ifModifiedSince)
CopyObjectRequest
withIfNoneMatch(java.lang.String ifNoneMatch)
CopyObjectRequest
withIfUnmodifiedSince(java.util.Date ifUnmodifiedSince)
CopyObjectRequest
withObjectMetadata(S3ObjectMetadata objectMetadata)
CopyObjectRequest
withObjectTagging(ObjectTagging objectTagging)
CopyObjectRequest
withSourceVersionId(java.lang.String sourceVersionId)
-
Methods inherited from class com.emc.object.s3.request.S3ObjectRequest
getKey, setKey
-
Methods inherited from class com.emc.object.s3.request.AbstractBucketRequest
getBucketName, setBucketName
-
Methods inherited from class com.emc.object.ObjectRequest
addCustomHeader, getCustomHeaders, getMethod, getNamespace, getPath, getProperties, getQueryParams, getQueryString, getRawQueryString, getSubresource, property, setNamespace, setPath
-
-
-
-
Method Detail
-
getHeaders
public java.util.Map<java.lang.String,java.util.List<java.lang.Object>> getHeaders()
Description copied from class:ObjectRequest
Override to return request-specific headers based on properties of the request. Always call super() first and modify the result.- Overrides:
getHeaders
in classObjectRequest
-
getSourceBucketName
public java.lang.String getSourceBucketName()
-
getSourceKey
public java.lang.String getSourceKey()
-
getSourceVersionId
public java.lang.String getSourceVersionId()
-
setSourceVersionId
public void setSourceVersionId(java.lang.String sourceVersionId)
-
getIfSourceModifiedSince
public java.util.Date getIfSourceModifiedSince()
-
setIfSourceModifiedSince
public void setIfSourceModifiedSince(java.util.Date ifSourceModifiedSince)
-
getIfSourceUnmodifiedSince
public java.util.Date getIfSourceUnmodifiedSince()
-
setIfSourceUnmodifiedSince
public void setIfSourceUnmodifiedSince(java.util.Date ifSourceUnmodifiedSince)
-
getIfSourceMatch
public java.lang.String getIfSourceMatch()
-
setIfSourceMatch
public void setIfSourceMatch(java.lang.String ifSourceMatch)
-
getIfSourceNoneMatch
public java.lang.String getIfSourceNoneMatch()
-
setIfSourceNoneMatch
public void setIfSourceNoneMatch(java.lang.String ifSourceNoneMatch)
-
getIfTargetMatch
public java.lang.String getIfTargetMatch()
-
setIfTargetMatch
public void setIfTargetMatch(java.lang.String ifTargetMatch)
-
getIfTargetNoneMatch
public java.lang.String getIfTargetNoneMatch()
-
setIfTargetNoneMatch
public void setIfTargetNoneMatch(java.lang.String ifTargetNoneMatch)
-
getObjectMetadata
public S3ObjectMetadata getObjectMetadata()
-
setObjectMetadata
public void setObjectMetadata(S3ObjectMetadata objectMetadata)
-
getAcl
public AccessControlList getAcl()
-
setAcl
public void setAcl(AccessControlList acl)
-
getCannedAcl
public CannedAcl getCannedAcl()
-
setCannedAcl
public void setCannedAcl(CannedAcl cannedAcl)
-
getObjectTagging
public ObjectTagging getObjectTagging()
-
setObjectTagging
public void setObjectTagging(ObjectTagging objectTagging)
-
withSourceVersionId
public CopyObjectRequest withSourceVersionId(java.lang.String sourceVersionId)
-
withIfModifiedSince
public CopyObjectRequest withIfModifiedSince(java.util.Date ifModifiedSince)
-
withIfUnmodifiedSince
public CopyObjectRequest withIfUnmodifiedSince(java.util.Date ifUnmodifiedSince)
-
withIfMatch
public CopyObjectRequest withIfMatch(java.lang.String ifMatch)
-
withIfNoneMatch
public CopyObjectRequest withIfNoneMatch(java.lang.String ifNoneMatch)
-
withObjectMetadata
public CopyObjectRequest withObjectMetadata(S3ObjectMetadata objectMetadata)
-
withAcl
public CopyObjectRequest withAcl(AccessControlList acl)
-
withCannedAcl
public CopyObjectRequest withCannedAcl(CannedAcl cannedAcl)
-
withObjectTagging
public CopyObjectRequest withObjectTagging(ObjectTagging objectTagging)
-
-