public BatchPutMetricsRequest withMetricData(RawMetricData... metricData) {
        if (this.metricData == null) {
            setMetricData(new java.util.ArrayList<RawMetricData>(metricData.length));
        }
        for (RawMetricData ele : metricData) {
            this.metricData.add(ele);
        }
        return this;
    }
<p>
A list of raw metric values to put.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setMetricData(java.util.Collection)} or {@link #withMetricData(java.util.Collection)} if you want to
override the existing values.
</p>

@param metricData
       A list of raw metric values to put.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-sagemakermetrics/src/main/java/com/amazonaws/services/sagemakermetrics/model/BatchPutMetricsRequest.java