AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
SpendingLimitSummary.h
1
6#pragma once
7#include <aws/braket/Braket_EXPORTS.h>
8#include <aws/braket/model/TimePeriod.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Braket {
23namespace Model {
24
32 public:
33 AWS_BRAKET_API SpendingLimitSummary() = default;
36 AWS_BRAKET_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::String& GetSpendingLimitArn() const { return m_spendingLimitArn; }
44 inline bool SpendingLimitArnHasBeenSet() const { return m_spendingLimitArnHasBeenSet; }
45 template <typename SpendingLimitArnT = Aws::String>
46 void SetSpendingLimitArn(SpendingLimitArnT&& value) {
47 m_spendingLimitArnHasBeenSet = true;
48 m_spendingLimitArn = std::forward<SpendingLimitArnT>(value);
49 }
50 template <typename SpendingLimitArnT = Aws::String>
51 SpendingLimitSummary& WithSpendingLimitArn(SpendingLimitArnT&& value) {
52 SetSpendingLimitArn(std::forward<SpendingLimitArnT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetDeviceArn() const { return m_deviceArn; }
63 inline bool DeviceArnHasBeenSet() const { return m_deviceArnHasBeenSet; }
64 template <typename DeviceArnT = Aws::String>
65 void SetDeviceArn(DeviceArnT&& value) {
66 m_deviceArnHasBeenSet = true;
67 m_deviceArn = std::forward<DeviceArnT>(value);
68 }
69 template <typename DeviceArnT = Aws::String>
70 SpendingLimitSummary& WithDeviceArn(DeviceArnT&& value) {
71 SetDeviceArn(std::forward<DeviceArnT>(value));
72 return *this;
73 }
75
77
80 inline const TimePeriod& GetTimePeriod() const { return m_timePeriod; }
81 inline bool TimePeriodHasBeenSet() const { return m_timePeriodHasBeenSet; }
82 template <typename TimePeriodT = TimePeriod>
83 void SetTimePeriod(TimePeriodT&& value) {
84 m_timePeriodHasBeenSet = true;
85 m_timePeriod = std::forward<TimePeriodT>(value);
86 }
87 template <typename TimePeriodT = TimePeriod>
88 SpendingLimitSummary& WithTimePeriod(TimePeriodT&& value) {
89 SetTimePeriod(std::forward<TimePeriodT>(value));
90 return *this;
91 }
93
95
99 inline const Aws::String& GetSpendingLimit() const { return m_spendingLimit; }
100 inline bool SpendingLimitHasBeenSet() const { return m_spendingLimitHasBeenSet; }
101 template <typename SpendingLimitT = Aws::String>
102 void SetSpendingLimit(SpendingLimitT&& value) {
103 m_spendingLimitHasBeenSet = true;
104 m_spendingLimit = std::forward<SpendingLimitT>(value);
105 }
106 template <typename SpendingLimitT = Aws::String>
107 SpendingLimitSummary& WithSpendingLimit(SpendingLimitT&& value) {
108 SetSpendingLimit(std::forward<SpendingLimitT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::String& GetQueuedSpend() const { return m_queuedSpend; }
118 inline bool QueuedSpendHasBeenSet() const { return m_queuedSpendHasBeenSet; }
119 template <typename QueuedSpendT = Aws::String>
120 void SetQueuedSpend(QueuedSpendT&& value) {
121 m_queuedSpendHasBeenSet = true;
122 m_queuedSpend = std::forward<QueuedSpendT>(value);
123 }
124 template <typename QueuedSpendT = Aws::String>
125 SpendingLimitSummary& WithQueuedSpend(QueuedSpendT&& value) {
126 SetQueuedSpend(std::forward<QueuedSpendT>(value));
127 return *this;
128 }
130
132
136 inline const Aws::String& GetTotalSpend() const { return m_totalSpend; }
137 inline bool TotalSpendHasBeenSet() const { return m_totalSpendHasBeenSet; }
138 template <typename TotalSpendT = Aws::String>
139 void SetTotalSpend(TotalSpendT&& value) {
140 m_totalSpendHasBeenSet = true;
141 m_totalSpend = std::forward<TotalSpendT>(value);
142 }
143 template <typename TotalSpendT = Aws::String>
144 SpendingLimitSummary& WithTotalSpend(TotalSpendT&& value) {
145 SetTotalSpend(std::forward<TotalSpendT>(value));
146 return *this;
147 }
149
151
154 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
155 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
156 template <typename CreatedAtT = Aws::Utils::DateTime>
157 void SetCreatedAt(CreatedAtT&& value) {
158 m_createdAtHasBeenSet = true;
159 m_createdAt = std::forward<CreatedAtT>(value);
160 }
161 template <typename CreatedAtT = Aws::Utils::DateTime>
162 SpendingLimitSummary& WithCreatedAt(CreatedAtT&& value) {
163 SetCreatedAt(std::forward<CreatedAtT>(value));
164 return *this;
165 }
167
169
173 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
174 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
175 template <typename UpdatedAtT = Aws::Utils::DateTime>
176 void SetUpdatedAt(UpdatedAtT&& value) {
177 m_updatedAtHasBeenSet = true;
178 m_updatedAt = std::forward<UpdatedAtT>(value);
179 }
180 template <typename UpdatedAtT = Aws::Utils::DateTime>
181 SpendingLimitSummary& WithUpdatedAt(UpdatedAtT&& value) {
182 SetUpdatedAt(std::forward<UpdatedAtT>(value));
183 return *this;
184 }
186
188
192 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
193 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
194 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
195 void SetTags(TagsT&& value) {
196 m_tagsHasBeenSet = true;
197 m_tags = std::forward<TagsT>(value);
198 }
199 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
201 SetTags(std::forward<TagsT>(value));
202 return *this;
203 }
204 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
205 SpendingLimitSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
206 m_tagsHasBeenSet = true;
207 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
208 return *this;
209 }
211 private:
212 Aws::String m_spendingLimitArn;
213
214 Aws::String m_deviceArn;
215
216 TimePeriod m_timePeriod;
217
218 Aws::String m_spendingLimit;
219
220 Aws::String m_queuedSpend;
221
222 Aws::String m_totalSpend;
223
224 Aws::Utils::DateTime m_createdAt{};
225
226 Aws::Utils::DateTime m_updatedAt{};
227
229 bool m_spendingLimitArnHasBeenSet = false;
230 bool m_deviceArnHasBeenSet = false;
231 bool m_timePeriodHasBeenSet = false;
232 bool m_spendingLimitHasBeenSet = false;
233 bool m_queuedSpendHasBeenSet = false;
234 bool m_totalSpendHasBeenSet = false;
235 bool m_createdAtHasBeenSet = false;
236 bool m_updatedAtHasBeenSet = false;
237 bool m_tagsHasBeenSet = false;
238};
239
240} // namespace Model
241} // namespace Braket
242} // namespace Aws
SpendingLimitSummary & WithTimePeriod(TimePeriodT &&value)
SpendingLimitSummary & WithSpendingLimit(SpendingLimitT &&value)
AWS_BRAKET_API SpendingLimitSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSpendingLimitArn(SpendingLimitArnT &&value)
const Aws::String & GetSpendingLimitArn() const
SpendingLimitSummary & WithUpdatedAt(UpdatedAtT &&value)
SpendingLimitSummary & WithDeviceArn(DeviceArnT &&value)
void SetSpendingLimit(SpendingLimitT &&value)
SpendingLimitSummary & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const Aws::Utils::DateTime & GetUpdatedAt() const
SpendingLimitSummary & WithTotalSpend(TotalSpendT &&value)
SpendingLimitSummary & WithQueuedSpend(QueuedSpendT &&value)
SpendingLimitSummary & WithCreatedAt(CreatedAtT &&value)
AWS_BRAKET_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BRAKET_API SpendingLimitSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreatedAt() const
AWS_BRAKET_API SpendingLimitSummary()=default
SpendingLimitSummary & WithTags(TagsT &&value)
SpendingLimitSummary & WithSpendingLimitArn(SpendingLimitArnT &&value)
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
Aws::Utils::Json::JsonValue JsonValue