/** * Sets the optional customer-provided server-side encryption key to use to * encrypt the upload being started, and returns the updated * InitiateMultipartUploadRequest so that additional method calls may be * chained together. * * @param sseKey * The optional customer-provided server-side encryption key to * use to encrypt the upload being started. * * @return The updated request object, so that additional method calls can * be chained together. */ public InitiateMultipartUploadRequest withSSECustomerKey(SSECustomerKey sseKey) { setSSECustomerKey(sseKey); return this; }
/** * Sets the optional customer-provided server-side encryption key to use to * encrypt the upload being started, and returns the updated * InitiateMultipartUploadRequest so that additional method calls may be * chained together. * * @param sseKey The optional customer-provided server-side encryption key * to use to encrypt the upload being started. * @return The updated request object, so that additional method calls can be * chained together. */ public InitiateMultipartUploadRequest withSSECustomerKey(SSECustomerKey sseKey) { setSSECustomerKey(sseKey); return this; }
/** * Sets the optional customer-provided server-side encryption key to use to * encrypt the upload being started, and returns the updated * InitiateMultipartUploadRequest so that additional method calls may be * chained together. * * @param sseKey The optional customer-provided server-side encryption key * to use to encrypt the upload being started. * @return The updated request object, so that additional method calls can be * chained together. */ public InitiateMultipartUploadRequest withSSECustomerKey(SSECustomerKey sseKey) { setSSECustomerKey(sseKey); return this; }
/** * Sets the optional customer-provided server-side encryption key to use to * encrypt the upload being started, and returns the updated * InitiateMultipartUploadRequest so that additional method calls may be * chained together. * * @param sseKey * The optional customer-provided server-side encryption key to * use to encrypt the upload being started. * * @return The updated request object, so that additional method calls can * be chained together. */ public InitiateMultipartUploadRequest withSSECustomerKey(SSECustomerKey sseKey) { setSSECustomerKey(sseKey); return this; }
initiateMultipartUploadRequest.setSSECustomerKey( copyObjectRequest.getDestinationSSECustomerKey());
initiateMultipartUploadRequest.setSSECustomerKey(putObjectRequest.getSSECustomerKey());
protected void setOptionalMultipartUploadRequestParameters( InitiateMultipartUploadRequest req) { switch (serverSideEncryptionAlgorithm) { case SSE_KMS: req.setSSEAwsKeyManagementParams(generateSSEAwsKeyParams()); break; case SSE_C: if (isNotBlank(getServerSideEncryptionKey(bucket, getConf()))) { //at the moment, only supports copy using the same key req.setSSECustomerKey(generateSSECustomerKey()); } break; default: } }
.withStorageClass(options.getS3StorageClass()) .withObjectMetadata(objectMetadata); request.setSSECustomerKey(options.getSSECustomerKey()); request.setSSEAwsKeyManagementParams(options.getSSEAwsKeyManagementParams()); InitiateMultipartUploadResult result;
.withStorageClass(options.getS3StorageClass()) .withObjectMetadata(sourceObjectMetadata); initiateUploadRequest.setSSECustomerKey(options.getSSECustomerKey());
initiateMultipartUploadRequest.setSSECustomerKey( copyObjectRequest.getDestinationSSECustomerKey());
initiateMultipartUploadRequest.setSSECustomerKey(putObjectRequest.getSSECustomerKey());