Skip to content
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

fix: Add toBuilder() to SdkHttpRequest to easily allow customizations #588

Merged
merged 6 commits into from
Sep 20, 2023

Conversation

sichanyoo
Copy link
Contributor

Issue #

#583

Description of changes

Adds a convenience method toBuilder() to SdkHttpRequest to allow customers to easily obtain a builder object that has all the fields from SdkHttpRequest. This will allow customers to update / customize any fields in the builder, then call build() on the builder to obtain a mutated SdkHttpRequest object they want.

Scope

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link
Contributor

@dayaffe dayaffe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix swiftlint and see if toBuilder can be simplified. If not then all good!

Copy link
Contributor

@dayaffe dayaffe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sichanyoo sichanyoo merged commit e506a16 into main Sep 20, 2023
7 checks passed
@sichanyoo sichanyoo deleted the fix/add-tobuilder-method-to-sdkhttprequest branch September 20, 2023 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants