Class UploadResult
java.lang.Object
com.amazonaws.services.s3.transfer.model.UploadResult
Contains information returned by Amazon S3 for a completed upload.
See TransferManager
for more information about creating transfers.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the bucket containing the uploaded object.getETag()
Returns the entity tag identifying the new object.getKey()
Returns the key by which the newly created object is stored.Returns the version ID of the new object.void
setBucketName
(String bucketName) Sets the name of the bucket containing the uploaded object.void
Sets the entity tag identifying the new object.void
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.
-
Constructor Details
-
UploadResult
public UploadResult()
-
-
Method Details
-
getBucketName
Returns the name of the bucket containing the uploaded object.- Returns:
- The name of the bucket containing the uploaded object.
-
setBucketName
Sets the name of the bucket containing the uploaded object.- Parameters:
bucketName
- The name of the bucket containing the uploaded object.
-
getKey
Returns the key by which the newly created object is stored. -
setKey
Sets the key of the newly created object. -
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
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
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
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.
-