AWS SDK for C++

AWS SDK for C++ Version 1.11.773

Loading...
Searching...
No Matches
QuotaPeriod.h
1
6#pragma once
7#include <aws/service-quotas/ServiceQuotas_EXPORTS.h>
8#include <aws/service-quotas/model/PeriodUnit.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ServiceQuotas {
20namespace Model {
21
28 public:
29 AWS_SERVICEQUOTAS_API QuotaPeriod() = default;
30 AWS_SERVICEQUOTAS_API QuotaPeriod(Aws::Utils::Json::JsonView jsonValue);
31 AWS_SERVICEQUOTAS_API QuotaPeriod& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_SERVICEQUOTAS_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline int GetPeriodValue() const { return m_periodValue; }
39 inline bool PeriodValueHasBeenSet() const { return m_periodValueHasBeenSet; }
40 inline void SetPeriodValue(int value) {
41 m_periodValueHasBeenSet = true;
42 m_periodValue = value;
43 }
44 inline QuotaPeriod& WithPeriodValue(int value) {
45 SetPeriodValue(value);
46 return *this;
47 }
49
51
54 inline PeriodUnit GetPeriodUnit() const { return m_periodUnit; }
55 inline bool PeriodUnitHasBeenSet() const { return m_periodUnitHasBeenSet; }
56 inline void SetPeriodUnit(PeriodUnit value) {
57 m_periodUnitHasBeenSet = true;
58 m_periodUnit = value;
59 }
61 SetPeriodUnit(value);
62 return *this;
63 }
65 private:
66 int m_periodValue{0};
67
68 PeriodUnit m_periodUnit{PeriodUnit::NOT_SET};
69 bool m_periodValueHasBeenSet = false;
70 bool m_periodUnitHasBeenSet = false;
71};
72
73} // namespace Model
74} // namespace ServiceQuotas
75} // namespace Aws
AWS_SERVICEQUOTAS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SERVICEQUOTAS_API QuotaPeriod & operator=(Aws::Utils::Json::JsonView jsonValue)
QuotaPeriod & WithPeriodValue(int value)
Definition QuotaPeriod.h:44
void SetPeriodUnit(PeriodUnit value)
Definition QuotaPeriod.h:56
AWS_SERVICEQUOTAS_API QuotaPeriod(Aws::Utils::Json::JsonView jsonValue)
QuotaPeriod & WithPeriodUnit(PeriodUnit value)
Definition QuotaPeriod.h:60
AWS_SERVICEQUOTAS_API QuotaPeriod()=default
Aws::Utils::Json::JsonValue JsonValue