public PutMetricDataRequest withMetricData(MetricDatum... metricData) {
        if (this.metricData == null) {
            setMetricData(new com.amazonaws.internal.SdkInternalList<MetricDatum>(metricData.length));
        }
        for (MetricDatum ele : metricData) {
            this.metricData.add(ele);
        }
        return this;
    }
public PutMetricDataRequest withMetricData ( MetricDatum ... metricData ) { if ( this . metricData == null ) { setMetricData ( new com . amazonaws . internal . SdkInternalList < MetricDatum > ( metricData . length ) ) ; } for ( MetricDatum ele : metricData ) { this . metricData . add ( ele ) ; } return this ; }
<p>
The data for the metric. The array can include no more than 20 metrics per call.
</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
The data for the metric. The array can include no more than 20 metrics per call.
@return Returns a reference to this object so that method calls can be chained together.