@Override
    public boolean equals(Object o) {
      if (this == o) {
        return true;
      }

      if (o == null || getClass() != o.getClass()) {
        return false;
      }

      Type type = (Type) o;

      return ordinal == type.ordinal && name.equals(type.name);
    }
Get all of the known types.

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