public GetContainerServiceMetricDataResult withMetricData(MetricDatapoint... metricData) {
        if (this.metricData == null) {
            setMetricData(new java.util.ArrayList<MetricDatapoint>(metricData.length));
        }
        for (MetricDatapoint ele : metricData) {
            this.metricData.add(ele);
        }
        return this;
    }
<p>
An array of objects that describe the metric data returned.
</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
       An array of objects that describe the metric data returned.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-lightsail/src/main/java/com/amazonaws/services/lightsail/model/GetContainerServiceMetricDataResult.java