@Override
  public boolean hasNext() {
    return previous == null || nextToken() != null;
  }
Function that actually makes the list API call
scheduling-manager/src/main/java/com/amazonaws/blox/scheduling/state/PaginatedResponseIterator.java