public ProactiveAnomaly withAnomalyResources(AnomalyResource... anomalyResources) {
        if (this.anomalyResources == null) {
            setAnomalyResources(new java.util.ArrayList<AnomalyResource>(anomalyResources.length));
        }
        for (AnomalyResource ele : anomalyResources) {
            this.anomalyResources.add(ele);
        }
        return this;
    }
<p>
Information about a resource in which DevOps Guru detected anomalous behavior.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setAnomalyResources(java.util.Collection)} or {@link #withAnomalyResources(java.util.Collection)} if you
want to override the existing values.
</p>

@param anomalyResources
       Information about a resource in which DevOps Guru detected 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/ProactiveAnomaly.java