@Override
    public SdkRequestConfig sdkRequestConfig() {
        if (requestConfigDirty) {
            SdkRequestConfig.Builder builder = super.sdkRequestConfig().copyBuilder();
            queryParameters.forEach((p, values) -> values
                    .forEach(v -> builder.customQueryParam(p, v)));
            headers.forEach(builder::customHeader);
            requestConfig = builder.build();
            requestConfigDirty = false;
        }
        return requestConfig;
    }
{@inheritDoc}
<p>
Header values set using {@link #header(String, String)} take precedence
over values present in the request config. Query parameter values set
using {@link #queryParameter(String, String)} will be merged with the
values present in the request config.

@param sdkRequestConfig The request config.

@return This object for method chaining.
aws-java-sdk-opensdk/src/main/java/com/amazonaws/opensdk/model/RawRequest.java