code: public GetSamplingRulesResult withSamplingRuleRecords(SamplingRuleRecord... samplingRuleRecords) {
          if (this.samplingRuleRecords == null) {
              setSamplingRuleRecords(new java.util.ArrayList<SamplingRuleRecord>(samplingRuleRecords.length));
          }
          for (SamplingRuleRecord ele : samplingRuleRecords) {
              this.samplingRuleRecords.add(ele);
          }
          return this;
      }
docs: <p>
  Rule definitions and metadata.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setSamplingRuleRecords(java.util.Collection)} or {@link #withSamplingRuleRecords(java.util.Collection)}
  if you want to override the existing values.
  </p>
  
  @param samplingRuleRecords
  Rule definitions and metadata.
  @return Returns a reference to this object so that method calls can be chained together.