AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ThrottleSettings.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_EXPORTS.h>
8
9namespace Aws
10{
11namespace Utils
12{
13namespace Json
14{
15 class JsonValue;
16 class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace APIGateway
20{
21namespace Model
22{
23
30 {
31 public:
32 AWS_APIGATEWAY_API ThrottleSettings();
33 AWS_APIGATEWAY_API ThrottleSettings(Aws::Utils::Json::JsonView jsonValue);
35 AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
36
37
39
43 inline int GetBurstLimit() const{ return m_burstLimit; }
44 inline bool BurstLimitHasBeenSet() const { return m_burstLimitHasBeenSet; }
45 inline void SetBurstLimit(int value) { m_burstLimitHasBeenSet = true; m_burstLimit = value; }
46 inline ThrottleSettings& WithBurstLimit(int value) { SetBurstLimit(value); return *this;}
48
50
53 inline double GetRateLimit() const{ return m_rateLimit; }
54 inline bool RateLimitHasBeenSet() const { return m_rateLimitHasBeenSet; }
55 inline void SetRateLimit(double value) { m_rateLimitHasBeenSet = true; m_rateLimit = value; }
56 inline ThrottleSettings& WithRateLimit(double value) { SetRateLimit(value); return *this;}
58 private:
59
60 int m_burstLimit;
61 bool m_burstLimitHasBeenSet = false;
62
63 double m_rateLimit;
64 bool m_rateLimitHasBeenSet = false;
65 };
66
67} // namespace Model
68} // namespace APIGateway
69} // namespace Aws
ThrottleSettings & WithRateLimit(double value)
AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APIGATEWAY_API ThrottleSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
ThrottleSettings & WithBurstLimit(int value)
AWS_APIGATEWAY_API ThrottleSettings(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue