AWS SDK for C++

AWS SDK for C++ Version 1.11.748

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
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Budgets {
20namespace Model {
21
35 public:
36 AWS_BUDGETS_API CalculatedSpend() = default;
37 AWS_BUDGETS_API CalculatedSpend(Aws::Utils::Json::JsonView jsonValue);
39 AWS_BUDGETS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
46 inline const Spend& GetActualSpend() const { return m_actualSpend; }
47 inline bool ActualSpendHasBeenSet() const { return m_actualSpendHasBeenSet; }
48 template <typename ActualSpendT = Spend>
49 void SetActualSpend(ActualSpendT&& value) {
50 m_actualSpendHasBeenSet = true;
51 m_actualSpend = std::forward<ActualSpendT>(value);
52 }
53 template <typename ActualSpendT = Spend>
54 CalculatedSpend& WithActualSpend(ActualSpendT&& value) {
55 SetActualSpend(std::forward<ActualSpendT>(value));
56 return *this;
57 }
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) {
69 m_forecastedSpendHasBeenSet = true;
70 m_forecastedSpend = std::forward<ForecastedSpendT>(value);
71 }
72 template <typename ForecastedSpendT = Spend>
73 CalculatedSpend& WithForecastedSpend(ForecastedSpendT&& value) {
74 SetForecastedSpend(std::forward<ForecastedSpendT>(value));
75 return *this;
76 }
78 private:
79 Spend m_actualSpend;
80
81 Spend m_forecastedSpend;
82 bool m_actualSpendHasBeenSet = false;
83 bool m_forecastedSpendHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace Budgets
88} // 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