AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Budget.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/Spend.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/budgets/model/TimePeriod.h>
14#include <aws/budgets/model/CalculatedSpend.h>
15#include <aws/budgets/model/BudgetType.h>
16#include <aws/core/utils/DateTime.h>
17#include <aws/budgets/model/AutoAdjustData.h>
18#include <aws/core/utils/memory/stl/AWSVector.h>
19#include <utility>
20
21namespace Aws
22{
23namespace Utils
24{
25namespace Json
26{
27 class JsonValue;
28 class JsonView;
29} // namespace Json
30} // namespace Utils
31namespace Budgets
32{
33namespace Model
34{
35
46 class Budget
47 {
48 public:
49 AWS_BUDGETS_API Budget();
50 AWS_BUDGETS_API Budget(Aws::Utils::Json::JsonView jsonValue);
51 AWS_BUDGETS_API Budget& operator=(Aws::Utils::Json::JsonView jsonValue);
52 AWS_BUDGETS_API Aws::Utils::Json::JsonValue Jsonize() const;
53
54
56
61 inline const Aws::String& GetBudgetName() const{ return m_budgetName; }
62 inline bool BudgetNameHasBeenSet() const { return m_budgetNameHasBeenSet; }
63 inline void SetBudgetName(const Aws::String& value) { m_budgetNameHasBeenSet = true; m_budgetName = value; }
64 inline void SetBudgetName(Aws::String&& value) { m_budgetNameHasBeenSet = true; m_budgetName = std::move(value); }
65 inline void SetBudgetName(const char* value) { m_budgetNameHasBeenSet = true; m_budgetName.assign(value); }
66 inline Budget& WithBudgetName(const Aws::String& value) { SetBudgetName(value); return *this;}
67 inline Budget& WithBudgetName(Aws::String&& value) { SetBudgetName(std::move(value)); return *this;}
68 inline Budget& WithBudgetName(const char* value) { SetBudgetName(value); return *this;}
70
72
82 inline const Spend& GetBudgetLimit() const{ return m_budgetLimit; }
83 inline bool BudgetLimitHasBeenSet() const { return m_budgetLimitHasBeenSet; }
84 inline void SetBudgetLimit(const Spend& value) { m_budgetLimitHasBeenSet = true; m_budgetLimit = value; }
85 inline void SetBudgetLimit(Spend&& value) { m_budgetLimitHasBeenSet = true; m_budgetLimit = std::move(value); }
86 inline Budget& WithBudgetLimit(const Spend& value) { SetBudgetLimit(value); return *this;}
87 inline Budget& WithBudgetLimit(Spend&& value) { SetBudgetLimit(std::move(value)); return *this;}
89
91
119 inline const Aws::Map<Aws::String, Spend>& GetPlannedBudgetLimits() const{ return m_plannedBudgetLimits; }
120 inline bool PlannedBudgetLimitsHasBeenSet() const { return m_plannedBudgetLimitsHasBeenSet; }
121 inline void SetPlannedBudgetLimits(const Aws::Map<Aws::String, Spend>& value) { m_plannedBudgetLimitsHasBeenSet = true; m_plannedBudgetLimits = value; }
122 inline void SetPlannedBudgetLimits(Aws::Map<Aws::String, Spend>&& value) { m_plannedBudgetLimitsHasBeenSet = true; m_plannedBudgetLimits = std::move(value); }
124 inline Budget& WithPlannedBudgetLimits(Aws::Map<Aws::String, Spend>&& value) { SetPlannedBudgetLimits(std::move(value)); return *this;}
125 inline Budget& AddPlannedBudgetLimits(const Aws::String& key, const Spend& value) { m_plannedBudgetLimitsHasBeenSet = true; m_plannedBudgetLimits.emplace(key, value); return *this; }
126 inline Budget& AddPlannedBudgetLimits(Aws::String&& key, const Spend& value) { m_plannedBudgetLimitsHasBeenSet = true; m_plannedBudgetLimits.emplace(std::move(key), value); return *this; }
127 inline Budget& AddPlannedBudgetLimits(const Aws::String& key, Spend&& value) { m_plannedBudgetLimitsHasBeenSet = true; m_plannedBudgetLimits.emplace(key, std::move(value)); return *this; }
128 inline Budget& AddPlannedBudgetLimits(Aws::String&& key, Spend&& value) { m_plannedBudgetLimitsHasBeenSet = true; m_plannedBudgetLimits.emplace(std::move(key), std::move(value)); return *this; }
129 inline Budget& AddPlannedBudgetLimits(const char* key, Spend&& value) { m_plannedBudgetLimitsHasBeenSet = true; m_plannedBudgetLimits.emplace(key, std::move(value)); return *this; }
130 inline Budget& AddPlannedBudgetLimits(const char* key, const Spend& value) { m_plannedBudgetLimitsHasBeenSet = true; m_plannedBudgetLimits.emplace(key, value); return *this; }
132
134
143 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetCostFilters() const{ return m_costFilters; }
144 inline bool CostFiltersHasBeenSet() const { return m_costFiltersHasBeenSet; }
145 inline void SetCostFilters(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { m_costFiltersHasBeenSet = true; m_costFilters = value; }
146 inline void SetCostFilters(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { m_costFiltersHasBeenSet = true; m_costFilters = std::move(value); }
147 inline Budget& WithCostFilters(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { SetCostFilters(value); return *this;}
148 inline Budget& WithCostFilters(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { SetCostFilters(std::move(value)); return *this;}
149 inline Budget& AddCostFilters(const Aws::String& key, const Aws::Vector<Aws::String>& value) { m_costFiltersHasBeenSet = true; m_costFilters.emplace(key, value); return *this; }
150 inline Budget& AddCostFilters(Aws::String&& key, const Aws::Vector<Aws::String>& value) { m_costFiltersHasBeenSet = true; m_costFilters.emplace(std::move(key), value); return *this; }
151 inline Budget& AddCostFilters(const Aws::String& key, Aws::Vector<Aws::String>&& value) { m_costFiltersHasBeenSet = true; m_costFilters.emplace(key, std::move(value)); return *this; }
152 inline Budget& AddCostFilters(Aws::String&& key, Aws::Vector<Aws::String>&& value) { m_costFiltersHasBeenSet = true; m_costFilters.emplace(std::move(key), std::move(value)); return *this; }
153 inline Budget& AddCostFilters(const char* key, Aws::Vector<Aws::String>&& value) { m_costFiltersHasBeenSet = true; m_costFilters.emplace(key, std::move(value)); return *this; }
154 inline Budget& AddCostFilters(const char* key, const Aws::Vector<Aws::String>& value) { m_costFiltersHasBeenSet = true; m_costFilters.emplace(key, value); return *this; }
156
158
164 inline const CostTypes& GetCostTypes() const{ return m_costTypes; }
165 inline bool CostTypesHasBeenSet() const { return m_costTypesHasBeenSet; }
166 inline void SetCostTypes(const CostTypes& value) { m_costTypesHasBeenSet = true; m_costTypes = value; }
167 inline void SetCostTypes(CostTypes&& value) { m_costTypesHasBeenSet = true; m_costTypes = std::move(value); }
168 inline Budget& WithCostTypes(const CostTypes& value) { SetCostTypes(value); return *this;}
169 inline Budget& WithCostTypes(CostTypes&& value) { SetCostTypes(std::move(value)); return *this;}
171
173
176 inline const TimeUnit& GetTimeUnit() const{ return m_timeUnit; }
177 inline bool TimeUnitHasBeenSet() const { return m_timeUnitHasBeenSet; }
178 inline void SetTimeUnit(const TimeUnit& value) { m_timeUnitHasBeenSet = true; m_timeUnit = value; }
179 inline void SetTimeUnit(TimeUnit&& value) { m_timeUnitHasBeenSet = true; m_timeUnit = std::move(value); }
180 inline Budget& WithTimeUnit(const TimeUnit& value) { SetTimeUnit(value); return *this;}
181 inline Budget& WithTimeUnit(TimeUnit&& value) { SetTimeUnit(std::move(value)); return *this;}
183
185
201 inline const TimePeriod& GetTimePeriod() const{ return m_timePeriod; }
202 inline bool TimePeriodHasBeenSet() const { return m_timePeriodHasBeenSet; }
203 inline void SetTimePeriod(const TimePeriod& value) { m_timePeriodHasBeenSet = true; m_timePeriod = value; }
204 inline void SetTimePeriod(TimePeriod&& value) { m_timePeriodHasBeenSet = true; m_timePeriod = std::move(value); }
205 inline Budget& WithTimePeriod(const TimePeriod& value) { SetTimePeriod(value); return *this;}
206 inline Budget& WithTimePeriod(TimePeriod&& value) { SetTimePeriod(std::move(value)); return *this;}
208
210
213 inline const CalculatedSpend& GetCalculatedSpend() const{ return m_calculatedSpend; }
214 inline bool CalculatedSpendHasBeenSet() const { return m_calculatedSpendHasBeenSet; }
215 inline void SetCalculatedSpend(const CalculatedSpend& value) { m_calculatedSpendHasBeenSet = true; m_calculatedSpend = value; }
216 inline void SetCalculatedSpend(CalculatedSpend&& value) { m_calculatedSpendHasBeenSet = true; m_calculatedSpend = std::move(value); }
217 inline Budget& WithCalculatedSpend(const CalculatedSpend& value) { SetCalculatedSpend(value); return *this;}
218 inline Budget& WithCalculatedSpend(CalculatedSpend&& value) { SetCalculatedSpend(std::move(value)); return *this;}
220
222
226 inline const BudgetType& GetBudgetType() const{ return m_budgetType; }
227 inline bool BudgetTypeHasBeenSet() const { return m_budgetTypeHasBeenSet; }
228 inline void SetBudgetType(const BudgetType& value) { m_budgetTypeHasBeenSet = true; m_budgetType = value; }
229 inline void SetBudgetType(BudgetType&& value) { m_budgetTypeHasBeenSet = true; m_budgetType = std::move(value); }
230 inline Budget& WithBudgetType(const BudgetType& value) { SetBudgetType(value); return *this;}
231 inline Budget& WithBudgetType(BudgetType&& value) { SetBudgetType(std::move(value)); return *this;}
233
235
238 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const{ return m_lastUpdatedTime; }
239 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
240 inline void SetLastUpdatedTime(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; }
241 inline void SetLastUpdatedTime(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::move(value); }
242 inline Budget& WithLastUpdatedTime(const Aws::Utils::DateTime& value) { SetLastUpdatedTime(value); return *this;}
243 inline Budget& WithLastUpdatedTime(Aws::Utils::DateTime&& value) { SetLastUpdatedTime(std::move(value)); return *this;}
245
247
251 inline const AutoAdjustData& GetAutoAdjustData() const{ return m_autoAdjustData; }
252 inline bool AutoAdjustDataHasBeenSet() const { return m_autoAdjustDataHasBeenSet; }
253 inline void SetAutoAdjustData(const AutoAdjustData& value) { m_autoAdjustDataHasBeenSet = true; m_autoAdjustData = value; }
254 inline void SetAutoAdjustData(AutoAdjustData&& value) { m_autoAdjustDataHasBeenSet = true; m_autoAdjustData = std::move(value); }
255 inline Budget& WithAutoAdjustData(const AutoAdjustData& value) { SetAutoAdjustData(value); return *this;}
256 inline Budget& WithAutoAdjustData(AutoAdjustData&& value) { SetAutoAdjustData(std::move(value)); return *this;}
258 private:
259
260 Aws::String m_budgetName;
261 bool m_budgetNameHasBeenSet = false;
262
263 Spend m_budgetLimit;
264 bool m_budgetLimitHasBeenSet = false;
265
266 Aws::Map<Aws::String, Spend> m_plannedBudgetLimits;
267 bool m_plannedBudgetLimitsHasBeenSet = false;
268
270 bool m_costFiltersHasBeenSet = false;
271
272 CostTypes m_costTypes;
273 bool m_costTypesHasBeenSet = false;
274
275 TimeUnit m_timeUnit;
276 bool m_timeUnitHasBeenSet = false;
277
278 TimePeriod m_timePeriod;
279 bool m_timePeriodHasBeenSet = false;
280
281 CalculatedSpend m_calculatedSpend;
282 bool m_calculatedSpendHasBeenSet = false;
283
284 BudgetType m_budgetType;
285 bool m_budgetTypeHasBeenSet = false;
286
287 Aws::Utils::DateTime m_lastUpdatedTime;
288 bool m_lastUpdatedTimeHasBeenSet = false;
289
290 AutoAdjustData m_autoAdjustData;
291 bool m_autoAdjustDataHasBeenSet = false;
292 };
293
294} // namespace Model
295} // namespace Budgets
296} // namespace Aws
const CostTypes & GetCostTypes() const
Definition Budget.h:164
const TimePeriod & GetTimePeriod() const
Definition Budget.h:201
Budget & AddPlannedBudgetLimits(const char *key, Spend &&value)
Definition Budget.h:129
void SetBudgetName(const char *value)
Definition Budget.h:65
const BudgetType & GetBudgetType() const
Definition Budget.h:226
bool PlannedBudgetLimitsHasBeenSet() const
Definition Budget.h:120
bool CostFiltersHasBeenSet() const
Definition Budget.h:144
const Aws::Map< Aws::String, Spend > & GetPlannedBudgetLimits() const
Definition Budget.h:119
Budget & AddCostFilters(Aws::String &&key, Aws::Vector< Aws::String > &&value)
Definition Budget.h:152
bool TimeUnitHasBeenSet() const
Definition Budget.h:177
bool LastUpdatedTimeHasBeenSet() const
Definition Budget.h:239
const AutoAdjustData & GetAutoAdjustData() const
Definition Budget.h:251
const Spend & GetBudgetLimit() const
Definition Budget.h:82
void SetCalculatedSpend(CalculatedSpend &&value)
Definition Budget.h:216
Budget & AddCostFilters(const char *key, const Aws::Vector< Aws::String > &value)
Definition Budget.h:154
Budget & WithBudgetLimit(const Spend &value)
Definition Budget.h:86
Budget & AddPlannedBudgetLimits(const Aws::String &key, Spend &&value)
Definition Budget.h:127
Budget & WithAutoAdjustData(AutoAdjustData &&value)
Definition Budget.h:256
Budget & AddPlannedBudgetLimits(Aws::String &&key, const Spend &value)
Definition Budget.h:126
AWS_BUDGETS_API Budget & operator=(Aws::Utils::Json::JsonView jsonValue)
bool CostTypesHasBeenSet() const
Definition Budget.h:165
Budget & WithBudgetName(const char *value)
Definition Budget.h:68
const Aws::String & GetBudgetName() const
Definition Budget.h:61
Budget & WithLastUpdatedTime(Aws::Utils::DateTime &&value)
Definition Budget.h:243
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetCostFilters() const
Definition Budget.h:143
Budget & WithPlannedBudgetLimits(const Aws::Map< Aws::String, Spend > &value)
Definition Budget.h:123
Budget & WithBudgetType(BudgetType &&value)
Definition Budget.h:231
Budget & AddCostFilters(const char *key, Aws::Vector< Aws::String > &&value)
Definition Budget.h:153
const CalculatedSpend & GetCalculatedSpend() const
Definition Budget.h:213
AWS_BUDGETS_API Aws::Utils::Json::JsonValue Jsonize() const
Budget & AddPlannedBudgetLimits(const char *key, const Spend &value)
Definition Budget.h:130
Budget & WithCostTypes(CostTypes &&value)
Definition Budget.h:169
void SetPlannedBudgetLimits(Aws::Map< Aws::String, Spend > &&value)
Definition Budget.h:122
bool AutoAdjustDataHasBeenSet() const
Definition Budget.h:252
Budget & WithBudgetType(const BudgetType &value)
Definition Budget.h:230
Budget & WithBudgetName(const Aws::String &value)
Definition Budget.h:66
void SetBudgetName(Aws::String &&value)
Definition Budget.h:64
void SetCostTypes(const CostTypes &value)
Definition Budget.h:166
Budget & WithTimePeriod(TimePeriod &&value)
Definition Budget.h:206
Budget & WithTimeUnit(TimeUnit &&value)
Definition Budget.h:181
Budget & WithCalculatedSpend(CalculatedSpend &&value)
Definition Budget.h:218
void SetCostTypes(CostTypes &&value)
Definition Budget.h:167
void SetBudgetType(BudgetType &&value)
Definition Budget.h:229
AWS_BUDGETS_API Budget(Aws::Utils::Json::JsonView jsonValue)
bool BudgetNameHasBeenSet() const
Definition Budget.h:62
void SetBudgetLimit(Spend &&value)
Definition Budget.h:85
Budget & WithCalculatedSpend(const CalculatedSpend &value)
Definition Budget.h:217
void SetLastUpdatedTime(Aws::Utils::DateTime &&value)
Definition Budget.h:241
void SetBudgetName(const Aws::String &value)
Definition Budget.h:63
Budget & WithBudgetLimit(Spend &&value)
Definition Budget.h:87
const TimeUnit & GetTimeUnit() const
Definition Budget.h:176
void SetAutoAdjustData(const AutoAdjustData &value)
Definition Budget.h:253
Budget & WithCostFilters(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
Definition Budget.h:147
bool CalculatedSpendHasBeenSet() const
Definition Budget.h:214
Budget & WithCostTypes(const CostTypes &value)
Definition Budget.h:168
Budget & WithAutoAdjustData(const AutoAdjustData &value)
Definition Budget.h:255
Budget & WithCostFilters(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
Definition Budget.h:148
Budget & AddCostFilters(const Aws::String &key, const Aws::Vector< Aws::String > &value)
Definition Budget.h:149
bool BudgetTypeHasBeenSet() const
Definition Budget.h:227
void SetTimeUnit(TimeUnit &&value)
Definition Budget.h:179
void SetTimeUnit(const TimeUnit &value)
Definition Budget.h:178
bool TimePeriodHasBeenSet() const
Definition Budget.h:202
Budget & AddPlannedBudgetLimits(const Aws::String &key, const Spend &value)
Definition Budget.h:125
void SetTimePeriod(TimePeriod &&value)
Definition Budget.h:204
void SetLastUpdatedTime(const Aws::Utils::DateTime &value)
Definition Budget.h:240
void SetTimePeriod(const TimePeriod &value)
Definition Budget.h:203
Budget & WithTimePeriod(const TimePeriod &value)
Definition Budget.h:205
void SetPlannedBudgetLimits(const Aws::Map< Aws::String, Spend > &value)
Definition Budget.h:121
void SetCostFilters(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
Definition Budget.h:146
Budget & AddCostFilters(Aws::String &&key, const Aws::Vector< Aws::String > &value)
Definition Budget.h:150
Budget & WithTimeUnit(const TimeUnit &value)
Definition Budget.h:180
AWS_BUDGETS_API Budget()
Budget & WithPlannedBudgetLimits(Aws::Map< Aws::String, Spend > &&value)
Definition Budget.h:124
bool BudgetLimitHasBeenSet() const
Definition Budget.h:83
void SetBudgetType(const BudgetType &value)
Definition Budget.h:228
Budget & WithBudgetName(Aws::String &&value)
Definition Budget.h:67
void SetCostFilters(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
Definition Budget.h:145
Budget & WithLastUpdatedTime(const Aws::Utils::DateTime &value)
Definition Budget.h:242
void SetCalculatedSpend(const CalculatedSpend &value)
Definition Budget.h:215
Budget & AddCostFilters(const Aws::String &key, Aws::Vector< Aws::String > &&value)
Definition Budget.h:151
void SetAutoAdjustData(AutoAdjustData &&value)
Definition Budget.h:254
const Aws::Utils::DateTime & GetLastUpdatedTime() const
Definition Budget.h:238
Budget & AddPlannedBudgetLimits(Aws::String &&key, Spend &&value)
Definition Budget.h:128
void SetBudgetLimit(const Spend &value)
Definition Budget.h:84
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