@Override
    public boolean equals(Object other) {
        return other instanceof SmithyPattern && pattern.equals(((SmithyPattern) other).pattern);
    }
Gets the greedy label of the pattern, if present.

@return Returns the optionally found segment that is a greedy label.
smithy-model/src/main/java/software/amazon/smithy/model/pattern/SmithyPattern.java