Package com.adaptris.aws2.s3
Class CopyOperationImpl
java.lang.Object
com.adaptris.aws2.s3.S3OperationImpl
com.adaptris.aws2.s3.ObjectOperationImpl
com.adaptris.aws2.s3.CopyOperationImpl
- All Implemented Interfaces:
S3Operation,ComponentLifecycleExtension
- Direct Known Subclasses:
CopyOperation,ExtendedCopyOperation
Copy an object from S3 to another object
-
Field Summary
Fields inherited from class com.adaptris.aws2.s3.S3OperationImpl
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract software.amazon.awssdk.services.s3.model.CopyObjectRequestcreateCopyRequest(ClientWrapper wrapper, AdaptrisMessage msg) voidexecute(ClientWrapper wrapper, AdaptrisMessage msg) The destination bucket.The destination object.voidsetDestinationBucket(String destinationBucket) The destination bucket.voidsetDestinationObjectName(String destinationObjectName) The destination object.<T extends CopyOperationImpl>
T<T extends CopyOperationImpl>
TMethods inherited from class com.adaptris.aws2.s3.ObjectOperationImpl
getObjectName, prepare, s3ObjectKey, setObjectName, withObjectNameMethods inherited from class com.adaptris.aws2.s3.S3OperationImpl
getBucket, s3Bucket, setBucket, withBucket
-
Constructor Details
-
CopyOperationImpl
public CopyOperationImpl()
-
-
Method Details
-
execute
- Throws:
Exception
-
createCopyRequest
protected abstract software.amazon.awssdk.services.s3.model.CopyObjectRequest createCopyRequest(ClientWrapper wrapper, AdaptrisMessage msg) throws Exception - Throws:
Exception
-
withDestinationBucket
-
withDestinationObjectName
-
getDestinationBucket
The destination bucket.If not explictly configured, then we use the bucket name instead making the assumption it's a copy within the same bucket.
-
setDestinationBucket
The destination bucket.If not explictly configured, then we use the bucket name instead making the assumption it's a copy within the same bucket.
-
getDestinationObjectName
The destination object. -
setDestinationObjectName
The destination object.
-