public GetInsightRuleReportResult withMetricDatapoints(InsightRuleMetricDatapoint... metricDatapoints) {
        if (this.metricDatapoints == null) {
            setMetricDatapoints(new com.amazonaws.internal.SdkInternalList<InsightRuleMetricDatapoint>(metricDatapoints.length));
        }
        for (InsightRuleMetricDatapoint ele : metricDatapoints) {
            this.metricDatapoints.add(ele);
        }
        return this;
    }
<p>
A time series of metric data points that matches the time period in the rule request.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setMetricDatapoints(java.util.Collection)} or {@link #withMetricDatapoints(java.util.Collection)} if you
want to override the existing values.
</p>

@param metricDatapoints
       A time series of metric data points that matches the time period in the rule request.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-cloudwatch/src/main/java/com/amazonaws/services/cloudwatch/model/GetInsightRuleReportResult.java