code: public Notification withJobStatesToNotify(String... jobStatesToNotify) {
          if (this.jobStatesToNotify == null) {
              setJobStatesToNotify(new java.util.ArrayList<String>(jobStatesToNotify.length));
          }
          for (String ele : jobStatesToNotify) {
              this.jobStatesToNotify.add(ele);
          }
          return this;
      }
docs: <p>
  The list of job states that will trigger a notification for this job.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setJobStatesToNotify(java.util.Collection)} or {@link #withJobStatesToNotify(java.util.Collection)} if
  you want to override the existing values.
  </p>
  
  @param jobStatesToNotify
  The list of job states that will trigger a notification for this job.
  @return Returns a reference to this object so that method calls can be chained together.
  @see JobState