@Override
    public int hashCode() {
      int result = name.hashCode();
      result = 31 * result + ordinal;
      return result;
    }
Get all of the known types.

@return all of the types
ambari-server/src/main/java/org/apache/ambari/server/controller/spi/Resource.java