AWS SDK for C++  1.9.1
AWS SDK for C++
QuotaSettings.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace APIGateway
22 {
23 namespace Model
24 {
25 
32  {
33  public:
38 
39 
43  inline int GetLimit() const{ return m_limit; }
44 
48  inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
49 
53  inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
54 
58  inline QuotaSettings& WithLimit(int value) { SetLimit(value); return *this;}
59 
60 
66  inline int GetOffset() const{ return m_offset; }
67 
73  inline bool OffsetHasBeenSet() const { return m_offsetHasBeenSet; }
74 
80  inline void SetOffset(int value) { m_offsetHasBeenSet = true; m_offset = value; }
81 
87  inline QuotaSettings& WithOffset(int value) { SetOffset(value); return *this;}
88 
89 
94  inline const QuotaPeriodType& GetPeriod() const{ return m_period; }
95 
100  inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
101 
106  inline void SetPeriod(const QuotaPeriodType& value) { m_periodHasBeenSet = true; m_period = value; }
107 
112  inline void SetPeriod(QuotaPeriodType&& value) { m_periodHasBeenSet = true; m_period = std::move(value); }
113 
118  inline QuotaSettings& WithPeriod(const QuotaPeriodType& value) { SetPeriod(value); return *this;}
119 
124  inline QuotaSettings& WithPeriod(QuotaPeriodType&& value) { SetPeriod(std::move(value)); return *this;}
125 
126  private:
127 
128  int m_limit;
129  bool m_limitHasBeenSet;
130 
131  int m_offset;
132  bool m_offsetHasBeenSet;
133 
134  QuotaPeriodType m_period;
135  bool m_periodHasBeenSet;
136  };
137 
138 } // namespace Model
139 } // namespace APIGateway
140 } // namespace Aws
Aws::APIGateway::Model::QuotaSettings::QuotaSettings
QuotaSettings(Aws::Utils::Json::JsonView jsonValue)
Aws::APIGateway::Model::QuotaSettings::LimitHasBeenSet
bool LimitHasBeenSet() const
Definition: QuotaSettings.h:48
Aws::APIGateway::Model::QuotaSettings::GetPeriod
const QuotaPeriodType & GetPeriod() const
Definition: QuotaSettings.h:94
AWS_APIGATEWAY_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
Aws::APIGateway::Model::QuotaSettings::WithPeriod
QuotaSettings & WithPeriod(QuotaPeriodType &&value)
Definition: QuotaSettings.h:124
APIGateway_EXPORTS.h
QuotaPeriodType.h
Aws::APIGateway::Model::QuotaSettings::WithOffset
QuotaSettings & WithOffset(int value)
Definition: QuotaSettings.h:87
Aws::APIGateway::Model::QuotaSettings::SetLimit
void SetLimit(int value)
Definition: QuotaSettings.h:53
Aws::APIGateway::Model::QuotaSettings::operator=
QuotaSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::APIGateway::Model::QuotaSettings::WithLimit
QuotaSettings & WithLimit(int value)
Definition: QuotaSettings.h:58
Aws::APIGateway::Model::QuotaSettings::QuotaSettings
QuotaSettings()
Aws::APIGateway::Model::QuotaSettings::SetPeriod
void SetPeriod(const QuotaPeriodType &value)
Definition: QuotaSettings.h:106
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::APIGateway::Model::QuotaSettings::PeriodHasBeenSet
bool PeriodHasBeenSet() const
Definition: QuotaSettings.h:100
Aws::APIGateway::Model::QuotaSettings::SetOffset
void SetOffset(int value)
Definition: QuotaSettings.h:80
Aws::APIGateway::Model::QuotaSettings::GetLimit
int GetLimit() const
Definition: QuotaSettings.h:43
Aws::APIGateway::Model::QuotaPeriodType
QuotaPeriodType
Definition: QuotaPeriodType.h:17
Aws::APIGateway::Model::QuotaSettings::GetOffset
int GetOffset() const
Definition: QuotaSettings.h:66
Aws
Definition: AccessManagementClient.h:15
Aws::APIGateway::Model::QuotaSettings::SetPeriod
void SetPeriod(QuotaPeriodType &&value)
Definition: QuotaSettings.h:112
Aws::APIGateway::Model::QuotaSettings::WithPeriod
QuotaSettings & WithPeriod(const QuotaPeriodType &value)
Definition: QuotaSettings.h:118
Aws::APIGateway::Model::QuotaSettings::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::APIGateway::Model::QuotaSettings
Definition: QuotaSettings.h:32
Aws::APIGateway::Model::QuotaSettings::OffsetHasBeenSet
bool OffsetHasBeenSet() const
Definition: QuotaSettings.h:73