public Rule endpoint(Endpoint endpoint) {
            return this.onBuild.apply(new EndpointRule(this, endpoint));
        }
A builder used to create a {@link Rule} class.
smithy-rules-engine/src/main/java/software/amazon/smithy/rulesengine/language/syntax/rule/Rule.java