com.amazonaws.services.s3.model
Class CopyObjectResult

java.lang.Object
  extended by SSEResultBase
      extended by com.amazonaws.services.s3.model.CopyObjectResult

public class CopyObjectResult
extends SSEResultBase

Contains the data returned by Amazon S3 from the AmazonS3.copyObject(CopyObjectRequest copyObjectRequest) call. This result may be ignored if not needed; otherwise, use this result to access information about the new object created from the copyObject call.

See Also:
AmazonS3Client.copyObject(String, String, String, String), AmazonS3Client.copyObject(com.amazonaws.services.s3.model.CopyObjectRequest)

Constructor Summary
CopyObjectResult()
           
 
Method Summary
 java.lang.String getETag()
          Gets the ETag value for the new object that was created in the associated CopyObjectRequest.
 java.util.Date getExpirationTime()
          Returns the expiration time for this object, or null if it doesn't expire.
 java.lang.String getExpirationTimeRuleId()
          Returns the BucketLifecycleConfiguration rule ID for this object's expiration, or null if it doesn't expire.
 java.util.Date getLastModifiedDate()
          Gets the date the newly copied object was last modified.
 java.lang.String getVersionId()
          Gets the version ID of the newly copied object.
 void setETag(java.lang.String etag)
          Sets the ETag value for the new object that was created from the associated copy object request.
 void setExpirationTime(java.util.Date expirationTime)
          Sets the expiration time for the object.
 void setExpirationTimeRuleId(java.lang.String expirationTimeRuleId)
          Sets the BucketLifecycleConfiguration rule ID for this object's expiration
 void setLastModifiedDate(java.util.Date lastModifiedDate)
          Sets the date the newly copied object was last modified.
 void setVersionId(java.lang.String versionId)
          Sets the version ID of the newly copied object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CopyObjectResult

public CopyObjectResult()
Method Detail

getETag

public java.lang.String getETag()
Gets the ETag value for the new object that was created in the associated CopyObjectRequest.

Returns:
The ETag value for the new object.
See Also:
setETag(String)

setETag

public void setETag(java.lang.String etag)
Sets the ETag value for the new object that was created from the associated copy object request.

Parameters:
etag - The ETag value for the new object.
See Also:
getETag()

getLastModifiedDate

public java.util.Date getLastModifiedDate()
Gets the date the newly copied object was last modified.

Returns:
The date the newly copied object was last modified.
See Also:
setLastModifiedDate(Date)

setLastModifiedDate

public void setLastModifiedDate(java.util.Date lastModifiedDate)
Sets the date the newly copied object was last modified.

Parameters:
lastModifiedDate - The date the new, copied object was last modified.
See Also:
getLastModifiedDate()

getVersionId

public java.lang.String getVersionId()
Gets the version ID of the newly copied object. This field is only present if object versioning has been enabled for the bucket the object was copied to.

Returns:
The version ID of the newly copied object.
See Also:
setVersionId(String)

setVersionId

public void setVersionId(java.lang.String versionId)
Sets the version ID of the newly copied object.

Parameters:
versionId - The version ID of the newly copied object.
See Also:
getVersionId()

getExpirationTime

public java.util.Date getExpirationTime()
Returns the expiration time for this object, or null if it doesn't expire.


setExpirationTime

public void setExpirationTime(java.util.Date expirationTime)
Sets the expiration time for the object.

Parameters:
expirationTime - The expiration time for the object.

getExpirationTimeRuleId

public java.lang.String getExpirationTimeRuleId()
Returns the BucketLifecycleConfiguration rule ID for this object's expiration, or null if it doesn't expire.


setExpirationTimeRuleId

public void setExpirationTimeRuleId(java.lang.String expirationTimeRuleId)
Sets the BucketLifecycleConfiguration rule ID for this object's expiration

Parameters:
expirationTimeRuleId - The rule ID for this object's expiration


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.