AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ServiceQuotas
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_SERVICEQUOTAS_API QuotaPeriod();
35 AWS_SERVICEQUOTAS_API QuotaPeriod(Aws::Utils::Json::JsonView jsonValue);
36 AWS_SERVICEQUOTAS_API QuotaPeriod& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SERVICEQUOTAS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline int GetPeriodValue() const{ return m_periodValue; }
45 inline bool PeriodValueHasBeenSet() const { return m_periodValueHasBeenSet; }
46 inline void SetPeriodValue(int value) { m_periodValueHasBeenSet = true; m_periodValue = value; }
47 inline QuotaPeriod& WithPeriodValue(int value) { SetPeriodValue(value); return *this;}
49
51
54 inline const PeriodUnit& GetPeriodUnit() const{ return m_periodUnit; }
55 inline bool PeriodUnitHasBeenSet() const { return m_periodUnitHasBeenSet; }
56 inline void SetPeriodUnit(const PeriodUnit& value) { m_periodUnitHasBeenSet = true; m_periodUnit = value; }
57 inline void SetPeriodUnit(PeriodUnit&& value) { m_periodUnitHasBeenSet = true; m_periodUnit = std::move(value); }
58 inline QuotaPeriod& WithPeriodUnit(const PeriodUnit& value) { SetPeriodUnit(value); return *this;}
59 inline QuotaPeriod& WithPeriodUnit(PeriodUnit&& value) { SetPeriodUnit(std::move(value)); return *this;}
61 private:
62
63 int m_periodValue;
64 bool m_periodValueHasBeenSet = false;
65
66 PeriodUnit m_periodUnit;
67 bool m_periodUnitHasBeenSet = false;
68 };
69
70} // namespace Model
71} // namespace ServiceQuotas
72} // namespace Aws
QuotaPeriod & WithPeriodUnit(PeriodUnit &&value)
Definition QuotaPeriod.h:59
AWS_SERVICEQUOTAS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPeriodUnit(const PeriodUnit &value)
Definition QuotaPeriod.h:56
const PeriodUnit & GetPeriodUnit() const
Definition QuotaPeriod.h:54
AWS_SERVICEQUOTAS_API QuotaPeriod()
AWS_SERVICEQUOTAS_API QuotaPeriod & operator=(Aws::Utils::Json::JsonView jsonValue)
QuotaPeriod & WithPeriodValue(int value)
Definition QuotaPeriod.h:47
void SetPeriodUnit(PeriodUnit &&value)
Definition QuotaPeriod.h:57
QuotaPeriod & WithPeriodUnit(const PeriodUnit &value)
Definition QuotaPeriod.h:58
AWS_SERVICEQUOTAS_API QuotaPeriod(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue