@Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ClusterCapacity that = (ClusterCapacity) o;
        return count == that.count &&
                vcpu.equals(that.vcpu) &&
                memoryGb.equals(that.memoryGb) &&
                diskGb.equals(that.diskGb) &&
                bandwidthGbps.equals(that.bandwidthGbps) &&
                diskSpeed.equals(that.diskSpeed) &&
                storageType.equals(that.storageType) &&
                architecture.equals(that.architecture) &&
                clusterType.equals(that.clusterType);
    }
Returns a new ClusterCapacity equal to {@code this}, but with the given count.
flags/src/main/java/com/yahoo/vespa/flags/custom/ClusterCapacity.java