AWS SDK for C++

AWS SDK for C++ Version 1.11.778

Loading...
Searching...
No Matches
RequestedServiceQuotaChange.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/service-quotas/ServiceQuotas_EXPORTS.h>
10#include <aws/service-quotas/model/AppliedLevelEnum.h>
11#include <aws/service-quotas/model/QuotaContextInfo.h>
12#include <aws/service-quotas/model/RequestStatus.h>
13#include <aws/service-quotas/model/RequestType.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 RequestedServiceQuotaChange() = default;
37 AWS_SERVICEQUOTAS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetId() const { return m_id; }
44 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
45 template <typename IdT = Aws::String>
46 void SetId(IdT&& value) {
47 m_idHasBeenSet = true;
48 m_id = std::forward<IdT>(value);
49 }
50 template <typename IdT = Aws::String>
52 SetId(std::forward<IdT>(value));
53 return *this;
54 }
56
58
65 inline RequestType GetRequestType() const { return m_requestType; }
66 inline bool RequestTypeHasBeenSet() const { return m_requestTypeHasBeenSet; }
67 inline void SetRequestType(RequestType value) {
68 m_requestTypeHasBeenSet = true;
69 m_requestType = value;
70 }
72 SetRequestType(value);
73 return *this;
74 }
76
78
81 inline const Aws::String& GetCaseId() const { return m_caseId; }
82 inline bool CaseIdHasBeenSet() const { return m_caseIdHasBeenSet; }
83 template <typename CaseIdT = Aws::String>
84 void SetCaseId(CaseIdT&& value) {
85 m_caseIdHasBeenSet = true;
86 m_caseId = std::forward<CaseIdT>(value);
87 }
88 template <typename CaseIdT = Aws::String>
90 SetCaseId(std::forward<CaseIdT>(value));
91 return *this;
92 }
94
96
100 inline const Aws::String& GetServiceCode() const { return m_serviceCode; }
101 inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; }
102 template <typename ServiceCodeT = Aws::String>
103 void SetServiceCode(ServiceCodeT&& value) {
104 m_serviceCodeHasBeenSet = true;
105 m_serviceCode = std::forward<ServiceCodeT>(value);
106 }
107 template <typename ServiceCodeT = Aws::String>
109 SetServiceCode(std::forward<ServiceCodeT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::String& GetServiceName() const { return m_serviceName; }
119 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
120 template <typename ServiceNameT = Aws::String>
121 void SetServiceName(ServiceNameT&& value) {
122 m_serviceNameHasBeenSet = true;
123 m_serviceName = std::forward<ServiceNameT>(value);
124 }
125 template <typename ServiceNameT = Aws::String>
127 SetServiceName(std::forward<ServiceNameT>(value));
128 return *this;
129 }
131
133
138 inline const Aws::String& GetQuotaCode() const { return m_quotaCode; }
139 inline bool QuotaCodeHasBeenSet() const { return m_quotaCodeHasBeenSet; }
140 template <typename QuotaCodeT = Aws::String>
141 void SetQuotaCode(QuotaCodeT&& value) {
142 m_quotaCodeHasBeenSet = true;
143 m_quotaCode = std::forward<QuotaCodeT>(value);
144 }
145 template <typename QuotaCodeT = Aws::String>
147 SetQuotaCode(std::forward<QuotaCodeT>(value));
148 return *this;
149 }
151
153
156 inline const Aws::String& GetQuotaName() const { return m_quotaName; }
157 inline bool QuotaNameHasBeenSet() const { return m_quotaNameHasBeenSet; }
158 template <typename QuotaNameT = Aws::String>
159 void SetQuotaName(QuotaNameT&& value) {
160 m_quotaNameHasBeenSet = true;
161 m_quotaName = std::forward<QuotaNameT>(value);
162 }
163 template <typename QuotaNameT = Aws::String>
165 SetQuotaName(std::forward<QuotaNameT>(value));
166 return *this;
167 }
169
171
174 inline double GetDesiredValue() const { return m_desiredValue; }
175 inline bool DesiredValueHasBeenSet() const { return m_desiredValueHasBeenSet; }
176 inline void SetDesiredValue(double value) {
177 m_desiredValueHasBeenSet = true;
178 m_desiredValue = value;
179 }
181 SetDesiredValue(value);
182 return *this;
183 }
185
187
205 inline RequestStatus GetStatus() const { return m_status; }
206 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
207 inline void SetStatus(RequestStatus value) {
208 m_statusHasBeenSet = true;
209 m_status = value;
210 }
212 SetStatus(value);
213 return *this;
214 }
216
218
222 inline const Aws::Utils::DateTime& GetCreated() const { return m_created; }
223 inline bool CreatedHasBeenSet() const { return m_createdHasBeenSet; }
224 template <typename CreatedT = Aws::Utils::DateTime>
225 void SetCreated(CreatedT&& value) {
226 m_createdHasBeenSet = true;
227 m_created = std::forward<CreatedT>(value);
228 }
229 template <typename CreatedT = Aws::Utils::DateTime>
231 SetCreated(std::forward<CreatedT>(value));
232 return *this;
233 }
235
237
240 inline const Aws::Utils::DateTime& GetLastUpdated() const { return m_lastUpdated; }
241 inline bool LastUpdatedHasBeenSet() const { return m_lastUpdatedHasBeenSet; }
242 template <typename LastUpdatedT = Aws::Utils::DateTime>
243 void SetLastUpdated(LastUpdatedT&& value) {
244 m_lastUpdatedHasBeenSet = true;
245 m_lastUpdated = std::forward<LastUpdatedT>(value);
246 }
247 template <typename LastUpdatedT = Aws::Utils::DateTime>
249 SetLastUpdated(std::forward<LastUpdatedT>(value));
250 return *this;
251 }
253
255
258 inline const Aws::String& GetRequester() const { return m_requester; }
259 inline bool RequesterHasBeenSet() const { return m_requesterHasBeenSet; }
260 template <typename RequesterT = Aws::String>
261 void SetRequester(RequesterT&& value) {
262 m_requesterHasBeenSet = true;
263 m_requester = std::forward<RequesterT>(value);
264 }
265 template <typename RequesterT = Aws::String>
267 SetRequester(std::forward<RequesterT>(value));
268 return *this;
269 }
271
273
276 inline const Aws::String& GetQuotaArn() const { return m_quotaArn; }
277 inline bool QuotaArnHasBeenSet() const { return m_quotaArnHasBeenSet; }
278 template <typename QuotaArnT = Aws::String>
279 void SetQuotaArn(QuotaArnT&& value) {
280 m_quotaArnHasBeenSet = true;
281 m_quotaArn = std::forward<QuotaArnT>(value);
282 }
283 template <typename QuotaArnT = Aws::String>
285 SetQuotaArn(std::forward<QuotaArnT>(value));
286 return *this;
287 }
289
291
294 inline bool GetGlobalQuota() const { return m_globalQuota; }
295 inline bool GlobalQuotaHasBeenSet() const { return m_globalQuotaHasBeenSet; }
296 inline void SetGlobalQuota(bool value) {
297 m_globalQuotaHasBeenSet = true;
298 m_globalQuota = value;
299 }
301 SetGlobalQuota(value);
302 return *this;
303 }
305
307
310 inline const Aws::String& GetUnit() const { return m_unit; }
311 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
312 template <typename UnitT = Aws::String>
313 void SetUnit(UnitT&& value) {
314 m_unitHasBeenSet = true;
315 m_unit = std::forward<UnitT>(value);
316 }
317 template <typename UnitT = Aws::String>
319 SetUnit(std::forward<UnitT>(value));
320 return *this;
321 }
323
325
330 inline AppliedLevelEnum GetQuotaRequestedAtLevel() const { return m_quotaRequestedAtLevel; }
331 inline bool QuotaRequestedAtLevelHasBeenSet() const { return m_quotaRequestedAtLevelHasBeenSet; }
333 m_quotaRequestedAtLevelHasBeenSet = true;
334 m_quotaRequestedAtLevel = value;
335 }
338 return *this;
339 }
341
343
346 inline const QuotaContextInfo& GetQuotaContext() const { return m_quotaContext; }
347 inline bool QuotaContextHasBeenSet() const { return m_quotaContextHasBeenSet; }
348 template <typename QuotaContextT = QuotaContextInfo>
349 void SetQuotaContext(QuotaContextT&& value) {
350 m_quotaContextHasBeenSet = true;
351 m_quotaContext = std::forward<QuotaContextT>(value);
352 }
353 template <typename QuotaContextT = QuotaContextInfo>
355 SetQuotaContext(std::forward<QuotaContextT>(value));
356 return *this;
357 }
359 private:
360 Aws::String m_id;
361
362 RequestType m_requestType{RequestType::NOT_SET};
363
364 Aws::String m_caseId;
365
366 Aws::String m_serviceCode;
367
368 Aws::String m_serviceName;
369
370 Aws::String m_quotaCode;
371
372 Aws::String m_quotaName;
373
374 double m_desiredValue{0.0};
375
377
378 Aws::Utils::DateTime m_created{};
379
380 Aws::Utils::DateTime m_lastUpdated{};
381
382 Aws::String m_requester;
383
384 Aws::String m_quotaArn;
385
386 bool m_globalQuota{false};
387
388 Aws::String m_unit;
389
390 AppliedLevelEnum m_quotaRequestedAtLevel{AppliedLevelEnum::NOT_SET};
391
392 QuotaContextInfo m_quotaContext;
393 bool m_idHasBeenSet = false;
394 bool m_requestTypeHasBeenSet = false;
395 bool m_caseIdHasBeenSet = false;
396 bool m_serviceCodeHasBeenSet = false;
397 bool m_serviceNameHasBeenSet = false;
398 bool m_quotaCodeHasBeenSet = false;
399 bool m_quotaNameHasBeenSet = false;
400 bool m_desiredValueHasBeenSet = false;
401 bool m_statusHasBeenSet = false;
402 bool m_createdHasBeenSet = false;
403 bool m_lastUpdatedHasBeenSet = false;
404 bool m_requesterHasBeenSet = false;
405 bool m_quotaArnHasBeenSet = false;
406 bool m_globalQuotaHasBeenSet = false;
407 bool m_unitHasBeenSet = false;
408 bool m_quotaRequestedAtLevelHasBeenSet = false;
409 bool m_quotaContextHasBeenSet = false;
410};
411
412} // namespace Model
413} // namespace ServiceQuotas
414} // namespace Aws
RequestedServiceQuotaChange & WithCaseId(CaseIdT &&value)
RequestedServiceQuotaChange & WithServiceCode(ServiceCodeT &&value)
RequestedServiceQuotaChange & WithRequestType(RequestType value)
RequestedServiceQuotaChange & WithQuotaArn(QuotaArnT &&value)
RequestedServiceQuotaChange & WithQuotaContext(QuotaContextT &&value)
AWS_SERVICEQUOTAS_API Aws::Utils::Json::JsonValue Jsonize() const
RequestedServiceQuotaChange & WithQuotaCode(QuotaCodeT &&value)
RequestedServiceQuotaChange & WithRequester(RequesterT &&value)
RequestedServiceQuotaChange & WithLastUpdated(LastUpdatedT &&value)
RequestedServiceQuotaChange & WithCreated(CreatedT &&value)
RequestedServiceQuotaChange & WithDesiredValue(double value)
AWS_SERVICEQUOTAS_API RequestedServiceQuotaChange & operator=(Aws::Utils::Json::JsonView jsonValue)
RequestedServiceQuotaChange & WithServiceName(ServiceNameT &&value)
RequestedServiceQuotaChange & WithQuotaName(QuotaNameT &&value)
AWS_SERVICEQUOTAS_API RequestedServiceQuotaChange()=default
AWS_SERVICEQUOTAS_API RequestedServiceQuotaChange(Aws::Utils::Json::JsonView jsonValue)
RequestedServiceQuotaChange & WithStatus(RequestStatus value)
RequestedServiceQuotaChange & WithQuotaRequestedAtLevel(AppliedLevelEnum value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue