code: public void setName(String name) {
  
      if (name == null || name.trim().length() == 0) {
        throw new IllegalArgumentException("Job name cannot be empty.");
      }
  
      this.name = name;
    }
docs: Set the name of this <code>Job</code>.
  
  @exception IllegalArgumentException if name is null or empty.