docs: 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;
      }