public Builder addRule(int index, Rule rule) {
            this.rules.get().add(index, rule);
            return this;
        }
Inserts a rule into the ruleset.

@param  index the position to add the rule at.
@param rule The {@link Rule} to add
@return the {@link Builder}
smithy-rules-engine/src/main/java/software/amazon/smithy/rulesengine/language/EndpointRuleSet.java