AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#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 APIGateway
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_APIGATEWAY_API QuotaSettings() = default;
35 AWS_APIGATEWAY_API QuotaSettings(Aws::Utils::Json::JsonView jsonValue);
36 AWS_APIGATEWAY_API QuotaSettings& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
45 inline int GetLimit() const { return m_limit; }
46 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
47 inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
48 inline QuotaSettings& WithLimit(int value) { SetLimit(value); return *this;}
50
52
56 inline int GetOffset() const { return m_offset; }
57 inline bool OffsetHasBeenSet() const { return m_offsetHasBeenSet; }
58 inline void SetOffset(int value) { m_offsetHasBeenSet = true; m_offset = value; }
59 inline QuotaSettings& WithOffset(int value) { SetOffset(value); return *this;}
61
63
67 inline QuotaPeriodType GetPeriod() const { return m_period; }
68 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
69 inline void SetPeriod(QuotaPeriodType value) { m_periodHasBeenSet = true; m_period = value; }
70 inline QuotaSettings& WithPeriod(QuotaPeriodType value) { SetPeriod(value); return *this;}
72 private:
73
74 int m_limit{0};
75 bool m_limitHasBeenSet = false;
76
77 int m_offset{0};
78 bool m_offsetHasBeenSet = false;
79
81 bool m_periodHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace APIGateway
86} // 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