com.amazonaws.services.s3.model
Class PutObjectResult

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

public class PutObjectResult
extends Object

Contains the data returned by Amazon S3 from the put object operation. Callers can ignore this result object if they don't need any of the data, otherwise they can access information about the new object created from the put object request, such as it's ETag and optional versionId.

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()
          Returns the ETag value for the new object that was created in the associated put object request.
 String getVersionId()
          Returns the version ID of the new, uploaded object.
 void setETag(String eTag)
          Sets the ETag value for the new object that was created from the associated put object request.
 void setVersionId(String versionId)
          Sets the version ID of the new, 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()
Returns the version ID of the new, uploaded object. This field will only be present if object versioning has been enabled for the bucket to which the object was uploaded.

Returns:
The optional version ID of the new, uploaded object.

setVersionId

public void setVersionId(String versionId)
Sets the version ID of the new, uploaded object.

Parameters:
versionId - The optional version ID of the new, uploaded object.

getETag

public String getETag()
Returns the ETag value for the new object that was created in the associated put object request.

Returns:
The ETag value for the new object.

setETag

public void setETag(String eTag)
Sets the ETag value for the new object that was created from the associated put object request.

Parameters:
eTag - The ETag value for the new object.


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