code: public void setResources(ResourceSpec minResources, ResourceSpec preferredResources) {
  		this.minResources = checkNotNull(minResources);
  		this.preferredResources = checkNotNull(preferredResources);
  	}
docs: Sets the minimum and preferred resources for the task.
  
  @param minResources The minimum resource for the task.
  @param preferredResources The preferred resource for the task.