AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
AwsApiGatewayMethodSettings.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securityhub/SecurityHub_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SecurityHub {
20namespace Model {
21
28 public:
29 AWS_SECURITYHUB_API AwsApiGatewayMethodSettings() = default;
32 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline bool GetMetricsEnabled() const { return m_metricsEnabled; }
39 inline bool MetricsEnabledHasBeenSet() const { return m_metricsEnabledHasBeenSet; }
40 inline void SetMetricsEnabled(bool value) {
41 m_metricsEnabledHasBeenSet = true;
42 m_metricsEnabled = value;
43 }
45 SetMetricsEnabled(value);
46 return *this;
47 }
49
51
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) {
63 m_loggingLevelHasBeenSet = true;
64 m_loggingLevel = std::forward<LoggingLevelT>(value);
65 }
66 template <typename LoggingLevelT = Aws::String>
68 SetLoggingLevel(std::forward<LoggingLevelT>(value));
69 return *this;
70 }
72
74
78 inline bool GetDataTraceEnabled() const { return m_dataTraceEnabled; }
79 inline bool DataTraceEnabledHasBeenSet() const { return m_dataTraceEnabledHasBeenSet; }
80 inline void SetDataTraceEnabled(bool value) {
81 m_dataTraceEnabledHasBeenSet = true;
82 m_dataTraceEnabled = value;
83 }
86 return *this;
87 }
89
91
94 inline int GetThrottlingBurstLimit() const { return m_throttlingBurstLimit; }
95 inline bool ThrottlingBurstLimitHasBeenSet() const { return m_throttlingBurstLimitHasBeenSet; }
96 inline void SetThrottlingBurstLimit(int value) {
97 m_throttlingBurstLimitHasBeenSet = true;
98 m_throttlingBurstLimit = value;
99 }
102 return *this;
103 }
105
107
110 inline double GetThrottlingRateLimit() const { return m_throttlingRateLimit; }
111 inline bool ThrottlingRateLimitHasBeenSet() const { return m_throttlingRateLimitHasBeenSet; }
112 inline void SetThrottlingRateLimit(double value) {
113 m_throttlingRateLimitHasBeenSet = true;
114 m_throttlingRateLimit = value;
115 }
118 return *this;
119 }
121
123
127 inline bool GetCachingEnabled() const { return m_cachingEnabled; }
128 inline bool CachingEnabledHasBeenSet() const { return m_cachingEnabledHasBeenSet; }
129 inline void SetCachingEnabled(bool value) {
130 m_cachingEnabledHasBeenSet = true;
131 m_cachingEnabled = value;
132 }
134 SetCachingEnabled(value);
135 return *this;
136 }
138
140
144 inline int GetCacheTtlInSeconds() const { return m_cacheTtlInSeconds; }
145 inline bool CacheTtlInSecondsHasBeenSet() const { return m_cacheTtlInSecondsHasBeenSet; }
146 inline void SetCacheTtlInSeconds(int value) {
147 m_cacheTtlInSecondsHasBeenSet = true;
148 m_cacheTtlInSeconds = value;
149 }
152 return *this;
153 }
155
157
160 inline bool GetCacheDataEncrypted() const { return m_cacheDataEncrypted; }
161 inline bool CacheDataEncryptedHasBeenSet() const { return m_cacheDataEncryptedHasBeenSet; }
162 inline void SetCacheDataEncrypted(bool value) {
163 m_cacheDataEncryptedHasBeenSet = true;
164 m_cacheDataEncrypted = value;
165 }
168 return *this;
169 }
171
173
177 inline bool GetRequireAuthorizationForCacheControl() const { return m_requireAuthorizationForCacheControl; }
178 inline bool RequireAuthorizationForCacheControlHasBeenSet() const { return m_requireAuthorizationForCacheControlHasBeenSet; }
180 m_requireAuthorizationForCacheControlHasBeenSet = true;
181 m_requireAuthorizationForCacheControl = value;
182 }
185 return *this;
186 }
188
190
196 inline const Aws::String& GetUnauthorizedCacheControlHeaderStrategy() const { return m_unauthorizedCacheControlHeaderStrategy; }
197 inline bool UnauthorizedCacheControlHeaderStrategyHasBeenSet() const { return m_unauthorizedCacheControlHeaderStrategyHasBeenSet; }
198 template <typename UnauthorizedCacheControlHeaderStrategyT = Aws::String>
199 void SetUnauthorizedCacheControlHeaderStrategy(UnauthorizedCacheControlHeaderStrategyT&& value) {
200 m_unauthorizedCacheControlHeaderStrategyHasBeenSet = true;
201 m_unauthorizedCacheControlHeaderStrategy = std::forward<UnauthorizedCacheControlHeaderStrategyT>(value);
202 }
203 template <typename UnauthorizedCacheControlHeaderStrategyT = Aws::String>
204 AwsApiGatewayMethodSettings& WithUnauthorizedCacheControlHeaderStrategy(UnauthorizedCacheControlHeaderStrategyT&& value) {
205 SetUnauthorizedCacheControlHeaderStrategy(std::forward<UnauthorizedCacheControlHeaderStrategyT>(value));
206 return *this;
207 }
209
211
215 inline const Aws::String& GetHttpMethod() const { return m_httpMethod; }
216 inline bool HttpMethodHasBeenSet() const { return m_httpMethodHasBeenSet; }
217 template <typename HttpMethodT = Aws::String>
218 void SetHttpMethod(HttpMethodT&& value) {
219 m_httpMethodHasBeenSet = true;
220 m_httpMethod = std::forward<HttpMethodT>(value);
221 }
222 template <typename HttpMethodT = Aws::String>
224 SetHttpMethod(std::forward<HttpMethodT>(value));
225 return *this;
226 }
228
230
238 inline const Aws::String& GetResourcePath() const { return m_resourcePath; }
239 inline bool ResourcePathHasBeenSet() const { return m_resourcePathHasBeenSet; }
240 template <typename ResourcePathT = Aws::String>
241 void SetResourcePath(ResourcePathT&& value) {
242 m_resourcePathHasBeenSet = true;
243 m_resourcePath = std::forward<ResourcePathT>(value);
244 }
245 template <typename ResourcePathT = Aws::String>
247 SetResourcePath(std::forward<ResourcePathT>(value));
248 return *this;
249 }
251 private:
252 bool m_metricsEnabled{false};
253
254 Aws::String m_loggingLevel;
255
256 bool m_dataTraceEnabled{false};
257
258 int m_throttlingBurstLimit{0};
259
260 double m_throttlingRateLimit{0.0};
261
262 bool m_cachingEnabled{false};
263
264 int m_cacheTtlInSeconds{0};
265
266 bool m_cacheDataEncrypted{false};
267
268 bool m_requireAuthorizationForCacheControl{false};
269
270 Aws::String m_unauthorizedCacheControlHeaderStrategy;
271
272 Aws::String m_httpMethod;
273
274 Aws::String m_resourcePath;
275 bool m_metricsEnabledHasBeenSet = false;
276 bool m_loggingLevelHasBeenSet = false;
277 bool m_dataTraceEnabledHasBeenSet = false;
278 bool m_throttlingBurstLimitHasBeenSet = false;
279 bool m_throttlingRateLimitHasBeenSet = false;
280 bool m_cachingEnabledHasBeenSet = false;
281 bool m_cacheTtlInSecondsHasBeenSet = false;
282 bool m_cacheDataEncryptedHasBeenSet = false;
283 bool m_requireAuthorizationForCacheControlHasBeenSet = false;
284 bool m_unauthorizedCacheControlHeaderStrategyHasBeenSet = false;
285 bool m_httpMethodHasBeenSet = false;
286 bool m_resourcePathHasBeenSet = false;
287};
288
289} // namespace Model
290} // namespace SecurityHub
291} // namespace Aws
AWS_SECURITYHUB_API AwsApiGatewayMethodSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsApiGatewayMethodSettings & WithCacheTtlInSeconds(int value)
AwsApiGatewayMethodSettings & WithCacheDataEncrypted(bool value)
AWS_SECURITYHUB_API AwsApiGatewayMethodSettings()=default
void SetUnauthorizedCacheControlHeaderStrategy(UnauthorizedCacheControlHeaderStrategyT &&value)
AWS_SECURITYHUB_API AwsApiGatewayMethodSettings(Aws::Utils::Json::JsonView jsonValue)
AwsApiGatewayMethodSettings & WithHttpMethod(HttpMethodT &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsApiGatewayMethodSettings & WithDataTraceEnabled(bool value)
AwsApiGatewayMethodSettings & WithThrottlingRateLimit(double value)
AwsApiGatewayMethodSettings & WithRequireAuthorizationForCacheControl(bool value)
AwsApiGatewayMethodSettings & WithLoggingLevel(LoggingLevelT &&value)
AwsApiGatewayMethodSettings & WithCachingEnabled(bool value)
AwsApiGatewayMethodSettings & WithMetricsEnabled(bool value)
AwsApiGatewayMethodSettings & WithThrottlingBurstLimit(int value)
AwsApiGatewayMethodSettings & WithUnauthorizedCacheControlHeaderStrategy(UnauthorizedCacheControlHeaderStrategyT &&value)
AwsApiGatewayMethodSettings & WithResourcePath(ResourcePathT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue