public boolean hasRequiredRoles() {
    return !requiredRoles.isEmpty();
  }
Returns true if there are one or more required roles specified.

@return whether there are one or more required roles specified
geode-core/src/main/java/org/apache/geode/cache/MembershipAttributes.java