public GetAnomaliesResult withAnomalies(java.util.Collection<Anomaly> anomalies) {
        setAnomalies(anomalies);
        return this;
    }
<p>
A list of cost anomalies.
</p>

@param anomalies
       A list of cost anomalies.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-costexplorer/src/main/java/com/amazonaws/services/costexplorer/model/GetAnomaliesResult.java