code: public MetricFilter withMetricTransformations(MetricTransformation... metricTransformations) {
          if (this.metricTransformations == null) {
              setMetricTransformations(new com.amazonaws.internal.SdkInternalList<MetricTransformation>(metricTransformations.length));
          }
          for (MetricTransformation ele : metricTransformations) {
              this.metricTransformations.add(ele);
          }
          return this;
      }
docs: <p>
  The metric transformations.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setMetricTransformations(java.util.Collection)} or
  {@link #withMetricTransformations(java.util.Collection)} if you want to override the existing values.
  </p>
  
  @param metricTransformations
  The metric transformations.
  @return Returns a reference to this object so that method calls can be chained together.