code: public RecordDetail withRecordErrors(RecordError... recordErrors) {
          if (this.recordErrors == null) {
              setRecordErrors(new java.util.ArrayList<RecordError>(recordErrors.length));
          }
          for (RecordError ele : recordErrors) {
              this.recordErrors.add(ele);
          }
          return this;
      }
docs: <p>
  The errors that occurred.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setRecordErrors(java.util.Collection)} or {@link #withRecordErrors(java.util.Collection)} if you want to
  override the existing values.
  </p>
  
  @param recordErrors
  The errors that occurred.
  @return Returns a reference to this object so that method calls can be chained together.