public AnomalySourceDetails withCloudWatchMetrics(java.util.Collection<CloudWatchMetricsDetail> cloudWatchMetrics) {
        setCloudWatchMetrics(cloudWatchMetrics);
        return this;
    }
<p>
An array of <code>CloudWatchMetricsDetail</code> objects that contain information about analyzed CloudWatch
metrics that show anomalous behavior.
</p>

@param cloudWatchMetrics
       An array of <code>CloudWatchMetricsDetail</code> objects that contain information about analyzed
       CloudWatch 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