public boolean isLiteral() {
            return segmentType == Type.LITERAL;
        }
@return True if the segment is a non-label literal.
smithy-model/src/main/java/software/amazon/smithy/model/pattern/SmithyPattern.java