public GetAnomalySubscriptionsResult withAnomalySubscriptions(AnomalySubscription... anomalySubscriptions) {
        if (this.anomalySubscriptions == null) {
            setAnomalySubscriptions(new java.util.ArrayList<AnomalySubscription>(anomalySubscriptions.length));
        }
        for (AnomalySubscription ele : anomalySubscriptions) {
            this.anomalySubscriptions.add(ele);
        }
        return this;
    }
<p>
A list of cost anomaly subscriptions that includes the detailed metadata for each one.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setAnomalySubscriptions(java.util.Collection)} or {@link #withAnomalySubscriptions(java.util.Collection)}
if you want to override the existing values.
</p>

@param anomalySubscriptions
       A list of cost anomaly subscriptions that includes the detailed metadata for each one.
@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/GetAnomalySubscriptionsResult.java