AWS SDK for C++

AWS SDK for C++ Version 1.11.758

Loading...
Searching...
No Matches
BudgetPerformanceHistory.h
1
6#pragma once
7#include <aws/budgets/Budgets_EXPORTS.h>
8#include <aws/budgets/model/BudgetType.h>
9#include <aws/budgets/model/BudgetedAndActualAmounts.h>
10#include <aws/budgets/model/CostTypes.h>
11#include <aws/budgets/model/Expression.h>
12#include <aws/budgets/model/Metric.h>
13#include <aws/budgets/model/TimeUnit.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <aws/core/utils/memory/stl/AWSString.h>
16#include <aws/core/utils/memory/stl/AWSVector.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Utils {
22namespace Json {
23class JsonValue;
24class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace Budgets {
28namespace Model {
29
37 public:
38 AWS_BUDGETS_API BudgetPerformanceHistory() = default;
41 AWS_BUDGETS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
45 inline const Aws::String& GetBudgetName() const { return m_budgetName; }
46 inline bool BudgetNameHasBeenSet() const { return m_budgetNameHasBeenSet; }
47 template <typename BudgetNameT = Aws::String>
48 void SetBudgetName(BudgetNameT&& value) {
49 m_budgetNameHasBeenSet = true;
50 m_budgetName = std::forward<BudgetNameT>(value);
51 }
52 template <typename BudgetNameT = Aws::String>
54 SetBudgetName(std::forward<BudgetNameT>(value));
55 return *this;
56 }
58
60
61 inline BudgetType GetBudgetType() const { return m_budgetType; }
62 inline bool BudgetTypeHasBeenSet() const { return m_budgetTypeHasBeenSet; }
63 inline void SetBudgetType(BudgetType value) {
64 m_budgetTypeHasBeenSet = true;
65 m_budgetType = value;
66 }
68 SetBudgetType(value);
69 return *this;
70 }
72
74
78 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetCostFilters() const { return m_costFilters; }
79 inline bool CostFiltersHasBeenSet() const { return m_costFiltersHasBeenSet; }
80 template <typename CostFiltersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
81 void SetCostFilters(CostFiltersT&& value) {
82 m_costFiltersHasBeenSet = true;
83 m_costFilters = std::forward<CostFiltersT>(value);
84 }
85 template <typename CostFiltersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
87 SetCostFilters(std::forward<CostFiltersT>(value));
88 return *this;
89 }
90 template <typename CostFiltersKeyT = Aws::String, typename CostFiltersValueT = Aws::Vector<Aws::String>>
91 BudgetPerformanceHistory& AddCostFilters(CostFiltersKeyT&& key, CostFiltersValueT&& value) {
92 m_costFiltersHasBeenSet = true;
93 m_costFilters.emplace(std::forward<CostFiltersKeyT>(key), std::forward<CostFiltersValueT>(value));
94 return *this;
95 }
97
99
103 inline const CostTypes& GetCostTypes() const { return m_costTypes; }
104 inline bool CostTypesHasBeenSet() const { return m_costTypesHasBeenSet; }
105 template <typename CostTypesT = CostTypes>
106 void SetCostTypes(CostTypesT&& value) {
107 m_costTypesHasBeenSet = true;
108 m_costTypes = std::forward<CostTypesT>(value);
109 }
110 template <typename CostTypesT = CostTypes>
112 SetCostTypes(std::forward<CostTypesT>(value));
113 return *this;
114 }
116
118
119 inline TimeUnit GetTimeUnit() const { return m_timeUnit; }
120 inline bool TimeUnitHasBeenSet() const { return m_timeUnitHasBeenSet; }
121 inline void SetTimeUnit(TimeUnit value) {
122 m_timeUnitHasBeenSet = true;
123 m_timeUnit = value;
124 }
126 SetTimeUnit(value);
127 return *this;
128 }
130
132
139 inline const Aws::String& GetBillingViewArn() const { return m_billingViewArn; }
140 inline bool BillingViewArnHasBeenSet() const { return m_billingViewArnHasBeenSet; }
141 template <typename BillingViewArnT = Aws::String>
142 void SetBillingViewArn(BillingViewArnT&& value) {
143 m_billingViewArnHasBeenSet = true;
144 m_billingViewArn = std::forward<BillingViewArnT>(value);
145 }
146 template <typename BillingViewArnT = Aws::String>
148 SetBillingViewArn(std::forward<BillingViewArnT>(value));
149 return *this;
150 }
152
154
158 inline const Aws::Vector<BudgetedAndActualAmounts>& GetBudgetedAndActualAmountsList() const { return m_budgetedAndActualAmountsList; }
159 inline bool BudgetedAndActualAmountsListHasBeenSet() const { return m_budgetedAndActualAmountsListHasBeenSet; }
160 template <typename BudgetedAndActualAmountsListT = Aws::Vector<BudgetedAndActualAmounts>>
161 void SetBudgetedAndActualAmountsList(BudgetedAndActualAmountsListT&& value) {
162 m_budgetedAndActualAmountsListHasBeenSet = true;
163 m_budgetedAndActualAmountsList = std::forward<BudgetedAndActualAmountsListT>(value);
164 }
165 template <typename BudgetedAndActualAmountsListT = Aws::Vector<BudgetedAndActualAmounts>>
166 BudgetPerformanceHistory& WithBudgetedAndActualAmountsList(BudgetedAndActualAmountsListT&& value) {
167 SetBudgetedAndActualAmountsList(std::forward<BudgetedAndActualAmountsListT>(value));
168 return *this;
169 }
170 template <typename BudgetedAndActualAmountsListT = BudgetedAndActualAmounts>
171 BudgetPerformanceHistory& AddBudgetedAndActualAmountsList(BudgetedAndActualAmountsListT&& value) {
172 m_budgetedAndActualAmountsListHasBeenSet = true;
173 m_budgetedAndActualAmountsList.emplace_back(std::forward<BudgetedAndActualAmountsListT>(value));
174 return *this;
175 }
177
179
182 inline const Expression& GetFilterExpression() const { return m_filterExpression; }
183 inline bool FilterExpressionHasBeenSet() const { return m_filterExpressionHasBeenSet; }
184 template <typename FilterExpressionT = Expression>
185 void SetFilterExpression(FilterExpressionT&& value) {
186 m_filterExpressionHasBeenSet = true;
187 m_filterExpression = std::forward<FilterExpressionT>(value);
188 }
189 template <typename FilterExpressionT = Expression>
190 BudgetPerformanceHistory& WithFilterExpression(FilterExpressionT&& value) {
191 SetFilterExpression(std::forward<FilterExpressionT>(value));
192 return *this;
193 }
195
197
200 inline const Aws::Vector<Metric>& GetMetrics() const { return m_metrics; }
201 inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
202 template <typename MetricsT = Aws::Vector<Metric>>
203 void SetMetrics(MetricsT&& value) {
204 m_metricsHasBeenSet = true;
205 m_metrics = std::forward<MetricsT>(value);
206 }
207 template <typename MetricsT = Aws::Vector<Metric>>
209 SetMetrics(std::forward<MetricsT>(value));
210 return *this;
211 }
213 m_metricsHasBeenSet = true;
214 m_metrics.push_back(value);
215 return *this;
216 }
218 private:
219 Aws::String m_budgetName;
220
221 BudgetType m_budgetType{BudgetType::NOT_SET};
222
224
225 CostTypes m_costTypes;
226
227 TimeUnit m_timeUnit{TimeUnit::NOT_SET};
228
229 Aws::String m_billingViewArn;
230
231 Aws::Vector<BudgetedAndActualAmounts> m_budgetedAndActualAmountsList;
232
233 Expression m_filterExpression;
234
235 Aws::Vector<Metric> m_metrics;
236 bool m_budgetNameHasBeenSet = false;
237 bool m_budgetTypeHasBeenSet = false;
238 bool m_costFiltersHasBeenSet = false;
239 bool m_costTypesHasBeenSet = false;
240 bool m_timeUnitHasBeenSet = false;
241 bool m_billingViewArnHasBeenSet = false;
242 bool m_budgetedAndActualAmountsListHasBeenSet = false;
243 bool m_filterExpressionHasBeenSet = false;
244 bool m_metricsHasBeenSet = false;
245};
246
247} // namespace Model
248} // namespace Budgets
249} // namespace Aws
AWS_BUDGETS_API BudgetPerformanceHistory()=default
const Aws::Vector< Metric > & GetMetrics() const
BudgetPerformanceHistory & AddCostFilters(CostFiltersKeyT &&key, CostFiltersValueT &&value)
BudgetPerformanceHistory & AddBudgetedAndActualAmountsList(BudgetedAndActualAmountsListT &&value)
BudgetPerformanceHistory & AddMetrics(Metric 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)
BudgetPerformanceHistory & WithMetrics(MetricsT &&value)
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)
BudgetPerformanceHistory & WithFilterExpression(FilterExpressionT &&value)
AWS_BUDGETS_API Aws::Utils::Json::JsonValue Jsonize() const
BudgetPerformanceHistory & WithBudgetName(BudgetNameT &&value)
BudgetPerformanceHistory & WithBillingViewArn(BillingViewArnT &&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