AWS SDK for C++

AWS SDK for C++ Version 1.11.766

Loading...
Searching...
No Matches
ThrottleSettings.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace APIGateway {
17namespace Model {
18
25 public:
26 AWS_APIGATEWAY_API ThrottleSettings() = default;
27 AWS_APIGATEWAY_API ThrottleSettings(Aws::Utils::Json::JsonView jsonValue);
29 AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
30
32
36 inline int GetBurstLimit() const { return m_burstLimit; }
37 inline bool BurstLimitHasBeenSet() const { return m_burstLimitHasBeenSet; }
38 inline void SetBurstLimit(int value) {
39 m_burstLimitHasBeenSet = true;
40 m_burstLimit = value;
41 }
42 inline ThrottleSettings& WithBurstLimit(int value) {
43 SetBurstLimit(value);
44 return *this;
45 }
47
49
52 inline double GetRateLimit() const { return m_rateLimit; }
53 inline bool RateLimitHasBeenSet() const { return m_rateLimitHasBeenSet; }
54 inline void SetRateLimit(double value) {
55 m_rateLimitHasBeenSet = true;
56 m_rateLimit = value;
57 }
58 inline ThrottleSettings& WithRateLimit(double value) {
59 SetRateLimit(value);
60 return *this;
61 }
63 private:
64 int m_burstLimit{0};
65
66 double m_rateLimit{0.0};
67 bool m_burstLimitHasBeenSet = false;
68 bool m_rateLimitHasBeenSet = false;
69};
70
71} // namespace Model
72} // namespace APIGateway
73} // 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)
AWS_APIGATEWAY_API ThrottleSettings()=default
ThrottleSettings & WithBurstLimit(int value)
AWS_APIGATEWAY_API ThrottleSettings(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue