Merge the map entry adders of AWS SDK v1 model chains

Apache 2.0

Runs before software.amazon.awssdk.v2migration.AwsSdkJavaV1ToV2. In a chain that starts from a new v1 request or model object, replaces the addXEntry(key, value) calls of one map with a single withX(Map.of(..)), which v2-migration turns into the builder's x(..). Chains that also set the map otherwise are left alone.

org.openrewrite.aws.sdk.MergeAwsModelMapEntryAdders
mod run . --recipe=org.openrewrite.aws.sdk.MergeAwsModelMapEntryAdders

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.