AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetActualSpend(const Spend& value) { m_actualSpendHasBeenSet = true; m_actualSpend = value; }
55 inline void SetActualSpend(Spend&& value) { m_actualSpendHasBeenSet = true; m_actualSpend = std::move(value); }
56 inline CalculatedSpend& WithActualSpend(const Spend& value) { SetActualSpend(value); return *this;}
57 inline CalculatedSpend& WithActualSpend(Spend&& value) { SetActualSpend(std::move(value)); return *this;}
59
61
65 inline const Spend& GetForecastedSpend() const{ return m_forecastedSpend; }
66 inline bool ForecastedSpendHasBeenSet() const { return m_forecastedSpendHasBeenSet; }
67 inline void SetForecastedSpend(const Spend& value) { m_forecastedSpendHasBeenSet = true; m_forecastedSpend = value; }
68 inline void SetForecastedSpend(Spend&& value) { m_forecastedSpendHasBeenSet = true; m_forecastedSpend = std::move(value); }
69 inline CalculatedSpend& WithForecastedSpend(const Spend& value) { SetForecastedSpend(value); return *this;}
70 inline CalculatedSpend& WithForecastedSpend(Spend&& value) { SetForecastedSpend(std::move(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
CalculatedSpend & WithActualSpend(const Spend &value)
AWS_BUDGETS_API CalculatedSpend(Aws::Utils::Json::JsonView jsonValue)
CalculatedSpend & WithActualSpend(Spend &&value)
AWS_BUDGETS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetForecastedSpend(const Spend &value)
CalculatedSpend & WithForecastedSpend(const Spend &value)
CalculatedSpend & WithForecastedSpend(Spend &&value)
const Spend & GetForecastedSpend() const
void SetActualSpend(const Spend &value)
AWS_BUDGETS_API CalculatedSpend & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue