AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
MethodSetting.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/apigateway/model/UnauthorizedCacheControlHeaderStrategy.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace APIGateway
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_APIGATEWAY_API MethodSetting() = default;
36 AWS_APIGATEWAY_API MethodSetting(Aws::Utils::Json::JsonView jsonValue);
37 AWS_APIGATEWAY_API MethodSetting& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline bool GetMetricsEnabled() const { return m_metricsEnabled; }
46 inline bool MetricsEnabledHasBeenSet() const { return m_metricsEnabledHasBeenSet; }
47 inline void SetMetricsEnabled(bool value) { m_metricsEnabledHasBeenSet = true; m_metricsEnabled = value; }
48 inline MethodSetting& WithMetricsEnabled(bool value) { SetMetricsEnabled(value); return *this;}
50
52
59 inline const Aws::String& GetLoggingLevel() const { return m_loggingLevel; }
60 inline bool LoggingLevelHasBeenSet() const { return m_loggingLevelHasBeenSet; }
61 template<typename LoggingLevelT = Aws::String>
62 void SetLoggingLevel(LoggingLevelT&& value) { m_loggingLevelHasBeenSet = true; m_loggingLevel = std::forward<LoggingLevelT>(value); }
63 template<typename LoggingLevelT = Aws::String>
64 MethodSetting& WithLoggingLevel(LoggingLevelT&& value) { SetLoggingLevel(std::forward<LoggingLevelT>(value)); return *this;}
66
68
74 inline bool GetDataTraceEnabled() const { return m_dataTraceEnabled; }
75 inline bool DataTraceEnabledHasBeenSet() const { return m_dataTraceEnabledHasBeenSet; }
76 inline void SetDataTraceEnabled(bool value) { m_dataTraceEnabledHasBeenSet = true; m_dataTraceEnabled = value; }
77 inline MethodSetting& WithDataTraceEnabled(bool value) { SetDataTraceEnabled(value); return *this;}
79
81
84 inline int GetThrottlingBurstLimit() const { return m_throttlingBurstLimit; }
85 inline bool ThrottlingBurstLimitHasBeenSet() const { return m_throttlingBurstLimitHasBeenSet; }
86 inline void SetThrottlingBurstLimit(int value) { m_throttlingBurstLimitHasBeenSet = true; m_throttlingBurstLimit = value; }
87 inline MethodSetting& WithThrottlingBurstLimit(int value) { SetThrottlingBurstLimit(value); return *this;}
89
91
94 inline double GetThrottlingRateLimit() const { return m_throttlingRateLimit; }
95 inline bool ThrottlingRateLimitHasBeenSet() const { return m_throttlingRateLimitHasBeenSet; }
96 inline void SetThrottlingRateLimit(double value) { m_throttlingRateLimitHasBeenSet = true; m_throttlingRateLimit = value; }
97 inline MethodSetting& WithThrottlingRateLimit(double value) { SetThrottlingRateLimit(value); return *this;}
99
101
105 inline bool GetCachingEnabled() const { return m_cachingEnabled; }
106 inline bool CachingEnabledHasBeenSet() const { return m_cachingEnabledHasBeenSet; }
107 inline void SetCachingEnabled(bool value) { m_cachingEnabledHasBeenSet = true; m_cachingEnabled = value; }
108 inline MethodSetting& WithCachingEnabled(bool value) { SetCachingEnabled(value); return *this;}
110
112
116 inline int GetCacheTtlInSeconds() const { return m_cacheTtlInSeconds; }
117 inline bool CacheTtlInSecondsHasBeenSet() const { return m_cacheTtlInSecondsHasBeenSet; }
118 inline void SetCacheTtlInSeconds(int value) { m_cacheTtlInSecondsHasBeenSet = true; m_cacheTtlInSeconds = value; }
119 inline MethodSetting& WithCacheTtlInSeconds(int value) { SetCacheTtlInSeconds(value); return *this;}
121
123
126 inline bool GetCacheDataEncrypted() const { return m_cacheDataEncrypted; }
127 inline bool CacheDataEncryptedHasBeenSet() const { return m_cacheDataEncryptedHasBeenSet; }
128 inline void SetCacheDataEncrypted(bool value) { m_cacheDataEncryptedHasBeenSet = true; m_cacheDataEncrypted = value; }
129 inline MethodSetting& WithCacheDataEncrypted(bool value) { SetCacheDataEncrypted(value); return *this;}
131
133
137 inline bool GetRequireAuthorizationForCacheControl() const { return m_requireAuthorizationForCacheControl; }
138 inline bool RequireAuthorizationForCacheControlHasBeenSet() const { return m_requireAuthorizationForCacheControlHasBeenSet; }
139 inline void SetRequireAuthorizationForCacheControl(bool value) { m_requireAuthorizationForCacheControlHasBeenSet = true; m_requireAuthorizationForCacheControl = value; }
142
144
147 inline UnauthorizedCacheControlHeaderStrategy GetUnauthorizedCacheControlHeaderStrategy() const { return m_unauthorizedCacheControlHeaderStrategy; }
148 inline bool UnauthorizedCacheControlHeaderStrategyHasBeenSet() const { return m_unauthorizedCacheControlHeaderStrategyHasBeenSet; }
149 inline void SetUnauthorizedCacheControlHeaderStrategy(UnauthorizedCacheControlHeaderStrategy value) { m_unauthorizedCacheControlHeaderStrategyHasBeenSet = true; m_unauthorizedCacheControlHeaderStrategy = value; }
152 private:
153
154 bool m_metricsEnabled{false};
155 bool m_metricsEnabledHasBeenSet = false;
156
157 Aws::String m_loggingLevel;
158 bool m_loggingLevelHasBeenSet = false;
159
160 bool m_dataTraceEnabled{false};
161 bool m_dataTraceEnabledHasBeenSet = false;
162
163 int m_throttlingBurstLimit{0};
164 bool m_throttlingBurstLimitHasBeenSet = false;
165
166 double m_throttlingRateLimit{0.0};
167 bool m_throttlingRateLimitHasBeenSet = false;
168
169 bool m_cachingEnabled{false};
170 bool m_cachingEnabledHasBeenSet = false;
171
172 int m_cacheTtlInSeconds{0};
173 bool m_cacheTtlInSecondsHasBeenSet = false;
174
175 bool m_cacheDataEncrypted{false};
176 bool m_cacheDataEncryptedHasBeenSet = false;
177
178 bool m_requireAuthorizationForCacheControl{false};
179 bool m_requireAuthorizationForCacheControlHasBeenSet = false;
180
182 bool m_unauthorizedCacheControlHeaderStrategyHasBeenSet = false;
183 };
184
185} // namespace Model
186} // namespace APIGateway
187} // namespace Aws
MethodSetting & WithThrottlingRateLimit(double value)
AWS_APIGATEWAY_API MethodSetting()=default
UnauthorizedCacheControlHeaderStrategy GetUnauthorizedCacheControlHeaderStrategy() const
MethodSetting & WithLoggingLevel(LoggingLevelT &&value)
MethodSetting & WithCachingEnabled(bool value)
void SetRequireAuthorizationForCacheControl(bool value)
void SetLoggingLevel(LoggingLevelT &&value)
MethodSetting & WithThrottlingBurstLimit(int value)
MethodSetting & WithMetricsEnabled(bool value)
MethodSetting & WithDataTraceEnabled(bool value)
const Aws::String & GetLoggingLevel() const
MethodSetting & WithCacheTtlInSeconds(int value)
void SetUnauthorizedCacheControlHeaderStrategy(UnauthorizedCacheControlHeaderStrategy value)
MethodSetting & WithRequireAuthorizationForCacheControl(bool value)
AWS_APIGATEWAY_API MethodSetting & operator=(Aws::Utils::Json::JsonView jsonValue)
bool RequireAuthorizationForCacheControlHasBeenSet() const
bool UnauthorizedCacheControlHeaderStrategyHasBeenSet() const
AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APIGATEWAY_API MethodSetting(Aws::Utils::Json::JsonView jsonValue)
MethodSetting & WithCacheDataEncrypted(bool value)
MethodSetting & WithUnauthorizedCacheControlHeaderStrategy(UnauthorizedCacheControlHeaderStrategy value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue