code: public GetSamplingTargetsResult withSamplingTargetDocuments(SamplingTargetDocument... samplingTargetDocuments) {
          if (this.samplingTargetDocuments == null) {
              setSamplingTargetDocuments(new java.util.ArrayList<SamplingTargetDocument>(samplingTargetDocuments.length));
          }
          for (SamplingTargetDocument ele : samplingTargetDocuments) {
              this.samplingTargetDocuments.add(ele);
          }
          return this;
      }
docs: <p>
  Updated rules that the service should use to sample requests.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setSamplingTargetDocuments(java.util.Collection)} or
  {@link #withSamplingTargetDocuments(java.util.Collection)} if you want to override the existing values.
  </p>
  
  @param samplingTargetDocuments
  Updated rules that the service should use to sample requests.
  @return Returns a reference to this object so that method calls can be chained together.