@Override
    public Builder toBuilder() {
        return builder()
                .sourceLocation(getSourceLocation())
                .ruleSet(ruleSet);
    }
Defines an endpoint rule-set used to resolve the client's transport endpoint.
smithy-rules-engine/src/main/java/software/amazon/smithy/rulesengine/traits/EndpointRuleSetTrait.java