code: public TraceSummary withErrorRootCauses(ErrorRootCause... errorRootCauses) {
          if (this.errorRootCauses == null) {
              setErrorRootCauses(new java.util.ArrayList<ErrorRootCause>(errorRootCauses.length));
          }
          for (ErrorRootCause ele : errorRootCauses) {
              this.errorRootCauses.add(ele);
          }
          return this;
      }
docs: <p>
  A collection of ErrorRootCause structures corresponding to the trace segments.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setErrorRootCauses(java.util.Collection)} or {@link #withErrorRootCauses(java.util.Collection)} if you
  want to override the existing values.
  </p>
  
  @param errorRootCauses
  A collection of ErrorRootCause structures corresponding to the trace segments.
  @return Returns a reference to this object so that method calls can be chained together.