AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
RouteSettings.h
1
6#pragma once
7#include <aws/apigatewayv2/ApiGatewayV2_EXPORTS.h>
8#include <aws/apigatewayv2/model/LoggingLevel.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ApiGatewayV2 {
20namespace Model {
21
28 public:
29 AWS_APIGATEWAYV2_API RouteSettings() = default;
30 AWS_APIGATEWAYV2_API RouteSettings(Aws::Utils::Json::JsonView jsonValue);
31 AWS_APIGATEWAYV2_API RouteSettings& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_APIGATEWAYV2_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
40 inline bool GetDataTraceEnabled() const { return m_dataTraceEnabled; }
41 inline bool DataTraceEnabledHasBeenSet() const { return m_dataTraceEnabledHasBeenSet; }
42 inline void SetDataTraceEnabled(bool value) {
43 m_dataTraceEnabledHasBeenSet = true;
44 m_dataTraceEnabled = value;
45 }
46 inline RouteSettings& WithDataTraceEnabled(bool value) {
48 return *this;
49 }
51
53
56 inline bool GetDetailedMetricsEnabled() const { return m_detailedMetricsEnabled; }
57 inline bool DetailedMetricsEnabledHasBeenSet() const { return m_detailedMetricsEnabledHasBeenSet; }
58 inline void SetDetailedMetricsEnabled(bool value) {
59 m_detailedMetricsEnabledHasBeenSet = true;
60 m_detailedMetricsEnabled = value;
61 }
64 return *this;
65 }
67
69
74 inline LoggingLevel GetLoggingLevel() const { return m_loggingLevel; }
75 inline bool LoggingLevelHasBeenSet() const { return m_loggingLevelHasBeenSet; }
76 inline void SetLoggingLevel(LoggingLevel value) {
77 m_loggingLevelHasBeenSet = true;
78 m_loggingLevel = value;
79 }
81 SetLoggingLevel(value);
82 return *this;
83 }
85
87
90 inline int GetThrottlingBurstLimit() const { return m_throttlingBurstLimit; }
91 inline bool ThrottlingBurstLimitHasBeenSet() const { return m_throttlingBurstLimitHasBeenSet; }
92 inline void SetThrottlingBurstLimit(int value) {
93 m_throttlingBurstLimitHasBeenSet = true;
94 m_throttlingBurstLimit = value;
95 }
98 return *this;
99 }
101
103
106 inline double GetThrottlingRateLimit() const { return m_throttlingRateLimit; }
107 inline bool ThrottlingRateLimitHasBeenSet() const { return m_throttlingRateLimitHasBeenSet; }
108 inline void SetThrottlingRateLimit(double value) {
109 m_throttlingRateLimitHasBeenSet = true;
110 m_throttlingRateLimit = value;
111 }
114 return *this;
115 }
117 private:
118 bool m_dataTraceEnabled{false};
119
120 bool m_detailedMetricsEnabled{false};
121
122 LoggingLevel m_loggingLevel{LoggingLevel::NOT_SET};
123
124 int m_throttlingBurstLimit{0};
125
126 double m_throttlingRateLimit{0.0};
127 bool m_dataTraceEnabledHasBeenSet = false;
128 bool m_detailedMetricsEnabledHasBeenSet = false;
129 bool m_loggingLevelHasBeenSet = false;
130 bool m_throttlingBurstLimitHasBeenSet = false;
131 bool m_throttlingRateLimitHasBeenSet = false;
132};
133
134} // namespace Model
135} // namespace ApiGatewayV2
136} // namespace Aws
RouteSettings & WithLoggingLevel(LoggingLevel value)
AWS_APIGATEWAYV2_API RouteSettings()=default
RouteSettings & WithThrottlingRateLimit(double value)
AWS_APIGATEWAYV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLoggingLevel(LoggingLevel value)
AWS_APIGATEWAYV2_API RouteSettings(Aws::Utils::Json::JsonView jsonValue)
RouteSettings & WithDetailedMetricsEnabled(bool value)
RouteSettings & WithThrottlingBurstLimit(int value)
AWS_APIGATEWAYV2_API RouteSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
RouteSettings & WithDataTraceEnabled(bool value)
Aws::Utils::Json::JsonValue JsonValue