AWS SDK for C++

AWS SDK for C++ Version 1.11.767

Loading...
Searching...
No Matches
QuotaSettings.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/apigateway/model/QuotaPeriodType.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace APIGateway {
20namespace Model {
21
28 public:
29 AWS_APIGATEWAY_API QuotaSettings() = default;
30 AWS_APIGATEWAY_API QuotaSettings(Aws::Utils::Json::JsonView jsonValue);
31 AWS_APIGATEWAY_API QuotaSettings& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
39 inline int GetLimit() const { return m_limit; }
40 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
41 inline void SetLimit(int value) {
42 m_limitHasBeenSet = true;
43 m_limit = value;
44 }
45 inline QuotaSettings& WithLimit(int value) {
46 SetLimit(value);
47 return *this;
48 }
50
52
56 inline int GetOffset() const { return m_offset; }
57 inline bool OffsetHasBeenSet() const { return m_offsetHasBeenSet; }
58 inline void SetOffset(int value) {
59 m_offsetHasBeenSet = true;
60 m_offset = value;
61 }
62 inline QuotaSettings& WithOffset(int value) {
63 SetOffset(value);
64 return *this;
65 }
67
69
73 inline QuotaPeriodType GetPeriod() const { return m_period; }
74 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
75 inline void SetPeriod(QuotaPeriodType value) {
76 m_periodHasBeenSet = true;
77 m_period = value;
78 }
80 SetPeriod(value);
81 return *this;
82 }
84 private:
85 int m_limit{0};
86
87 int m_offset{0};
88
90 bool m_limitHasBeenSet = false;
91 bool m_offsetHasBeenSet = false;
92 bool m_periodHasBeenSet = false;
93};
94
95} // namespace Model
96} // namespace APIGateway
97} // namespace Aws
AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APIGATEWAY_API QuotaSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
QuotaPeriodType GetPeriod() const
void SetPeriod(QuotaPeriodType value)
AWS_APIGATEWAY_API QuotaSettings()=default
QuotaSettings & WithPeriod(QuotaPeriodType value)
QuotaSettings & WithOffset(int value)
QuotaSettings & WithLimit(int value)
AWS_APIGATEWAY_API QuotaSettings(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue