Class CopyResult
java.lang.Object
com.amazonaws.services.s3.transfer.model.CopyResult
Contains information returned by Amazon S3 for a completed copy operation.
See TransferManager for more information about creating transfers.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the destination bucket name which will contain the new, copied object.Gets the destination bucket key under which the new, copied object will be stored.getETag()Returns the entity tag identifying the new object.Gets the name of the bucket containing the source object to be copied.Gets the source bucket key under which the source object to be copied is stored.Returns the version ID of the new object.voidsetDestinationBucketName(String destinationBucketName) Sets the destination bucket name which will contain the new, copied object.voidsetDestinationKey(String destinationKey) Sets the destination bucket key under which the new, copied object will be stored.voidSets the entity tag identifying the new object.voidsetSourceBucketName(String sourceBucketName) Sets the name of the bucket containing the source object to be copied.voidsetSourceKey(String sourceKey) Sets the source bucket key under which the source object to be copied is stored.voidsetVersionId(String versionId) Sets the version ID of the new object, only present if versioning has been enabled for the bucket.
-
Constructor Details
-
CopyResult
public CopyResult()
-
-
Method Details
-
getSourceBucketName
Gets the name of the bucket containing the source object to be copied.- Returns:
- The name of the bucket containing the source object to be copied.
- See Also:
-
setSourceBucketName
Sets the name of the bucket containing the source object to be copied.- Parameters:
sourceBucketName- The name of the bucket containing the source object to be copied.- See Also:
-
getSourceKey
Gets the source bucket key under which the source object to be copied is stored.- Returns:
- The source bucket key under which the source object to be copied is stored.
- See Also:
-
setSourceKey
Sets the source bucket key under which the source object to be copied is stored.- Parameters:
sourceKey- The source bucket key under which the source object to be copied is stored.- See Also:
-
getDestinationBucketName
Gets the destination bucket name which will contain the new, copied object.- Returns:
- The name of the destination bucket which will contain the new, copied object.
- See Also:
-
setDestinationBucketName
Sets the destination bucket name which will contain the new, copied object.- Parameters:
destinationBucketName- The name of the destination bucket which will contain the new, copied object.- See Also:
-
getDestinationKey
Gets the destination bucket key under which the new, copied object will be stored.- Returns:
- The destination bucket key under which the new, copied object will be stored.
- See Also:
-
setDestinationKey
Sets the destination bucket key under which the new, copied object will be stored.- Parameters:
destinationKey- The destination bucket key under which the new, copied object will be stored.- See Also:
-
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.
-