AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ApiGatewayV2
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_APIGATEWAYV2_API RouteSettings() = default;
35 AWS_APIGATEWAYV2_API RouteSettings(Aws::Utils::Json::JsonView jsonValue);
36 AWS_APIGATEWAYV2_API RouteSettings& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_APIGATEWAYV2_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
46 inline bool GetDataTraceEnabled() const { return m_dataTraceEnabled; }
47 inline bool DataTraceEnabledHasBeenSet() const { return m_dataTraceEnabledHasBeenSet; }
48 inline void SetDataTraceEnabled(bool value) { m_dataTraceEnabledHasBeenSet = true; m_dataTraceEnabled = value; }
49 inline RouteSettings& WithDataTraceEnabled(bool value) { SetDataTraceEnabled(value); return *this;}
51
53
56 inline bool GetDetailedMetricsEnabled() const { return m_detailedMetricsEnabled; }
57 inline bool DetailedMetricsEnabledHasBeenSet() const { return m_detailedMetricsEnabledHasBeenSet; }
58 inline void SetDetailedMetricsEnabled(bool value) { m_detailedMetricsEnabledHasBeenSet = true; m_detailedMetricsEnabled = value; }
59 inline RouteSettings& WithDetailedMetricsEnabled(bool value) { SetDetailedMetricsEnabled(value); return *this;}
61
63
68 inline LoggingLevel GetLoggingLevel() const { return m_loggingLevel; }
69 inline bool LoggingLevelHasBeenSet() const { return m_loggingLevelHasBeenSet; }
70 inline void SetLoggingLevel(LoggingLevel value) { m_loggingLevelHasBeenSet = true; m_loggingLevel = value; }
71 inline RouteSettings& WithLoggingLevel(LoggingLevel value) { SetLoggingLevel(value); return *this;}
73
75
78 inline int GetThrottlingBurstLimit() const { return m_throttlingBurstLimit; }
79 inline bool ThrottlingBurstLimitHasBeenSet() const { return m_throttlingBurstLimitHasBeenSet; }
80 inline void SetThrottlingBurstLimit(int value) { m_throttlingBurstLimitHasBeenSet = true; m_throttlingBurstLimit = value; }
81 inline RouteSettings& WithThrottlingBurstLimit(int value) { SetThrottlingBurstLimit(value); return *this;}
83
85
88 inline double GetThrottlingRateLimit() const { return m_throttlingRateLimit; }
89 inline bool ThrottlingRateLimitHasBeenSet() const { return m_throttlingRateLimitHasBeenSet; }
90 inline void SetThrottlingRateLimit(double value) { m_throttlingRateLimitHasBeenSet = true; m_throttlingRateLimit = value; }
91 inline RouteSettings& WithThrottlingRateLimit(double value) { SetThrottlingRateLimit(value); return *this;}
93 private:
94
95 bool m_dataTraceEnabled{false};
96 bool m_dataTraceEnabledHasBeenSet = false;
97
98 bool m_detailedMetricsEnabled{false};
99 bool m_detailedMetricsEnabledHasBeenSet = false;
100
101 LoggingLevel m_loggingLevel{LoggingLevel::NOT_SET};
102 bool m_loggingLevelHasBeenSet = false;
103
104 int m_throttlingBurstLimit{0};
105 bool m_throttlingBurstLimitHasBeenSet = false;
106
107 double m_throttlingRateLimit{0.0};
108 bool m_throttlingRateLimitHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace ApiGatewayV2
113} // 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