Skip to content

Missing methods in the CopyObjectRequest builder #2860

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
hectorvent opened this issue Nov 19, 2021 · 3 comments
Closed

Missing methods in the CopyObjectRequest builder #2860

hectorvent opened this issue Nov 19, 2021 · 3 comments
Labels
closed-for-staleness guidance Question that needs advice or information.

Comments

@hectorvent
Copy link

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

@hectorvent hectorvent added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Nov 19, 2021
@Bennett-Lynch
Copy link
Contributor

Bennett-Lynch commented Nov 20, 2021

Hi @hectorvent. Support for these parameters was added as part of #2612, which was released in version 2.17.3 on 2021-07-22. Please try updating to at least this version or you may use the older copySource parameter.

@hectorvent
Copy link
Author

Thanks @Bennett-Lynch

@debora-ito debora-ito added guidance Question that needs advice or information. and removed bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Nov 22, 2021
@debora-ito
Copy link
Member

Let us know if you have any other question.

@debora-ito debora-ito added the closing-soon This issue will close in 4 days unless further comments are made. label Nov 22, 2021
@github-actions github-actions bot added closed-for-staleness and removed closing-soon This issue will close in 4 days unless further comments are made. labels Nov 24, 2021
aws-sdk-java-automation added a commit that referenced this issue Jan 16, 2024
…5abe4bf63

Pull request: release <- staging/5f167c94-3694-4e98-8446-1775abe4bf63
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-for-staleness guidance Question that needs advice or information.
Projects
None yet
Development

No branches or pull requests

3 participants