public class CopyResult
extends java.lang.Object
See TransferManager
for more information about creating transfers.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
destinationBucketName
The name of the bucket to contain the copy of the source object
|
private java.lang.String |
destinationKey
The key in the destination bucket under which the source object will be
copied
|
private java.lang.String |
eTag
The entity tag identifying the new object.
|
private java.lang.String |
sourceBucketName
The name of the bucket containing the object to be copied
|
private java.lang.String |
sourceKey
The key in the source bucket under which the object to be copied 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 |
---|
CopyResult() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDestinationBucketName()
Gets the destination bucket name which will contain the new, copied
object.
|
java.lang.String |
getDestinationKey()
Gets the destination bucket key under which the new, copied object will
be stored.
|
java.lang.String |
getETag()
Returns the entity tag identifying the new object.
|
java.lang.String |
getSourceBucketName()
Gets the name of the bucket containing the source object to be copied.
|
java.lang.String |
getSourceKey()
Gets the source bucket key under which the source object to be copied is
stored.
|
java.lang.String |
getVersionId()
Returns the version ID of the new object.
|
void |
setDestinationBucketName(java.lang.String destinationBucketName)
Sets the destination bucket name which will contain the new, copied
object.
|
void |
setDestinationKey(java.lang.String destinationKey)
Sets the destination bucket key under which the new, copied object will
be stored.
|
void |
setETag(java.lang.String etag)
Sets the entity tag identifying the new object.
|
void |
setSourceBucketName(java.lang.String sourceBucketName)
Sets the name of the bucket containing the source object to be copied.
|
void |
setSourceKey(java.lang.String sourceKey)
Sets the source bucket key under which the source object to be copied is
stored.
|
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 sourceBucketName
private java.lang.String sourceKey
private java.lang.String destinationBucketName
private java.lang.String destinationKey
private java.lang.String eTag
private java.lang.String versionId
public java.lang.String getSourceBucketName()
setSourceBucketName(String sourceBucketName)
public void setSourceBucketName(java.lang.String sourceBucketName)
sourceBucketName
- The name of the bucket containing the source object to be
copied.getSourceBucketName()
public java.lang.String getSourceKey()
setSourceKey(String sourceKey)
public void setSourceKey(java.lang.String sourceKey)
sourceKey
- The source bucket key under which the source object to be
copied is stored.setSourceKey(String sourceKey)
public java.lang.String getDestinationBucketName()
setDestinationBucketName(String destinationBucketName)
public void setDestinationBucketName(java.lang.String destinationBucketName)
destinationBucketName
- The name of the destination bucket which will contain the new,
copied object.getDestinationBucketName()
public java.lang.String getDestinationKey()
setDestinationKey(String destinationKey)
public void setDestinationKey(java.lang.String destinationKey)
destinationKey
- The destination bucket key under which the new, copied object
will be stored.getDestinationKey()
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.