public Impact withTotalExpectedSpend(Double totalExpectedSpend) {
        setTotalExpectedSpend(totalExpectedSpend);
        return this;
    }
<p>
The cumulative dollar amount that was expected to be spent during the anomaly. It is calculated using advanced
machine learning models to determine the typical spending pattern based on historical data for a customer.
</p>

@param totalExpectedSpend
       The cumulative dollar amount that was expected to be spent during the anomaly. It is calculated using
       advanced machine learning models to determine the typical spending pattern based on historical data for a
       customer.
@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/Impact.java