Add hasAWSQueryCompatible field to the marshaller, The SDKs will send an HTTP header x-amzn-query-mode set to true when a service has the @awsQueryCompatible trait.
Modifications
Add a boolean field hasAWSQueryCompatible to JsonProtocolMarshaller and its builder(default set as false) If it is true then add x-amzn-query-mode to the header of the http request
Testing
I added two testcases to validate SDK sends x-amzn-query-mode header when service has @awsQueryCompatible trait
Screenshots (if appropriate)
Types of changes
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[x] My code follows the code style of this project
[ ] My change requires a change to the Javadoc documentation
[ ] I have updated the Javadoc documentation accordingly
[x] I have added tests to cover my changes
[x] All new and existing tests passed
[ ] I have added a changelog entry. Adding a new entry must be accomplished by running the scripts/new-change script and following the instructions. Commit the new file created by the script in .changes/next-release with your changes.
[ ] My change is to implement 1.11 parity feature and I have updated LaunchChangelog
License
[x] I confirm that this pull request can be released under the Apache 2 license
Motivation and Context
Add hasAWSQueryCompatible field to the marshaller, The SDKs will send an HTTP header x-amzn-query-mode set to true when a service has the @awsQueryCompatible trait.
Modifications
Add a boolean field hasAWSQueryCompatible to JsonProtocolMarshaller and its builder(default set as false) If it is true then add x-amzn-query-mode to the header of the http request
Testing
I added two testcases to validate SDK sends x-amzn-query-mode header when service has @awsQueryCompatible trait
Screenshots (if appropriate)
Types of changes
Checklist
mvn install
succeedsscripts/new-change
script and following the instructions. Commit the new file created by the script in.changes/next-release
with your changes.License