AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ServiceCodeT = Aws::String>
53 void SetServiceCode(ServiceCodeT&& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = std::forward<ServiceCodeT>(value); }
54 template<typename ServiceCodeT = Aws::String>
55 ServiceQuota& WithServiceCode(ServiceCodeT&& value) { SetServiceCode(std::forward<ServiceCodeT>(value)); return *this;}
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) { m_serviceNameHasBeenSet = true; m_serviceName = std::forward<ServiceNameT>(value); }
66 template<typename ServiceNameT = Aws::String>
67 ServiceQuota& WithServiceName(ServiceNameT&& value) { SetServiceName(std::forward<ServiceNameT>(value)); return *this;}
69
71
74 inline const Aws::String& GetQuotaArn() const { return m_quotaArn; }
75 inline bool QuotaArnHasBeenSet() const { return m_quotaArnHasBeenSet; }
76 template<typename QuotaArnT = Aws::String>
77 void SetQuotaArn(QuotaArnT&& value) { m_quotaArnHasBeenSet = true; m_quotaArn = std::forward<QuotaArnT>(value); }
78 template<typename QuotaArnT = Aws::String>
79 ServiceQuota& WithQuotaArn(QuotaArnT&& value) { SetQuotaArn(std::forward<QuotaArnT>(value)); return *this;}
81
83
88 inline const Aws::String& GetQuotaCode() const { return m_quotaCode; }
89 inline bool QuotaCodeHasBeenSet() const { return m_quotaCodeHasBeenSet; }
90 template<typename QuotaCodeT = Aws::String>
91 void SetQuotaCode(QuotaCodeT&& value) { m_quotaCodeHasBeenSet = true; m_quotaCode = std::forward<QuotaCodeT>(value); }
92 template<typename QuotaCodeT = Aws::String>
93 ServiceQuota& WithQuotaCode(QuotaCodeT&& value) { SetQuotaCode(std::forward<QuotaCodeT>(value)); return *this;}
95
97
100 inline const Aws::String& GetQuotaName() const { return m_quotaName; }
101 inline bool QuotaNameHasBeenSet() const { return m_quotaNameHasBeenSet; }
102 template<typename QuotaNameT = Aws::String>
103 void SetQuotaName(QuotaNameT&& value) { m_quotaNameHasBeenSet = true; m_quotaName = std::forward<QuotaNameT>(value); }
104 template<typename QuotaNameT = Aws::String>
105 ServiceQuota& WithQuotaName(QuotaNameT&& value) { SetQuotaName(std::forward<QuotaNameT>(value)); return *this;}
107
109
112 inline double GetValue() const { return m_value; }
113 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
114 inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; }
115 inline ServiceQuota& WithValue(double value) { SetValue(value); return *this;}
117
119
122 inline const Aws::String& GetUnit() const { return m_unit; }
123 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
124 template<typename UnitT = Aws::String>
125 void SetUnit(UnitT&& value) { m_unitHasBeenSet = true; m_unit = std::forward<UnitT>(value); }
126 template<typename UnitT = Aws::String>
127 ServiceQuota& WithUnit(UnitT&& value) { SetUnit(std::forward<UnitT>(value)); return *this;}
129
131
134 inline bool GetAdjustable() const { return m_adjustable; }
135 inline bool AdjustableHasBeenSet() const { return m_adjustableHasBeenSet; }
136 inline void SetAdjustable(bool value) { m_adjustableHasBeenSet = true; m_adjustable = value; }
137 inline ServiceQuota& WithAdjustable(bool value) { SetAdjustable(value); return *this;}
139
141
144 inline bool GetGlobalQuota() const { return m_globalQuota; }
145 inline bool GlobalQuotaHasBeenSet() const { return m_globalQuotaHasBeenSet; }
146 inline void SetGlobalQuota(bool value) { m_globalQuotaHasBeenSet = true; m_globalQuota = value; }
147 inline ServiceQuota& WithGlobalQuota(bool value) { SetGlobalQuota(value); return *this;}
149
151
154 inline const MetricInfo& GetUsageMetric() const { return m_usageMetric; }
155 inline bool UsageMetricHasBeenSet() const { return m_usageMetricHasBeenSet; }
156 template<typename UsageMetricT = MetricInfo>
157 void SetUsageMetric(UsageMetricT&& value) { m_usageMetricHasBeenSet = true; m_usageMetric = std::forward<UsageMetricT>(value); }
158 template<typename UsageMetricT = MetricInfo>
159 ServiceQuota& WithUsageMetric(UsageMetricT&& value) { SetUsageMetric(std::forward<UsageMetricT>(value)); return *this;}
161
163
166 inline const QuotaPeriod& GetPeriod() const { return m_period; }
167 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
168 template<typename PeriodT = QuotaPeriod>
169 void SetPeriod(PeriodT&& value) { m_periodHasBeenSet = true; m_period = std::forward<PeriodT>(value); }
170 template<typename PeriodT = QuotaPeriod>
171 ServiceQuota& WithPeriod(PeriodT&& value) { SetPeriod(std::forward<PeriodT>(value)); return *this;}
173
175
178 inline const ErrorReason& GetErrorReason() const { return m_errorReason; }
179 inline bool ErrorReasonHasBeenSet() const { return m_errorReasonHasBeenSet; }
180 template<typename ErrorReasonT = ErrorReason>
181 void SetErrorReason(ErrorReasonT&& value) { m_errorReasonHasBeenSet = true; m_errorReason = std::forward<ErrorReasonT>(value); }
182 template<typename ErrorReasonT = ErrorReason>
183 ServiceQuota& WithErrorReason(ErrorReasonT&& value) { SetErrorReason(std::forward<ErrorReasonT>(value)); return *this;}
185
187
192 inline AppliedLevelEnum GetQuotaAppliedAtLevel() const { return m_quotaAppliedAtLevel; }
193 inline bool QuotaAppliedAtLevelHasBeenSet() const { return m_quotaAppliedAtLevelHasBeenSet; }
194 inline void SetQuotaAppliedAtLevel(AppliedLevelEnum value) { m_quotaAppliedAtLevelHasBeenSet = true; m_quotaAppliedAtLevel = value; }
197
199
202 inline const QuotaContextInfo& GetQuotaContext() const { return m_quotaContext; }
203 inline bool QuotaContextHasBeenSet() const { return m_quotaContextHasBeenSet; }
204 template<typename QuotaContextT = QuotaContextInfo>
205 void SetQuotaContext(QuotaContextT&& value) { m_quotaContextHasBeenSet = true; m_quotaContext = std::forward<QuotaContextT>(value); }
206 template<typename QuotaContextT = QuotaContextInfo>
207 ServiceQuota& WithQuotaContext(QuotaContextT&& value) { SetQuotaContext(std::forward<QuotaContextT>(value)); return *this;}
209
211
214 inline const Aws::String& GetDescription() const { return m_description; }
215 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
216 template<typename DescriptionT = Aws::String>
217 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
218 template<typename DescriptionT = Aws::String>
219 ServiceQuota& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(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{0.0};
239 bool m_valueHasBeenSet = false;
240
241 Aws::String m_unit;
242 bool m_unitHasBeenSet = false;
243
244 bool m_adjustable{false};
245 bool m_adjustableHasBeenSet = false;
246
247 bool m_globalQuota{false};
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{AppliedLevelEnum::NOT_SET};
260 bool m_quotaAppliedAtLevelHasBeenSet = false;
261
262 QuotaContextInfo m_quotaContext;
263 bool m_quotaContextHasBeenSet = false;
264
265 Aws::String m_description;
266 bool m_descriptionHasBeenSet = false;
267 };
268
269} // namespace Model
270} // namespace ServiceQuotas
271} // 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