/** * 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, RI units, or * Savings Plans units and the forecastedSpend tracks how much that * you're predicted to spend based on your historical usage profile.

For * example, if it's 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 CalculatedSpend { public: AWS_BUDGETS_API CalculatedSpend(); AWS_BUDGETS_API CalculatedSpend(Aws::Utils::Json::JsonView jsonValue); AWS_BUDGETS_API CalculatedSpend& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_BUDGETS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The amount of cost, usage, RI units, or Savings Plans units that you * used.

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

The amount of cost, usage, RI units, or Savings Plans units that you * used.

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

The amount of cost, usage, RI units, or Savings Plans units that you * used.

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

The amount of cost, usage, RI units, or Savings Plans units that you * used.

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

The amount of cost, usage, RI units, or Savings Plans units that you * used.

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

The amount of cost, usage, RI units, or Savings Plans units that you * used.

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

The amount of cost, usage, RI units, or Savings Plans units that you're * forecasted to use.

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

The amount of cost, usage, RI units, or Savings Plans units that you're * forecasted to use.

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

The amount of cost, usage, RI units, or Savings Plans units that you're * forecasted to use.

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

The amount of cost, usage, RI units, or Savings Plans units that you're * forecasted to use.

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

The amount of cost, usage, RI units, or Savings Plans units that you're * forecasted to use.

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

The amount of cost, usage, RI units, or Savings Plans units that you're * forecasted to use.

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