Class S3UploadOptions

java.lang.Object
de.taimos.pipeline.aws.S3UploadOptions
All Implemented Interfaces:
Serializable

public class S3UploadOptions extends Object implements Serializable
The object-shaping parameters s3Upload accepts, and their translation onto a v2 PutObjectRequest. v1 spread this across four near-identical blocks - the text upload, the single-file callable, and an ObjectMetadataProvider in each of the two directory callables - which had already drifted apart: the file-list provider set the SSE *algorithm* to the KMS key id, where the single-file path correctly set it to aws:kms. Collecting the parameters here means the translation exists once and the callables serialise one field instead of ten. Serializable because the upload callables carry it to the agent.
See Also:
  • Constructor Details

  • Method Details

    • getKmsId

      public String getKmsId()
    • applyTo

      public software.amazon.awssdk.services.s3.model.PutObjectRequest.Builder applyTo(software.amazon.awssdk.services.s3.model.PutObjectRequest.Builder request)
      Applies every option that is set. Unset options are left alone rather than written as null, so that S3 defaults still apply.