code: public PutTraceSegmentsRequest withTraceSegmentDocuments(String... traceSegmentDocuments) {
          if (this.traceSegmentDocuments == null) {
              setTraceSegmentDocuments(new java.util.ArrayList<String>(traceSegmentDocuments.length));
          }
          for (String ele : traceSegmentDocuments) {
              this.traceSegmentDocuments.add(ele);
          }
          return this;
      }
docs: <p>
  A string containing a JSON document defining one or more segments or subsegments.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setTraceSegmentDocuments(java.util.Collection)} or
  {@link #withTraceSegmentDocuments(java.util.Collection)} if you want to override the existing values.
  </p>
  
  @param traceSegmentDocuments
  A string containing a JSON document defining one or more segments or subsegments.
  @return Returns a reference to this object so that method calls can be chained together.