AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ServiceQuota.h
1
6#pragma once
7#include <aws/service-quotas/ServiceQuotas_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/service-quotas/model/MetricInfo.h>
10#include <aws/service-quotas/model/QuotaPeriod.h>
11#include <aws/service-quotas/model/ErrorReason.h>
12#include <aws/service-quotas/model/AppliedLevelEnum.h>
13#include <aws/service-quotas/model/QuotaContextInfo.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace ServiceQuotas
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_SERVICEQUOTAS_API ServiceQuota();
40 AWS_SERVICEQUOTAS_API ServiceQuota(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SERVICEQUOTAS_API ServiceQuota& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_SERVICEQUOTAS_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const Aws::String& GetServiceCode() const{ return m_serviceCode; }
51 inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; }
52 inline void SetServiceCode(const Aws::String& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = value; }
53 inline void SetServiceCode(Aws::String&& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = std::move(value); }
54 inline void SetServiceCode(const char* value) { m_serviceCodeHasBeenSet = true; m_serviceCode.assign(value); }
55 inline ServiceQuota& WithServiceCode(const Aws::String& value) { SetServiceCode(value); return *this;}
56 inline ServiceQuota& WithServiceCode(Aws::String&& value) { SetServiceCode(std::move(value)); return *this;}
57 inline ServiceQuota& WithServiceCode(const char* value) { SetServiceCode(value); return *this;}
59
61
64 inline const Aws::String& GetServiceName() const{ return m_serviceName; }
65 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
66 inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
67 inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); }
68 inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); }
69 inline ServiceQuota& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;}
70 inline ServiceQuota& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;}
71 inline ServiceQuota& WithServiceName(const char* value) { SetServiceName(value); return *this;}
73
75
78 inline const Aws::String& GetQuotaArn() const{ return m_quotaArn; }
79 inline bool QuotaArnHasBeenSet() const { return m_quotaArnHasBeenSet; }
80 inline void SetQuotaArn(const Aws::String& value) { m_quotaArnHasBeenSet = true; m_quotaArn = value; }
81 inline void SetQuotaArn(Aws::String&& value) { m_quotaArnHasBeenSet = true; m_quotaArn = std::move(value); }
82 inline void SetQuotaArn(const char* value) { m_quotaArnHasBeenSet = true; m_quotaArn.assign(value); }
83 inline ServiceQuota& WithQuotaArn(const Aws::String& value) { SetQuotaArn(value); return *this;}
84 inline ServiceQuota& WithQuotaArn(Aws::String&& value) { SetQuotaArn(std::move(value)); return *this;}
85 inline ServiceQuota& WithQuotaArn(const char* value) { SetQuotaArn(value); return *this;}
87
89
94 inline const Aws::String& GetQuotaCode() const{ return m_quotaCode; }
95 inline bool QuotaCodeHasBeenSet() const { return m_quotaCodeHasBeenSet; }
96 inline void SetQuotaCode(const Aws::String& value) { m_quotaCodeHasBeenSet = true; m_quotaCode = value; }
97 inline void SetQuotaCode(Aws::String&& value) { m_quotaCodeHasBeenSet = true; m_quotaCode = std::move(value); }
98 inline void SetQuotaCode(const char* value) { m_quotaCodeHasBeenSet = true; m_quotaCode.assign(value); }
99 inline ServiceQuota& WithQuotaCode(const Aws::String& value) { SetQuotaCode(value); return *this;}
100 inline ServiceQuota& WithQuotaCode(Aws::String&& value) { SetQuotaCode(std::move(value)); return *this;}
101 inline ServiceQuota& WithQuotaCode(const char* value) { SetQuotaCode(value); return *this;}
103
105
108 inline const Aws::String& GetQuotaName() const{ return m_quotaName; }
109 inline bool QuotaNameHasBeenSet() const { return m_quotaNameHasBeenSet; }
110 inline void SetQuotaName(const Aws::String& value) { m_quotaNameHasBeenSet = true; m_quotaName = value; }
111 inline void SetQuotaName(Aws::String&& value) { m_quotaNameHasBeenSet = true; m_quotaName = std::move(value); }
112 inline void SetQuotaName(const char* value) { m_quotaNameHasBeenSet = true; m_quotaName.assign(value); }
113 inline ServiceQuota& WithQuotaName(const Aws::String& value) { SetQuotaName(value); return *this;}
114 inline ServiceQuota& WithQuotaName(Aws::String&& value) { SetQuotaName(std::move(value)); return *this;}
115 inline ServiceQuota& WithQuotaName(const char* value) { SetQuotaName(value); return *this;}
117
119
122 inline double GetValue() const{ return m_value; }
123 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
124 inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; }
125 inline ServiceQuota& WithValue(double value) { SetValue(value); return *this;}
127
129
132 inline const Aws::String& GetUnit() const{ return m_unit; }
133 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
134 inline void SetUnit(const Aws::String& value) { m_unitHasBeenSet = true; m_unit = value; }
135 inline void SetUnit(Aws::String&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
136 inline void SetUnit(const char* value) { m_unitHasBeenSet = true; m_unit.assign(value); }
137 inline ServiceQuota& WithUnit(const Aws::String& value) { SetUnit(value); return *this;}
138 inline ServiceQuota& WithUnit(Aws::String&& value) { SetUnit(std::move(value)); return *this;}
139 inline ServiceQuota& WithUnit(const char* value) { SetUnit(value); return *this;}
141
143
146 inline bool GetAdjustable() const{ return m_adjustable; }
147 inline bool AdjustableHasBeenSet() const { return m_adjustableHasBeenSet; }
148 inline void SetAdjustable(bool value) { m_adjustableHasBeenSet = true; m_adjustable = value; }
149 inline ServiceQuota& WithAdjustable(bool value) { SetAdjustable(value); return *this;}
151
153
156 inline bool GetGlobalQuota() const{ return m_globalQuota; }
157 inline bool GlobalQuotaHasBeenSet() const { return m_globalQuotaHasBeenSet; }
158 inline void SetGlobalQuota(bool value) { m_globalQuotaHasBeenSet = true; m_globalQuota = value; }
159 inline ServiceQuota& WithGlobalQuota(bool value) { SetGlobalQuota(value); return *this;}
161
163
166 inline const MetricInfo& GetUsageMetric() const{ return m_usageMetric; }
167 inline bool UsageMetricHasBeenSet() const { return m_usageMetricHasBeenSet; }
168 inline void SetUsageMetric(const MetricInfo& value) { m_usageMetricHasBeenSet = true; m_usageMetric = value; }
169 inline void SetUsageMetric(MetricInfo&& value) { m_usageMetricHasBeenSet = true; m_usageMetric = std::move(value); }
170 inline ServiceQuota& WithUsageMetric(const MetricInfo& value) { SetUsageMetric(value); return *this;}
171 inline ServiceQuota& WithUsageMetric(MetricInfo&& value) { SetUsageMetric(std::move(value)); return *this;}
173
175
178 inline const QuotaPeriod& GetPeriod() const{ return m_period; }
179 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
180 inline void SetPeriod(const QuotaPeriod& value) { m_periodHasBeenSet = true; m_period = value; }
181 inline void SetPeriod(QuotaPeriod&& value) { m_periodHasBeenSet = true; m_period = std::move(value); }
182 inline ServiceQuota& WithPeriod(const QuotaPeriod& value) { SetPeriod(value); return *this;}
183 inline ServiceQuota& WithPeriod(QuotaPeriod&& value) { SetPeriod(std::move(value)); return *this;}
185
187
190 inline const ErrorReason& GetErrorReason() const{ return m_errorReason; }
191 inline bool ErrorReasonHasBeenSet() const { return m_errorReasonHasBeenSet; }
192 inline void SetErrorReason(const ErrorReason& value) { m_errorReasonHasBeenSet = true; m_errorReason = value; }
193 inline void SetErrorReason(ErrorReason&& value) { m_errorReasonHasBeenSet = true; m_errorReason = std::move(value); }
194 inline ServiceQuota& WithErrorReason(const ErrorReason& value) { SetErrorReason(value); return *this;}
195 inline ServiceQuota& WithErrorReason(ErrorReason&& value) { SetErrorReason(std::move(value)); return *this;}
197
199
202 inline const AppliedLevelEnum& GetQuotaAppliedAtLevel() const{ return m_quotaAppliedAtLevel; }
203 inline bool QuotaAppliedAtLevelHasBeenSet() const { return m_quotaAppliedAtLevelHasBeenSet; }
204 inline void SetQuotaAppliedAtLevel(const AppliedLevelEnum& value) { m_quotaAppliedAtLevelHasBeenSet = true; m_quotaAppliedAtLevel = value; }
205 inline void SetQuotaAppliedAtLevel(AppliedLevelEnum&& value) { m_quotaAppliedAtLevelHasBeenSet = true; m_quotaAppliedAtLevel = std::move(value); }
207 inline ServiceQuota& WithQuotaAppliedAtLevel(AppliedLevelEnum&& value) { SetQuotaAppliedAtLevel(std::move(value)); return *this;}
209
211
214 inline const QuotaContextInfo& GetQuotaContext() const{ return m_quotaContext; }
215 inline bool QuotaContextHasBeenSet() const { return m_quotaContextHasBeenSet; }
216 inline void SetQuotaContext(const QuotaContextInfo& value) { m_quotaContextHasBeenSet = true; m_quotaContext = value; }
217 inline void SetQuotaContext(QuotaContextInfo&& value) { m_quotaContextHasBeenSet = true; m_quotaContext = std::move(value); }
218 inline ServiceQuota& WithQuotaContext(const QuotaContextInfo& value) { SetQuotaContext(value); return *this;}
219 inline ServiceQuota& WithQuotaContext(QuotaContextInfo&& value) { SetQuotaContext(std::move(value)); return *this;}
221 private:
222
223 Aws::String m_serviceCode;
224 bool m_serviceCodeHasBeenSet = false;
225
226 Aws::String m_serviceName;
227 bool m_serviceNameHasBeenSet = false;
228
229 Aws::String m_quotaArn;
230 bool m_quotaArnHasBeenSet = false;
231
232 Aws::String m_quotaCode;
233 bool m_quotaCodeHasBeenSet = false;
234
235 Aws::String m_quotaName;
236 bool m_quotaNameHasBeenSet = false;
237
238 double m_value;
239 bool m_valueHasBeenSet = false;
240
241 Aws::String m_unit;
242 bool m_unitHasBeenSet = false;
243
244 bool m_adjustable;
245 bool m_adjustableHasBeenSet = false;
246
247 bool m_globalQuota;
248 bool m_globalQuotaHasBeenSet = false;
249
250 MetricInfo m_usageMetric;
251 bool m_usageMetricHasBeenSet = false;
252
253 QuotaPeriod m_period;
254 bool m_periodHasBeenSet = false;
255
256 ErrorReason m_errorReason;
257 bool m_errorReasonHasBeenSet = false;
258
259 AppliedLevelEnum m_quotaAppliedAtLevel;
260 bool m_quotaAppliedAtLevelHasBeenSet = false;
261
262 QuotaContextInfo m_quotaContext;
263 bool m_quotaContextHasBeenSet = false;
264 };
265
266} // namespace Model
267} // namespace ServiceQuotas
268} // namespace Aws
ServiceQuota & WithServiceCode(Aws::String &&value)
void SetQuotaName(const Aws::String &value)
void SetQuotaAppliedAtLevel(const AppliedLevelEnum &value)
ServiceQuota & WithValue(double value)
ServiceQuota & WithUsageMetric(const MetricInfo &value)
const Aws::String & GetServiceName() const
ServiceQuota & WithUsageMetric(MetricInfo &&value)
void SetUnit(Aws::String &&value)
void SetQuotaContext(const QuotaContextInfo &value)
void SetServiceName(const Aws::String &value)
void SetQuotaContext(QuotaContextInfo &&value)
void SetServiceCode(Aws::String &&value)
ServiceQuota & WithPeriod(const QuotaPeriod &value)
const Aws::String & GetQuotaName() const
const AppliedLevelEnum & GetQuotaAppliedAtLevel() const
void SetServiceName(Aws::String &&value)
const ErrorReason & GetErrorReason() const
ServiceQuota & WithServiceName(Aws::String &&value)
void SetPeriod(const QuotaPeriod &value)
void SetQuotaCode(Aws::String &&value)
void SetQuotaCode(const char *value)
ServiceQuota & WithQuotaCode(const char *value)
ServiceQuota & WithQuotaArn(const char *value)
const MetricInfo & GetUsageMetric() const
void SetQuotaCode(const Aws::String &value)
ServiceQuota & WithErrorReason(const ErrorReason &value)
const Aws::String & GetQuotaCode() const
void SetQuotaName(Aws::String &&value)
ServiceQuota & WithErrorReason(ErrorReason &&value)
void SetUsageMetric(MetricInfo &&value)
void SetServiceName(const char *value)
ServiceQuota & WithQuotaContext(const QuotaContextInfo &value)
ServiceQuota & WithServiceCode(const Aws::String &value)
ServiceQuota & WithServiceName(const Aws::String &value)
ServiceQuota & WithQuotaAppliedAtLevel(AppliedLevelEnum &&value)
const Aws::String & GetQuotaArn() const
ServiceQuota & WithQuotaCode(Aws::String &&value)
ServiceQuota & WithServiceName(const char *value)
void SetQuotaArn(const Aws::String &value)
ServiceQuota & WithAdjustable(bool value)
const Aws::String & GetUnit() const
ServiceQuota & WithQuotaName(const char *value)
ServiceQuota & WithQuotaContext(QuotaContextInfo &&value)
ServiceQuota & WithUnit(const char *value)
void SetServiceCode(const char *value)
const Aws::String & GetServiceCode() const
ServiceQuota & WithQuotaArn(const Aws::String &value)
AWS_SERVICEQUOTAS_API ServiceQuota()
ServiceQuota & WithGlobalQuota(bool value)
ServiceQuota & WithUnit(Aws::String &&value)
void SetQuotaArn(Aws::String &&value)
const QuotaContextInfo & GetQuotaContext() const
ServiceQuota & WithQuotaCode(const Aws::String &value)
void SetServiceCode(const Aws::String &value)
ServiceQuota & WithPeriod(QuotaPeriod &&value)
AWS_SERVICEQUOTAS_API ServiceQuota & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceQuota & WithQuotaName(Aws::String &&value)
ServiceQuota & WithServiceCode(const char *value)
ServiceQuota & WithQuotaName(const Aws::String &value)
void SetUnit(const Aws::String &value)
void SetPeriod(QuotaPeriod &&value)
ServiceQuota & WithUnit(const Aws::String &value)
ServiceQuota & WithQuotaAppliedAtLevel(const AppliedLevelEnum &value)
void SetUsageMetric(const MetricInfo &value)
const QuotaPeriod & GetPeriod() const
void SetErrorReason(const ErrorReason &value)
AWS_SERVICEQUOTAS_API ServiceQuota(Aws::Utils::Json::JsonView jsonValue)
void SetQuotaArn(const char *value)
void SetErrorReason(ErrorReason &&value)
ServiceQuota & WithQuotaArn(Aws::String &&value)
AWS_SERVICEQUOTAS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetQuotaAppliedAtLevel(AppliedLevelEnum &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue