public final IsValidHostLabel isValidHostLabel(boolean allowDots) {
        return IsValidHostLabel.ofExpressions(toExpression(), allowDots);
    }
Returns an isValidHostLabel expression of this expression.

@param allowDots whether the UTF-8 {@code .} is considered valid within a host label.
@return the {@link IsValidHostLabel} function.
smithy-rules-engine/src/main/java/software/amazon/smithy/rulesengine/language/syntax/SyntaxElement.java