com.amazonaws.services.s3.model
Class PutObjectResult

java.lang.Object
  extended by com.amazonaws.services.s3.model.PutObjectResult
All Implemented Interfaces:
com.amazonaws.services.s3.internal.ObjectExpirationResult, com.amazonaws.services.s3.internal.ServerSideEncryptionResult

public class PutObjectResult
extends Object
implements com.amazonaws.services.s3.internal.ServerSideEncryptionResult, com.amazonaws.services.s3.internal.ObjectExpirationResult

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
 String getETag()
          Gets the ETag value for the newly created object.
 Date getExpirationTime()
          Returns the expiration time for this object, or null if it doesn't expire.
 String getExpirationTimeRuleId()
          Returns the BucketLifecycleConfiguration rule ID for this object's expiration, or null if it doesn't expire.
 String getServerSideEncryption()
          Returns the server-side encryption algorithm for the newly created object, or null if none was used.
 String getVersionId()
          Gets the optional version ID of the newly uploaded object.
 void setETag(String eTag)
          Sets the ETag value for the new object that was created from the associated putObject request.
 void setExpirationTime(Date expirationTime)
          Sets the expiration time for the object.
 void setExpirationTimeRuleId(String expirationTimeRuleId)
          Sets the BucketLifecycleConfiguration rule ID for this object's expiration
 void setServerSideEncryption(String serverSideEncryption)
          Sets the server-side encryption algorithm for the newly created object.
 void setVersionId(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 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(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 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(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()

getServerSideEncryption

public String getServerSideEncryption()
Returns the server-side encryption algorithm for the newly created object, or null if none was used.

Specified by:
getServerSideEncryption in interface com.amazonaws.services.s3.internal.ServerSideEncryptionResult

setServerSideEncryption

public void setServerSideEncryption(String serverSideEncryption)
Sets the server-side encryption algorithm for the newly created object.

Specified by:
setServerSideEncryption in interface com.amazonaws.services.s3.internal.ServerSideEncryptionResult
Parameters:
serverSideEncryption - The server-side encryption algorithm for the new object.

getExpirationTime

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

Specified by:
getExpirationTime in interface com.amazonaws.services.s3.internal.ObjectExpirationResult

setExpirationTime

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

Specified by:
setExpirationTime in interface com.amazonaws.services.s3.internal.ObjectExpirationResult
Parameters:
expirationTime - The expiration time for the object.

getExpirationTimeRuleId

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

Specified by:
getExpirationTimeRuleId in interface com.amazonaws.services.s3.internal.ObjectExpirationResult
See Also:
BucketLifecycleConfiguration.Rule.getId()

setExpirationTimeRuleId

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

Specified by:
setExpirationTimeRuleId in interface com.amazonaws.services.s3.internal.ObjectExpirationResult
Parameters:
expirationTimeRuleId - The rule ID for this object's expiration


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