AWS SDK for C++  1.9.72
AWS SDK for C++
ThrottleSettings.h
Go to the documentation of this file.
1 
6 #pragma once
8 
9 namespace Aws
10 {
11 namespace Utils
12 {
13 namespace Json
14 {
15  class JsonValue;
16  class JsonView;
17 } // namespace Json
18 } // namespace Utils
19 namespace APIGateway
20 {
21 namespace Model
22 {
23 
30  {
31  public:
36 
37 
43  inline int GetBurstLimit() const{ return m_burstLimit; }
44 
50  inline bool BurstLimitHasBeenSet() const { return m_burstLimitHasBeenSet; }
51 
57  inline void SetBurstLimit(int value) { m_burstLimitHasBeenSet = true; m_burstLimit = value; }
58 
64  inline ThrottleSettings& WithBurstLimit(int value) { SetBurstLimit(value); return *this;}
65 
66 
70  inline double GetRateLimit() const{ return m_rateLimit; }
71 
75  inline bool RateLimitHasBeenSet() const { return m_rateLimitHasBeenSet; }
76 
80  inline void SetRateLimit(double value) { m_rateLimitHasBeenSet = true; m_rateLimit = value; }
81 
85  inline ThrottleSettings& WithRateLimit(double value) { SetRateLimit(value); return *this;}
86 
87  private:
88 
89  int m_burstLimit;
90  bool m_burstLimitHasBeenSet;
91 
92  double m_rateLimit;
93  bool m_rateLimitHasBeenSet;
94  };
95 
96 } // namespace Model
97 } // namespace APIGateway
98 } // namespace Aws
AWS_APIGATEWAY_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
Aws::APIGateway::Model::ThrottleSettings::GetBurstLimit
int GetBurstLimit() const
Definition: ThrottleSettings.h:43
Aws::APIGateway::Model::ThrottleSettings::SetRateLimit
void SetRateLimit(double value)
Definition: ThrottleSettings.h:80
APIGateway_EXPORTS.h
Aws::APIGateway::Model::ThrottleSettings::operator=
ThrottleSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::APIGateway::Model::ThrottleSettings::ThrottleSettings
ThrottleSettings(Aws::Utils::Json::JsonView jsonValue)
Aws::APIGateway::Model::ThrottleSettings::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::APIGateway::Model::ThrottleSettings
Definition: ThrottleSettings.h:30
Aws::APIGateway::Model::ThrottleSettings::WithBurstLimit
ThrottleSettings & WithBurstLimit(int value)
Definition: ThrottleSettings.h:64
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::APIGateway::Model::ThrottleSettings::WithRateLimit
ThrottleSettings & WithRateLimit(double value)
Definition: ThrottleSettings.h:85
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::APIGateway::Model::ThrottleSettings::SetBurstLimit
void SetBurstLimit(int value)
Definition: ThrottleSettings.h:57
Aws::APIGateway::Model::ThrottleSettings::RateLimitHasBeenSet
bool RateLimitHasBeenSet() const
Definition: ThrottleSettings.h:75
Aws
Definition: AccessManagementClient.h:15
Aws::APIGateway::Model::ThrottleSettings::ThrottleSettings
ThrottleSettings()
Aws::APIGateway::Model::ThrottleSettings::BurstLimitHasBeenSet
bool BurstLimitHasBeenSet() const
Definition: ThrottleSettings.h:50
Aws::APIGateway::Model::ThrottleSettings::GetRateLimit
double GetRateLimit() const
Definition: ThrottleSettings.h:70