public AnomalySourceDetails withPerformanceInsightsMetrics(PerformanceInsightsMetricsDetail... performanceInsightsMetrics) {
        if (this.performanceInsightsMetrics == null) {
            setPerformanceInsightsMetrics(new java.util.ArrayList<PerformanceInsightsMetricsDetail>(performanceInsightsMetrics.length));
        }
        for (PerformanceInsightsMetricsDetail ele : performanceInsightsMetrics) {
            this.performanceInsightsMetrics.add(ele);
        }
        return this;
    }
<p>
An array of <code>PerformanceInsightsMetricsDetail</code> objects that contain information about analyzed
Performance Insights metrics that show anomalous behavior.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setPerformanceInsightsMetrics(java.util.Collection)} or
{@link #withPerformanceInsightsMetrics(java.util.Collection)} if you want to override the existing values.
</p>

@param performanceInsightsMetrics
       An array of <code>PerformanceInsightsMetricsDetail</code> objects that contain information about analyzed
       Performance Insights metrics that show anomalous behavior.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-devopsguru/src/main/java/com/amazonaws/services/devopsguru/model/AnomalySourceDetails.java