com.amazonaws.services.s3.transfer.model
Class UploadResult

java.lang.Object
  extended by com.amazonaws.services.s3.transfer.model.UploadResult

public class UploadResult
extends Object

Contains information returned by Amazon S3 for a completed upload.

See TransferManager for more information about creating transfers.

See Also:
TransferManager.upload(String, String, java.io.File), TransferManager.upload(com.amazonaws.services.s3.model.PutObjectRequest)

Constructor Summary
UploadResult()
           
 
Method Summary
 String getBucketName()
          Returns the name of the bucket containing the uploaded object.
 String getETag()
          Returns the entity tag identifying the new object.
 String getKey()
          Returns the key by which the newly created object is stored.
 String getVersionId()
          Returns the version ID of the new object.
 void setBucketName(String bucketName)
          Sets the name of the bucket containing the uploaded object.
 void setETag(String etag)
          Sets the entity tag identifying the new object.
 void setKey(String key)
          Sets the key of the newly created object.
 void setVersionId(String versionId)
          Sets the version ID of the new object, only present if versioning has been enabled for the bucket.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UploadResult

public UploadResult()
Method Detail

getBucketName

public String getBucketName()
Returns the name of the bucket containing the uploaded object.

Returns:
The name of the bucket containing the uploaded object.

setBucketName

public void setBucketName(String bucketName)
Sets the name of the bucket containing the uploaded object.

Parameters:
bucketName - The name of the bucket containing the uploaded object.

getKey

public String getKey()
Returns the key by which the newly created object is stored.


setKey

public void setKey(String key)
Sets the key of the newly created object.


getETag

public String getETag()
Returns the entity tag identifying the new object. An entity tag is an opaque string that changes if and only if an object's data changes.

Returns:
An opaque string that changes if and only if an object's data changes.

setETag

public void setETag(String etag)
Sets the entity tag identifying the new object. An entity tag is an opaque string that changes if and only if an object's data changes.

Parameters:
etag - The entity tag.

getVersionId

public String getVersionId()
Returns the version ID of the new object. The version ID is only set if versioning has been enabled for the bucket.

Returns:
The version ID of the new object. The version ID is only set if versioning has been enabled for the bucket.

setVersionId

public void setVersionId(String versionId)
Sets the version ID of the new object, only present if versioning has been enabled for the bucket.

Parameters:
versionId - The version ID of the new object, only present if versioning has been enabled for the bucket.


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