Class CopyOperationImpl

All Implemented Interfaces:
S3Operation, ComponentLifecycleExtension
Direct Known Subclasses:
CopyOperation, ExtendedCopyOperation

public abstract class CopyOperationImpl extends ObjectOperationImpl
Copy an object from S3 to another object
  • Constructor Details

    • CopyOperationImpl

      public CopyOperationImpl()
  • Method Details

    • execute

      public void execute(ClientWrapper wrapper, AdaptrisMessage msg) throws Exception
      Throws:
      Exception
    • createCopyRequest

      protected abstract software.amazon.awssdk.services.s3.model.CopyObjectRequest createCopyRequest(ClientWrapper wrapper, AdaptrisMessage msg) throws Exception
      Throws:
      Exception
    • withDestinationBucket

      public <T extends CopyOperationImpl> T withDestinationBucket(String s)
    • withDestinationObjectName

      public <T extends CopyOperationImpl> T withDestinationObjectName(String s)
    • getDestinationBucket

      public String 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

      public void setDestinationBucket(String destinationBucket)
      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

      public String getDestinationObjectName()
      The destination object.
    • setDestinationObjectName

      public void setDestinationObjectName(String destinationObjectName)
      The destination object.