com.amazonaws.services.s3.model
Class PutObjectResult

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

public class PutObjectResult
extends SSEResultBase

Contains the data returned by Amazon S3 from the putObject operation. Use this request to access information about the new object created from the putObject request, such as its ETag and optional version ID.

See Also:
AmazonS3.putObject(String, String, java.io.File), AmazonS3#putObject(String, String, java.io.InputStream, S3ObjectMetadata), AmazonS3.putObject(PutObjectRequest)

Constructor Summary
PutObjectResult()
           
 
Method Summary
 java.lang.String getContentMd5()
          Returns the content MD5.
 java.lang.String getETag()
          Gets the ETag value for the newly created object.
 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.lang.String getVersionId()
          Gets the optional version ID of the newly uploaded object.
 void setContentMd5(java.lang.String contentMd5)
          Sets the content MD5.
 void setETag(java.lang.String eTag)
          Sets the ETag value for the new object that was created from the associated putObject 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 setVersionId(java.lang.String versionId)
          Sets the optional version ID of the newly uploaded object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PutObjectResult

public PutObjectResult()
Method Detail

getVersionId

public java.lang.String getVersionId()
Gets the optional version ID of the newly uploaded object. This field will be set only if object versioning is enabled for the bucket the object was uploaded to.

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

setVersionId

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

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

getETag

public java.lang.String getETag()
Gets the ETag value for the newly created object.

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 putObject request.

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

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

setContentMd5

public void setContentMd5(java.lang.String contentMd5)
Sets the content MD5.

Parameters:
contentMd5 - The content MD5

getContentMd5

public java.lang.String getContentMd5()
Returns the content MD5.



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