@Override
        public boolean equals(Object other) {
            return other instanceof Segment && asString.equals(((Segment) other).asString);
        }
Get the segment as a literal value to be used in a pattern.

<p>Unlike the result of {@link #getContent}, the return value
of {@code toString} includes braces for labels and "+" for
greedy labels.

@return The literal segment.
smithy-model/src/main/java/software/amazon/smithy/model/pattern/SmithyPattern.java