code: public JobDetail withAttempts(AttemptDetail... attempts) {
          if (this.attempts == null) {
              setAttempts(new java.util.ArrayList<AttemptDetail>(attempts.length));
          }
          for (AttemptDetail ele : attempts) {
              this.attempts.add(ele);
          }
          return this;
      }
docs: <p>
  A list of job attempts associated with this job.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setAttempts(java.util.Collection)} or {@link #withAttempts(java.util.Collection)} if you want to override
  the existing values.
  </p>
  
  @param attempts
  A list of job attempts associated with this job.
  @return Returns a reference to this object so that method calls can be chained together.