/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Budgets { namespace Model { /** *

The spend objects that are associated with this budget. The * actualSpend tracks how much you've used, cost, usage, or RI units, * and the forecastedSpend tracks how much you are predicted to spend * if your current usage remains steady.

For example, if it is the 20th of * the month and you have spent 50 dollars on Amazon EC2, your * actualSpend is 50 USD, and your * forecastedSpend is 75 USD.

See Also:

* AWS * API Reference

*/ class AWS_BUDGETS_API CalculatedSpend { public: CalculatedSpend(); CalculatedSpend(Aws::Utils::Json::JsonView jsonValue); CalculatedSpend& operator=(Aws::Utils::Json::JsonView jsonValue); Aws::Utils::Json::JsonValue Jsonize() const; /** *

The amount of cost, usage, or RI units that you have used.

*/ inline const Spend& GetActualSpend() const{ return m_actualSpend; } /** *

The amount of cost, usage, or RI units that you have used.

*/ inline bool ActualSpendHasBeenSet() const { return m_actualSpendHasBeenSet; } /** *

The amount of cost, usage, or RI units that you have used.

*/ inline void SetActualSpend(const Spend& value) { m_actualSpendHasBeenSet = true; m_actualSpend = value; } /** *

The amount of cost, usage, or RI units that you have used.

*/ inline void SetActualSpend(Spend&& value) { m_actualSpendHasBeenSet = true; m_actualSpend = std::move(value); } /** *

The amount of cost, usage, or RI units that you have used.

*/ inline CalculatedSpend& WithActualSpend(const Spend& value) { SetActualSpend(value); return *this;} /** *

The amount of cost, usage, or RI units that you have used.

*/ inline CalculatedSpend& WithActualSpend(Spend&& value) { SetActualSpend(std::move(value)); return *this;} /** *

The amount of cost, usage, or RI units that you are forecasted to use.

*/ inline const Spend& GetForecastedSpend() const{ return m_forecastedSpend; } /** *

The amount of cost, usage, or RI units that you are forecasted to use.

*/ inline bool ForecastedSpendHasBeenSet() const { return m_forecastedSpendHasBeenSet; } /** *

The amount of cost, usage, or RI units that you are forecasted to use.

*/ inline void SetForecastedSpend(const Spend& value) { m_forecastedSpendHasBeenSet = true; m_forecastedSpend = value; } /** *

The amount of cost, usage, or RI units that you are forecasted to use.

*/ inline void SetForecastedSpend(Spend&& value) { m_forecastedSpendHasBeenSet = true; m_forecastedSpend = std::move(value); } /** *

The amount of cost, usage, or RI units that you are forecasted to use.

*/ inline CalculatedSpend& WithForecastedSpend(const Spend& value) { SetForecastedSpend(value); return *this;} /** *

The amount of cost, usage, or RI units that you are forecasted to use.

*/ inline CalculatedSpend& WithForecastedSpend(Spend&& value) { SetForecastedSpend(std::move(value)); return *this;} private: Spend m_actualSpend; bool m_actualSpendHasBeenSet; Spend m_forecastedSpend; bool m_forecastedSpendHasBeenSet; }; } // namespace Model } // namespace Budgets } // namespace Aws