private static boolean requiresApiKey(ServiceModel serviceModel) {
        return serviceModel.getOperations().values().stream()
                .anyMatch(Operation::requiresApiKey);
    }
If any operation requires an API key we generate a setter on the builder.

@return True if any operation requires an API key. False otherwise.
aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/AddMetadata.java