Skip to content

Missing methods in the CopyObjectRequest builder #2860

@hectorvent

Description

@hectorvent

Describe the bug

Missing two methods in the builder:

 builder.sourceBucket("source-bucket");
 builder.sourceKey("test-documents/test.pdf");

I following the documentation from here , I created this:

CopyObjectRequest copyObjectRequest = CopyObjectRequest.builder()
           .destinationBucket("destination-bucket")
           .destinationKey("documents/test.pdf")
           .sourceBucket("source-bucket")
           .sourceKey("test-documents/test.pdf")
           .build();

Expected behavior

Be able to set source bucket and key.

Current behavior

missing methods in the version <aws.java.sdk.version>2.15.0</aws.java.sdk.version>

Steps to Reproduce

  1. Try the version I specified
  2. Create this code:
CopyObjectRequest copyObjectRequest = CopyObjectRequest.builder()
           .destinationBucket("destination-bucket")
           .destinationKey("documents/test.pdf")
           .sourceBucket("source-bucket")
           .sourceKey("test-documents/test.pdf")
           .build();

Possible Solution

Add missing methods

Context

No response

AWS Java SDK version used

2.15.0

JDK version used

openjdk 11.0.10 2021-01-19

Operating System and version

MacOs Catalina, 10.15.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions