code: public ResourceMinimalImpl<T> setResource(T resource) {
          return new ResourceMinimalImpl<>(resourceID, provider, resource, consumer);
      }
docs: sets the Resource data.
  <p>
  Note! this Object is immutable!
  </p>
  @param resource the data to set
  @return the Resource