@Override
    public int hashCode() {
      int result = type != null ? type.hashCode() : 0;
      result = 31 * result + (endpoint != null ? endpoint.hashCode() : 0);
      result = 31 * result + (version != null ? version.hashCode() : 0);
      return result;
    }
Get the version.

@return the version
ambari-server/src/main/java/org/apache/ambari/server/controller/ivory/Cluster.java