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>
26namespace ServiceQuotas
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>
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>
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>
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>
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>
114 inline void SetValue(
double value) { m_valueHasBeenSet =
true; m_value = value; }
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>
136 inline void SetAdjustable(
bool value) { m_adjustableHasBeenSet =
true; m_adjustable = value; }
146 inline void SetGlobalQuota(
bool value) { m_globalQuotaHasBeenSet =
true; m_globalQuota = value; }
156 template<
typename UsageMetricT = MetricInfo>
157 void SetUsageMetric(UsageMetricT&& value) { m_usageMetricHasBeenSet =
true; m_usageMetric = std::forward<UsageMetricT>(value); }
158 template<
typename UsageMetricT = MetricInfo>
168 template<
typename PeriodT = QuotaPeriod>
169 void SetPeriod(PeriodT&& value) { m_periodHasBeenSet =
true; m_period = std::forward<PeriodT>(value); }
170 template<
typename PeriodT = QuotaPeriod>
180 template<
typename ErrorReasonT = ErrorReason>
181 void SetErrorReason(ErrorReasonT&& value) { m_errorReasonHasBeenSet =
true; m_errorReason = std::forward<ErrorReasonT>(value); }
182 template<
typename ErrorReasonT = ErrorReason>
204 template<
typename QuotaContextT = QuotaContextInfo>
205 void SetQuotaContext(QuotaContextT&& value) { m_quotaContextHasBeenSet =
true; m_quotaContext = std::forward<QuotaContextT>(value); }
206 template<
typename QuotaContextT = QuotaContextInfo>
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>
224 bool m_serviceCodeHasBeenSet =
false;
227 bool m_serviceNameHasBeenSet =
false;
230 bool m_quotaArnHasBeenSet =
false;
233 bool m_quotaCodeHasBeenSet =
false;
236 bool m_quotaNameHasBeenSet =
false;
239 bool m_valueHasBeenSet =
false;
242 bool m_unitHasBeenSet =
false;
244 bool m_adjustable{
false};
245 bool m_adjustableHasBeenSet =
false;
247 bool m_globalQuota{
false};
248 bool m_globalQuotaHasBeenSet =
false;
250 MetricInfo m_usageMetric;
251 bool m_usageMetricHasBeenSet =
false;
253 QuotaPeriod m_period;
254 bool m_periodHasBeenSet =
false;
256 ErrorReason m_errorReason;
257 bool m_errorReasonHasBeenSet =
false;
260 bool m_quotaAppliedAtLevelHasBeenSet =
false;
262 QuotaContextInfo m_quotaContext;
263 bool m_quotaContextHasBeenSet =
false;
266 bool m_descriptionHasBeenSet =
false;
void SetQuotaArn(QuotaArnT &&value)
bool QuotaContextHasBeenSet() const
void SetValue(double value)
ServiceQuota & WithValue(double value)
bool GlobalQuotaHasBeenSet() const
bool PeriodHasBeenSet() const
const Aws::String & GetServiceName() const
bool QuotaArnHasBeenSet() 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)
bool UnitHasBeenSet() const
bool ServiceNameHasBeenSet() const
ServiceQuota & WithQuotaContext(QuotaContextT &&value)
const MetricInfo & GetUsageMetric() const
const Aws::String & GetQuotaCode() const
ServiceQuota & WithErrorReason(ErrorReasonT &&value)
void SetUnit(UnitT &&value)
bool QuotaAppliedAtLevelHasBeenSet() const
bool GetGlobalQuota() const
void SetDescription(DescriptionT &&value)
void SetQuotaName(QuotaNameT &&value)
bool GetAdjustable() const
ServiceQuota & WithUnit(UnitT &&value)
bool ErrorReasonHasBeenSet() const
bool QuotaNameHasBeenSet() const
ServiceQuota & WithServiceCode(ServiceCodeT &&value)
const Aws::String & GetQuotaArn() const
ServiceQuota & WithQuotaArn(QuotaArnT &&value)
void SetAdjustable(bool value)
ServiceQuota & WithAdjustable(bool value)
bool ServiceCodeHasBeenSet() const
const Aws::String & GetUnit() const
void SetGlobalQuota(bool value)
const Aws::String & GetServiceCode() const
void SetServiceName(ServiceNameT &&value)
ServiceQuota & WithGlobalQuota(bool value)
ServiceQuota & WithServiceName(ServiceNameT &&value)
const QuotaContextInfo & GetQuotaContext() const
bool AdjustableHasBeenSet() const
void SetPeriod(PeriodT &&value)
bool QuotaCodeHasBeenSet() 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
bool UsageMetricHasBeenSet() const
bool DescriptionHasBeenSet() const
void SetQuotaContext(QuotaContextT &&value)
bool ValueHasBeenSet() const
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