AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CalculatedSpend.h
1
6#pragma once
7#include <aws/budgets/Budgets_EXPORTS.h>
8#include <aws/budgets/model/Spend.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Budgets
22{
23namespace Model
24{
25
39 {
40 public:
41 AWS_BUDGETS_API CalculatedSpend() = default;
42 AWS_BUDGETS_API CalculatedSpend(Aws::Utils::Json::JsonView jsonValue);
44 AWS_BUDGETS_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
52 inline const Spend& GetActualSpend() const { return m_actualSpend; }
53 inline bool ActualSpendHasBeenSet() const { return m_actualSpendHasBeenSet; }
54 template<typename ActualSpendT = Spend>
55 void SetActualSpend(ActualSpendT&& value) { m_actualSpendHasBeenSet = true; m_actualSpend = std::forward<ActualSpendT>(value); }
56 template<typename ActualSpendT = Spend>
57 CalculatedSpend& WithActualSpend(ActualSpendT&& value) { SetActualSpend(std::forward<ActualSpendT>(value)); return *this;}
59
61
65 inline const Spend& GetForecastedSpend() const { return m_forecastedSpend; }
66 inline bool ForecastedSpendHasBeenSet() const { return m_forecastedSpendHasBeenSet; }
67 template<typename ForecastedSpendT = Spend>
68 void SetForecastedSpend(ForecastedSpendT&& value) { m_forecastedSpendHasBeenSet = true; m_forecastedSpend = std::forward<ForecastedSpendT>(value); }
69 template<typename ForecastedSpendT = Spend>
70 CalculatedSpend& WithForecastedSpend(ForecastedSpendT&& value) { SetForecastedSpend(std::forward<ForecastedSpendT>(value)); return *this;}
72 private:
73
74 Spend m_actualSpend;
75 bool m_actualSpendHasBeenSet = false;
76
77 Spend m_forecastedSpend;
78 bool m_forecastedSpendHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace Budgets
83} // namespace Aws
AWS_BUDGETS_API CalculatedSpend(Aws::Utils::Json::JsonView jsonValue)
CalculatedSpend & WithForecastedSpend(ForecastedSpendT &&value)
AWS_BUDGETS_API CalculatedSpend()=default
AWS_BUDGETS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetForecastedSpend(ForecastedSpendT &&value)
const Spend & GetForecastedSpend() const
CalculatedSpend & WithActualSpend(ActualSpendT &&value)
void SetActualSpend(ActualSpendT &&value)
AWS_BUDGETS_API CalculatedSpend & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue