AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
BudgetPerformanceHistory.h
1
6#pragma once
7#include <aws/budgets/Budgets_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/budgets/model/BudgetType.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/budgets/model/CostTypes.h>
12#include <aws/budgets/model/TimeUnit.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/budgets/model/BudgetedAndActualAmounts.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace Budgets
28{
29namespace Model
30{
31
39 {
40 public:
41 AWS_BUDGETS_API BudgetPerformanceHistory() = default;
44 AWS_BUDGETS_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
49 inline const Aws::String& GetBudgetName() const { return m_budgetName; }
50 inline bool BudgetNameHasBeenSet() const { return m_budgetNameHasBeenSet; }
51 template<typename BudgetNameT = Aws::String>
52 void SetBudgetName(BudgetNameT&& value) { m_budgetNameHasBeenSet = true; m_budgetName = std::forward<BudgetNameT>(value); }
53 template<typename BudgetNameT = Aws::String>
54 BudgetPerformanceHistory& WithBudgetName(BudgetNameT&& value) { SetBudgetName(std::forward<BudgetNameT>(value)); return *this;}
56
58
59 inline BudgetType GetBudgetType() const { return m_budgetType; }
60 inline bool BudgetTypeHasBeenSet() const { return m_budgetTypeHasBeenSet; }
61 inline void SetBudgetType(BudgetType value) { m_budgetTypeHasBeenSet = true; m_budgetType = value; }
62 inline BudgetPerformanceHistory& WithBudgetType(BudgetType value) { SetBudgetType(value); return *this;}
64
66
70 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetCostFilters() const { return m_costFilters; }
71 inline bool CostFiltersHasBeenSet() const { return m_costFiltersHasBeenSet; }
72 template<typename CostFiltersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
73 void SetCostFilters(CostFiltersT&& value) { m_costFiltersHasBeenSet = true; m_costFilters = std::forward<CostFiltersT>(value); }
74 template<typename CostFiltersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
75 BudgetPerformanceHistory& WithCostFilters(CostFiltersT&& value) { SetCostFilters(std::forward<CostFiltersT>(value)); return *this;}
76 template<typename CostFiltersKeyT = Aws::String, typename CostFiltersValueT = Aws::Vector<Aws::String>>
77 BudgetPerformanceHistory& AddCostFilters(CostFiltersKeyT&& key, CostFiltersValueT&& value) {
78 m_costFiltersHasBeenSet = true; m_costFilters.emplace(std::forward<CostFiltersKeyT>(key), std::forward<CostFiltersValueT>(value)); return *this;
79 }
81
83
87 inline const CostTypes& GetCostTypes() const { return m_costTypes; }
88 inline bool CostTypesHasBeenSet() const { return m_costTypesHasBeenSet; }
89 template<typename CostTypesT = CostTypes>
90 void SetCostTypes(CostTypesT&& value) { m_costTypesHasBeenSet = true; m_costTypes = std::forward<CostTypesT>(value); }
91 template<typename CostTypesT = CostTypes>
92 BudgetPerformanceHistory& WithCostTypes(CostTypesT&& value) { SetCostTypes(std::forward<CostTypesT>(value)); return *this;}
94
96
97 inline TimeUnit GetTimeUnit() const { return m_timeUnit; }
98 inline bool TimeUnitHasBeenSet() const { return m_timeUnitHasBeenSet; }
99 inline void SetTimeUnit(TimeUnit value) { m_timeUnitHasBeenSet = true; m_timeUnit = value; }
100 inline BudgetPerformanceHistory& WithTimeUnit(TimeUnit value) { SetTimeUnit(value); return *this;}
102
104
108 inline const Aws::Vector<BudgetedAndActualAmounts>& GetBudgetedAndActualAmountsList() const { return m_budgetedAndActualAmountsList; }
109 inline bool BudgetedAndActualAmountsListHasBeenSet() const { return m_budgetedAndActualAmountsListHasBeenSet; }
110 template<typename BudgetedAndActualAmountsListT = Aws::Vector<BudgetedAndActualAmounts>>
111 void SetBudgetedAndActualAmountsList(BudgetedAndActualAmountsListT&& value) { m_budgetedAndActualAmountsListHasBeenSet = true; m_budgetedAndActualAmountsList = std::forward<BudgetedAndActualAmountsListT>(value); }
112 template<typename BudgetedAndActualAmountsListT = Aws::Vector<BudgetedAndActualAmounts>>
113 BudgetPerformanceHistory& WithBudgetedAndActualAmountsList(BudgetedAndActualAmountsListT&& value) { SetBudgetedAndActualAmountsList(std::forward<BudgetedAndActualAmountsListT>(value)); return *this;}
114 template<typename BudgetedAndActualAmountsListT = BudgetedAndActualAmounts>
115 BudgetPerformanceHistory& AddBudgetedAndActualAmountsList(BudgetedAndActualAmountsListT&& value) { m_budgetedAndActualAmountsListHasBeenSet = true; m_budgetedAndActualAmountsList.emplace_back(std::forward<BudgetedAndActualAmountsListT>(value)); return *this; }
117 private:
118
119 Aws::String m_budgetName;
120 bool m_budgetNameHasBeenSet = false;
121
122 BudgetType m_budgetType{BudgetType::NOT_SET};
123 bool m_budgetTypeHasBeenSet = false;
124
126 bool m_costFiltersHasBeenSet = false;
127
128 CostTypes m_costTypes;
129 bool m_costTypesHasBeenSet = false;
130
131 TimeUnit m_timeUnit{TimeUnit::NOT_SET};
132 bool m_timeUnitHasBeenSet = false;
133
134 Aws::Vector<BudgetedAndActualAmounts> m_budgetedAndActualAmountsList;
135 bool m_budgetedAndActualAmountsListHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace Budgets
140} // namespace Aws
AWS_BUDGETS_API BudgetPerformanceHistory()=default
BudgetPerformanceHistory & AddCostFilters(CostFiltersKeyT &&key, CostFiltersValueT &&value)
BudgetPerformanceHistory & AddBudgetedAndActualAmountsList(BudgetedAndActualAmountsListT &&value)
BudgetPerformanceHistory & WithTimeUnit(TimeUnit value)
BudgetPerformanceHistory & WithCostTypes(CostTypesT &&value)
BudgetPerformanceHistory & WithBudgetType(BudgetType value)
void SetBudgetedAndActualAmountsList(BudgetedAndActualAmountsListT &&value)
AWS_BUDGETS_API BudgetPerformanceHistory & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BUDGETS_API BudgetPerformanceHistory(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetCostFilters() const
BudgetPerformanceHistory & WithBudgetedAndActualAmountsList(BudgetedAndActualAmountsListT &&value)
BudgetPerformanceHistory & WithCostFilters(CostFiltersT &&value)
AWS_BUDGETS_API Aws::Utils::Json::JsonValue Jsonize() const
BudgetPerformanceHistory & WithBudgetName(BudgetNameT &&value)
const Aws::Vector< BudgetedAndActualAmounts > & GetBudgetedAndActualAmountsList() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue