AWS SDK for C++

AWS SDK for C++ Version 1.11.773

Loading...
Searching...
No Matches
ServiceQuota.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/service-quotas/ServiceQuotas_EXPORTS.h>
9#include <aws/service-quotas/model/AppliedLevelEnum.h>
10#include <aws/service-quotas/model/ErrorReason.h>
11#include <aws/service-quotas/model/MetricInfo.h>
12#include <aws/service-quotas/model/QuotaContextInfo.h>
13#include <aws/service-quotas/model/QuotaPeriod.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ServiceQuotas {
25namespace Model {
26
33 public:
34 AWS_SERVICEQUOTAS_API ServiceQuota() = default;
35 AWS_SERVICEQUOTAS_API ServiceQuota(Aws::Utils::Json::JsonView jsonValue);
36 AWS_SERVICEQUOTAS_API ServiceQuota& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SERVICEQUOTAS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
44 inline const Aws::String& GetServiceCode() const { return m_serviceCode; }
45 inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; }
46 template <typename ServiceCodeT = Aws::String>
47 void SetServiceCode(ServiceCodeT&& value) {
48 m_serviceCodeHasBeenSet = true;
49 m_serviceCode = std::forward<ServiceCodeT>(value);
50 }
51 template <typename ServiceCodeT = Aws::String>
52 ServiceQuota& WithServiceCode(ServiceCodeT&& value) {
53 SetServiceCode(std::forward<ServiceCodeT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetServiceName() const { return m_serviceName; }
63 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
64 template <typename ServiceNameT = Aws::String>
65 void SetServiceName(ServiceNameT&& value) {
66 m_serviceNameHasBeenSet = true;
67 m_serviceName = std::forward<ServiceNameT>(value);
68 }
69 template <typename ServiceNameT = Aws::String>
70 ServiceQuota& WithServiceName(ServiceNameT&& value) {
71 SetServiceName(std::forward<ServiceNameT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetQuotaArn() const { return m_quotaArn; }
81 inline bool QuotaArnHasBeenSet() const { return m_quotaArnHasBeenSet; }
82 template <typename QuotaArnT = Aws::String>
83 void SetQuotaArn(QuotaArnT&& value) {
84 m_quotaArnHasBeenSet = true;
85 m_quotaArn = std::forward<QuotaArnT>(value);
86 }
87 template <typename QuotaArnT = Aws::String>
88 ServiceQuota& WithQuotaArn(QuotaArnT&& value) {
89 SetQuotaArn(std::forward<QuotaArnT>(value));
90 return *this;
91 }
93
95
100 inline const Aws::String& GetQuotaCode() const { return m_quotaCode; }
101 inline bool QuotaCodeHasBeenSet() const { return m_quotaCodeHasBeenSet; }
102 template <typename QuotaCodeT = Aws::String>
103 void SetQuotaCode(QuotaCodeT&& value) {
104 m_quotaCodeHasBeenSet = true;
105 m_quotaCode = std::forward<QuotaCodeT>(value);
106 }
107 template <typename QuotaCodeT = Aws::String>
108 ServiceQuota& WithQuotaCode(QuotaCodeT&& value) {
109 SetQuotaCode(std::forward<QuotaCodeT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::String& GetQuotaName() const { return m_quotaName; }
119 inline bool QuotaNameHasBeenSet() const { return m_quotaNameHasBeenSet; }
120 template <typename QuotaNameT = Aws::String>
121 void SetQuotaName(QuotaNameT&& value) {
122 m_quotaNameHasBeenSet = true;
123 m_quotaName = std::forward<QuotaNameT>(value);
124 }
125 template <typename QuotaNameT = Aws::String>
126 ServiceQuota& WithQuotaName(QuotaNameT&& value) {
127 SetQuotaName(std::forward<QuotaNameT>(value));
128 return *this;
129 }
131
133
136 inline double GetValue() const { return m_value; }
137 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
138 inline void SetValue(double value) {
139 m_valueHasBeenSet = true;
140 m_value = value;
141 }
142 inline ServiceQuota& WithValue(double value) {
143 SetValue(value);
144 return *this;
145 }
147
149
152 inline const Aws::String& GetUnit() const { return m_unit; }
153 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
154 template <typename UnitT = Aws::String>
155 void SetUnit(UnitT&& value) {
156 m_unitHasBeenSet = true;
157 m_unit = std::forward<UnitT>(value);
158 }
159 template <typename UnitT = Aws::String>
160 ServiceQuota& WithUnit(UnitT&& value) {
161 SetUnit(std::forward<UnitT>(value));
162 return *this;
163 }
165
167
170 inline bool GetAdjustable() const { return m_adjustable; }
171 inline bool AdjustableHasBeenSet() const { return m_adjustableHasBeenSet; }
172 inline void SetAdjustable(bool value) {
173 m_adjustableHasBeenSet = true;
174 m_adjustable = value;
175 }
176 inline ServiceQuota& WithAdjustable(bool value) {
177 SetAdjustable(value);
178 return *this;
179 }
181
183
186 inline bool GetGlobalQuota() const { return m_globalQuota; }
187 inline bool GlobalQuotaHasBeenSet() const { return m_globalQuotaHasBeenSet; }
188 inline void SetGlobalQuota(bool value) {
189 m_globalQuotaHasBeenSet = true;
190 m_globalQuota = value;
191 }
192 inline ServiceQuota& WithGlobalQuota(bool value) {
193 SetGlobalQuota(value);
194 return *this;
195 }
197
199
202 inline const MetricInfo& GetUsageMetric() const { return m_usageMetric; }
203 inline bool UsageMetricHasBeenSet() const { return m_usageMetricHasBeenSet; }
204 template <typename UsageMetricT = MetricInfo>
205 void SetUsageMetric(UsageMetricT&& value) {
206 m_usageMetricHasBeenSet = true;
207 m_usageMetric = std::forward<UsageMetricT>(value);
208 }
209 template <typename UsageMetricT = MetricInfo>
210 ServiceQuota& WithUsageMetric(UsageMetricT&& value) {
211 SetUsageMetric(std::forward<UsageMetricT>(value));
212 return *this;
213 }
215
217
220 inline const QuotaPeriod& GetPeriod() const { return m_period; }
221 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
222 template <typename PeriodT = QuotaPeriod>
223 void SetPeriod(PeriodT&& value) {
224 m_periodHasBeenSet = true;
225 m_period = std::forward<PeriodT>(value);
226 }
227 template <typename PeriodT = QuotaPeriod>
228 ServiceQuota& WithPeriod(PeriodT&& value) {
229 SetPeriod(std::forward<PeriodT>(value));
230 return *this;
231 }
233
235
238 inline const ErrorReason& GetErrorReason() const { return m_errorReason; }
239 inline bool ErrorReasonHasBeenSet() const { return m_errorReasonHasBeenSet; }
240 template <typename ErrorReasonT = ErrorReason>
241 void SetErrorReason(ErrorReasonT&& value) {
242 m_errorReasonHasBeenSet = true;
243 m_errorReason = std::forward<ErrorReasonT>(value);
244 }
245 template <typename ErrorReasonT = ErrorReason>
246 ServiceQuota& WithErrorReason(ErrorReasonT&& value) {
247 SetErrorReason(std::forward<ErrorReasonT>(value));
248 return *this;
249 }
251
253
258 inline AppliedLevelEnum GetQuotaAppliedAtLevel() const { return m_quotaAppliedAtLevel; }
259 inline bool QuotaAppliedAtLevelHasBeenSet() const { return m_quotaAppliedAtLevelHasBeenSet; }
261 m_quotaAppliedAtLevelHasBeenSet = true;
262 m_quotaAppliedAtLevel = value;
263 }
266 return *this;
267 }
269
271
274 inline const QuotaContextInfo& GetQuotaContext() const { return m_quotaContext; }
275 inline bool QuotaContextHasBeenSet() const { return m_quotaContextHasBeenSet; }
276 template <typename QuotaContextT = QuotaContextInfo>
277 void SetQuotaContext(QuotaContextT&& value) {
278 m_quotaContextHasBeenSet = true;
279 m_quotaContext = std::forward<QuotaContextT>(value);
280 }
281 template <typename QuotaContextT = QuotaContextInfo>
282 ServiceQuota& WithQuotaContext(QuotaContextT&& value) {
283 SetQuotaContext(std::forward<QuotaContextT>(value));
284 return *this;
285 }
287
289
292 inline const Aws::String& GetDescription() const { return m_description; }
293 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
294 template <typename DescriptionT = Aws::String>
295 void SetDescription(DescriptionT&& value) {
296 m_descriptionHasBeenSet = true;
297 m_description = std::forward<DescriptionT>(value);
298 }
299 template <typename DescriptionT = Aws::String>
300 ServiceQuota& WithDescription(DescriptionT&& value) {
301 SetDescription(std::forward<DescriptionT>(value));
302 return *this;
303 }
305 private:
306 Aws::String m_serviceCode;
307
308 Aws::String m_serviceName;
309
310 Aws::String m_quotaArn;
311
312 Aws::String m_quotaCode;
313
314 Aws::String m_quotaName;
315
316 double m_value{0.0};
317
318 Aws::String m_unit;
319
320 bool m_adjustable{false};
321
322 bool m_globalQuota{false};
323
324 MetricInfo m_usageMetric;
325
326 QuotaPeriod m_period;
327
328 ErrorReason m_errorReason;
329
330 AppliedLevelEnum m_quotaAppliedAtLevel{AppliedLevelEnum::NOT_SET};
331
332 QuotaContextInfo m_quotaContext;
333
334 Aws::String m_description;
335 bool m_serviceCodeHasBeenSet = false;
336 bool m_serviceNameHasBeenSet = false;
337 bool m_quotaArnHasBeenSet = false;
338 bool m_quotaCodeHasBeenSet = false;
339 bool m_quotaNameHasBeenSet = false;
340 bool m_valueHasBeenSet = false;
341 bool m_unitHasBeenSet = false;
342 bool m_adjustableHasBeenSet = false;
343 bool m_globalQuotaHasBeenSet = false;
344 bool m_usageMetricHasBeenSet = false;
345 bool m_periodHasBeenSet = false;
346 bool m_errorReasonHasBeenSet = false;
347 bool m_quotaAppliedAtLevelHasBeenSet = false;
348 bool m_quotaContextHasBeenSet = false;
349 bool m_descriptionHasBeenSet = false;
350};
351
352} // namespace Model
353} // namespace ServiceQuotas
354} // namespace Aws
void SetQuotaArn(QuotaArnT &&value)
ServiceQuota & WithValue(double value)
const Aws::String & GetServiceName() const
AppliedLevelEnum GetQuotaAppliedAtLevel() const
const Aws::String & GetQuotaName() const
void SetErrorReason(ErrorReasonT &&value)
ServiceQuota & WithQuotaCode(QuotaCodeT &&value)
void SetQuotaAppliedAtLevel(AppliedLevelEnum value)
const ErrorReason & GetErrorReason() const
ServiceQuota & WithUsageMetric(UsageMetricT &&value)
ServiceQuota & WithQuotaAppliedAtLevel(AppliedLevelEnum value)
ServiceQuota & WithQuotaName(QuotaNameT &&value)
ServiceQuota & WithPeriod(PeriodT &&value)
ServiceQuota & WithQuotaContext(QuotaContextT &&value)
const MetricInfo & GetUsageMetric() const
const Aws::String & GetQuotaCode() const
ServiceQuota & WithErrorReason(ErrorReasonT &&value)
void SetDescription(DescriptionT &&value)
void SetQuotaName(QuotaNameT &&value)
ServiceQuota & WithUnit(UnitT &&value)
ServiceQuota & WithServiceCode(ServiceCodeT &&value)
const Aws::String & GetQuotaArn() const
ServiceQuota & WithQuotaArn(QuotaArnT &&value)
ServiceQuota & WithAdjustable(bool value)
const Aws::String & GetUnit() const
const Aws::String & GetServiceCode() const
void SetServiceName(ServiceNameT &&value)
ServiceQuota & WithGlobalQuota(bool value)
ServiceQuota & WithServiceName(ServiceNameT &&value)
const QuotaContextInfo & GetQuotaContext() const
AWS_SERVICEQUOTAS_API ServiceQuota & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SERVICEQUOTAS_API ServiceQuota()=default
const QuotaPeriod & GetPeriod() const
ServiceQuota & WithDescription(DescriptionT &&value)
AWS_SERVICEQUOTAS_API ServiceQuota(Aws::Utils::Json::JsonView jsonValue)
AWS_SERVICEQUOTAS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetQuotaContext(QuotaContextT &&value)
const Aws::String & GetDescription() const
void SetUsageMetric(UsageMetricT &&value)
void SetQuotaCode(QuotaCodeT &&value)
void SetServiceCode(ServiceCodeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue