patternType - non-null resource pattern type.
If PatternType.ANY, the filter will match patterns regardless of pattern type.
If PatternType.MATCH, the filter will match patterns that would match the supplied
name, including a matching prefixed and wildcards patterns.
If any other resource pattern type, the filter will match only patterns with the same type.