AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BudgetedAndActualAmounts.h
1
6#pragma once
7#include <aws/budgets/Budgets_EXPORTS.h>
8#include <aws/budgets/model/Spend.h>
9#include <aws/budgets/model/TimePeriod.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Budgets
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_BUDGETS_API BudgetedAndActualAmounts();
39 AWS_BUDGETS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Spend& GetBudgetedAmount() const{ return m_budgetedAmount; }
47 inline bool BudgetedAmountHasBeenSet() const { return m_budgetedAmountHasBeenSet; }
48 inline void SetBudgetedAmount(const Spend& value) { m_budgetedAmountHasBeenSet = true; m_budgetedAmount = value; }
49 inline void SetBudgetedAmount(Spend&& value) { m_budgetedAmountHasBeenSet = true; m_budgetedAmount = std::move(value); }
50 inline BudgetedAndActualAmounts& WithBudgetedAmount(const Spend& value) { SetBudgetedAmount(value); return *this;}
51 inline BudgetedAndActualAmounts& WithBudgetedAmount(Spend&& value) { SetBudgetedAmount(std::move(value)); return *this;}
53
55
58 inline const Spend& GetActualAmount() const{ return m_actualAmount; }
59 inline bool ActualAmountHasBeenSet() const { return m_actualAmountHasBeenSet; }
60 inline void SetActualAmount(const Spend& value) { m_actualAmountHasBeenSet = true; m_actualAmount = value; }
61 inline void SetActualAmount(Spend&& value) { m_actualAmountHasBeenSet = true; m_actualAmount = std::move(value); }
62 inline BudgetedAndActualAmounts& WithActualAmount(const Spend& value) { SetActualAmount(value); return *this;}
63 inline BudgetedAndActualAmounts& WithActualAmount(Spend&& value) { SetActualAmount(std::move(value)); return *this;}
65
67
70 inline const TimePeriod& GetTimePeriod() const{ return m_timePeriod; }
71 inline bool TimePeriodHasBeenSet() const { return m_timePeriodHasBeenSet; }
72 inline void SetTimePeriod(const TimePeriod& value) { m_timePeriodHasBeenSet = true; m_timePeriod = value; }
73 inline void SetTimePeriod(TimePeriod&& value) { m_timePeriodHasBeenSet = true; m_timePeriod = std::move(value); }
74 inline BudgetedAndActualAmounts& WithTimePeriod(const TimePeriod& value) { SetTimePeriod(value); return *this;}
75 inline BudgetedAndActualAmounts& WithTimePeriod(TimePeriod&& value) { SetTimePeriod(std::move(value)); return *this;}
77 private:
78
79 Spend m_budgetedAmount;
80 bool m_budgetedAmountHasBeenSet = false;
81
82 Spend m_actualAmount;
83 bool m_actualAmountHasBeenSet = false;
84
85 TimePeriod m_timePeriod;
86 bool m_timePeriodHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace Budgets
91} // namespace Aws
BudgetedAndActualAmounts & WithTimePeriod(const TimePeriod &value)
AWS_BUDGETS_API BudgetedAndActualAmounts(Aws::Utils::Json::JsonView jsonValue)
BudgetedAndActualAmounts & WithActualAmount(Spend &&value)
BudgetedAndActualAmounts & WithBudgetedAmount(const Spend &value)
AWS_BUDGETS_API Aws::Utils::Json::JsonValue Jsonize() const
BudgetedAndActualAmounts & WithTimePeriod(TimePeriod &&value)
AWS_BUDGETS_API BudgetedAndActualAmounts & operator=(Aws::Utils::Json::JsonView jsonValue)
BudgetedAndActualAmounts & WithActualAmount(const Spend &value)
BudgetedAndActualAmounts & WithBudgetedAmount(Spend &&value)
Aws::Utils::Json::JsonValue JsonValue