private boolean shouldGenerateSdkRequestConfigSetter ( ShapeModel shape ) { return model . getMetadata ( ) . getProtocol ( ) == Protocol . API_GATEWAY && shape . getShapeType ( ) == ShapeType . Request ; }
For API Gateway request classes we override the sdkRequestConfig fluent setter to return the correct concrete request type for better method chaining .