AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const QuotaPeriodType& GetPeriod() const{ return m_period; }
68 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
69 inline void SetPeriod(const QuotaPeriodType& value) { m_periodHasBeenSet = true; m_period = value; }
70 inline void SetPeriod(QuotaPeriodType&& value) { m_periodHasBeenSet = true; m_period = std::move(value); }
71 inline QuotaSettings& WithPeriod(const QuotaPeriodType& value) { SetPeriod(value); return *this;}
72 inline QuotaSettings& WithPeriod(QuotaPeriodType&& value) { SetPeriod(std::move(value)); return *this;}
74 private:
75
76 int m_limit;
77 bool m_limitHasBeenSet = false;
78
79 int m_offset;
80 bool m_offsetHasBeenSet = false;
81
82 QuotaPeriodType m_period;
83 bool m_periodHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace APIGateway
88} // namespace Aws
AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APIGATEWAY_API QuotaSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
QuotaSettings & WithPeriod(QuotaPeriodType &&value)
QuotaSettings & WithPeriod(const QuotaPeriodType &value)
void SetPeriod(const QuotaPeriodType &value)
void SetPeriod(QuotaPeriodType &&value)
QuotaSettings & WithOffset(int value)
const QuotaPeriodType & GetPeriod() const
QuotaSettings & WithLimit(int value)
AWS_APIGATEWAY_API QuotaSettings(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue