@Override
    public Node toNode() {
        ArrayNode.Builder rulesBuilder = ArrayNode.builder();
        rules.forEach(rulesBuilder::withValue);

        return ObjectNode.builder()
                .withMember(VERSION, version)
                .withMember(PARAMETERS, parameters)
                .withMember(RULES, rulesBuilder.build())
                .build();
    }
Gets the version of this rule-set.

@return the rule-set version.
smithy-rules-engine/src/main/java/software/amazon/smithy/rulesengine/language/EndpointRuleSet.java