-
Notifications
You must be signed in to change notification settings - Fork 966
Add missing properties and polish the codegen path #4458
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
Add missing properties and polish the codegen path #4458
Conversation
| /** | ||
| * Adds the overridden values to the client configuration builder. | ||
| */ | ||
| public SdkClientConfiguration.Builder addOverridesToConfiguration(SdkClientConfiguration.Builder builder) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved (again) to a different util class to avoid the direct coupling between ClientOverrideConfiguration which is an "public" class and the SdkClientConfiguration which is an "internal" class.
ffe4629 to
f010563
Compare
f010563 to
48d3139
Compare
| } | ||
|
|
||
| public static class BuilderImpl implements BuilderInternal { | ||
| private final SdkClientConfiguration.Builder builder; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we call this builder something that distinguishes it from this type? configBuilder, internalBuilder, delegatingBuilder?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, which one? I used BuilderImpl because I like that name, if you think another one is better please let me know which one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I meant the variable builder that represents the SdkClientConfiguration.Builder
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, just tell me how to name it and I will make the change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Go with internalBuilder then?
.../resources/software/amazon/awssdk/codegen/poet/model/serviceclientconfiguration-builder.java
Show resolved
Hide resolved
...est/src/test/java/software/amazon/awssdk/services/CodegenServiceClientConfigurationTest.java
Outdated
Show resolved
Hide resolved
...est/src/test/java/software/amazon/awssdk/services/CodegenServiceClientConfigurationTest.java
Show resolved
Hide resolved
...est/src/test/java/software/amazon/awssdk/services/CodegenServiceClientConfigurationTest.java
Outdated
Show resolved
Hide resolved
7268442 to
287cf62
Compare
|
SonarCloud Quality Gate failed.
|
…2550be2b9 Pull request: release <- staging/d9811d65-b281-4386-821d-4562550be2b9












Motivation and Context
Add a missing property to the
SdkServiceClientConfigurationclass<SdkId>AuthSchemeProvider authSchemeProvider()and a different interfaceBuilderInternalthat knows aboutSdkClientConfigurationand properly handles the "special" properties such asendpointOverrideclientOverrideConfigurationModifications
Testing
BuilderInternalclass.Screenshots (if appropriate)
Types of changes
Checklist
mvn installsucceedsscripts/new-changescript and following the instructions. Commit the new file created by the script in.changes/next-releasewith your changes.License