public class UploadResult
extends java.lang.Object
See TransferManager
for more information about creating transfers.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
bucketName
The name of the bucket containing the completed upload.
|
private java.lang.String |
eTag
The entity tag identifying the new object.
|
private java.lang.String |
key
The key by which the object is stored.
|
private java.lang.String |
versionId
The version ID of the new object, only present if versioning has been
enabled for the bucket.
|
Constructor and Description |
---|
UploadResult() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBucketName()
Returns the name of the bucket containing the uploaded object.
|
java.lang.String |
getETag()
Returns the entity tag identifying the new object.
|
java.lang.String |
getKey()
Returns the key by which the newly created object is stored.
|
java.lang.String |
getVersionId()
Returns the version ID of the new object.
|
void |
setBucketName(java.lang.String bucketName)
Sets the name of the bucket containing the uploaded object.
|
void |
setETag(java.lang.String etag)
Sets the entity tag identifying the new object.
|
void |
setKey(java.lang.String key)
Sets the key of the newly created object.
|
void |
setVersionId(java.lang.String versionId)
Sets the version ID of the new object, only present if versioning has
been enabled for the bucket.
|
private java.lang.String bucketName
private java.lang.String key
private java.lang.String eTag
private java.lang.String versionId
public java.lang.String getBucketName()
public void setBucketName(java.lang.String bucketName)
bucketName
- The name of the bucket containing the uploaded object.public java.lang.String getKey()
public void setKey(java.lang.String key)
public java.lang.String getETag()
public void setETag(java.lang.String etag)
etag
- The entity tag.public java.lang.String getVersionId()
public void setVersionId(java.lang.String versionId)
versionId
- The version ID of the new object, only present if versioning
has been enabled for the bucket.