AWS SDK for C++

AWS SDK for C++ Version 1.11.906

Loading...
Searching...
No Matches
ThrottleConfig.h
1
6#pragma once
7#include <aws/lambda-web/LambdaWeb_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace LambdaWeb {
17namespace Model {
18
26 public:
27 AWS_LAMBDAWEB_API ThrottleConfig() = default;
28 AWS_LAMBDAWEB_API ThrottleConfig(Aws::Utils::Json::JsonView jsonValue);
30 AWS_LAMBDAWEB_API Aws::Utils::Json::JsonValue Jsonize() const;
31
33
46 inline int GetRateLimit() const { return m_rateLimit; }
47 inline bool RateLimitHasBeenSet() const { return m_rateLimitHasBeenSet; }
48 inline void SetRateLimit(int value) {
49 m_rateLimitHasBeenSet = true;
50 m_rateLimit = value;
51 }
52 inline ThrottleConfig& WithRateLimit(int value) {
53 SetRateLimit(value);
54 return *this;
55 }
57 private:
58 int m_rateLimit{0};
59 bool m_rateLimitHasBeenSet = false;
60};
61
62} // namespace Model
63} // namespace LambdaWeb
64} // namespace Aws
AWS_LAMBDAWEB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LAMBDAWEB_API ThrottleConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_LAMBDAWEB_API ThrottleConfig()=default
ThrottleConfig & WithRateLimit(int value)
AWS_LAMBDAWEB_API ThrottleConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue