AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AwsApiGatewayMethodSettings.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.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 SecurityHub
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_SECURITYHUB_API AwsApiGatewayMethodSettings() = default;
37 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline bool GetMetricsEnabled() const { return m_metricsEnabled; }
45 inline bool MetricsEnabledHasBeenSet() const { return m_metricsEnabledHasBeenSet; }
46 inline void SetMetricsEnabled(bool value) { m_metricsEnabledHasBeenSet = true; m_metricsEnabled = value; }
47 inline AwsApiGatewayMethodSettings& WithMetricsEnabled(bool value) { SetMetricsEnabled(value); return *this;}
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) { m_loggingLevelHasBeenSet = true; m_loggingLevel = std::forward<LoggingLevelT>(value); }
63 template<typename LoggingLevelT = Aws::String>
64 AwsApiGatewayMethodSettings& WithLoggingLevel(LoggingLevelT&& value) { SetLoggingLevel(std::forward<LoggingLevelT>(value)); return *this;}
66
68
72 inline bool GetDataTraceEnabled() const { return m_dataTraceEnabled; }
73 inline bool DataTraceEnabledHasBeenSet() const { return m_dataTraceEnabledHasBeenSet; }
74 inline void SetDataTraceEnabled(bool value) { m_dataTraceEnabledHasBeenSet = true; m_dataTraceEnabled = value; }
75 inline AwsApiGatewayMethodSettings& WithDataTraceEnabled(bool value) { SetDataTraceEnabled(value); return *this;}
77
79
82 inline int GetThrottlingBurstLimit() const { return m_throttlingBurstLimit; }
83 inline bool ThrottlingBurstLimitHasBeenSet() const { return m_throttlingBurstLimitHasBeenSet; }
84 inline void SetThrottlingBurstLimit(int value) { m_throttlingBurstLimitHasBeenSet = true; m_throttlingBurstLimit = value; }
87
89
92 inline double GetThrottlingRateLimit() const { return m_throttlingRateLimit; }
93 inline bool ThrottlingRateLimitHasBeenSet() const { return m_throttlingRateLimitHasBeenSet; }
94 inline void SetThrottlingRateLimit(double value) { m_throttlingRateLimitHasBeenSet = true; m_throttlingRateLimit = value; }
95 inline AwsApiGatewayMethodSettings& WithThrottlingRateLimit(double value) { SetThrottlingRateLimit(value); return *this;}
97
99
103 inline bool GetCachingEnabled() const { return m_cachingEnabled; }
104 inline bool CachingEnabledHasBeenSet() const { return m_cachingEnabledHasBeenSet; }
105 inline void SetCachingEnabled(bool value) { m_cachingEnabledHasBeenSet = true; m_cachingEnabled = value; }
106 inline AwsApiGatewayMethodSettings& WithCachingEnabled(bool value) { SetCachingEnabled(value); return *this;}
108
110
114 inline int GetCacheTtlInSeconds() const { return m_cacheTtlInSeconds; }
115 inline bool CacheTtlInSecondsHasBeenSet() const { return m_cacheTtlInSecondsHasBeenSet; }
116 inline void SetCacheTtlInSeconds(int value) { m_cacheTtlInSecondsHasBeenSet = true; m_cacheTtlInSeconds = value; }
119
121
124 inline bool GetCacheDataEncrypted() const { return m_cacheDataEncrypted; }
125 inline bool CacheDataEncryptedHasBeenSet() const { return m_cacheDataEncryptedHasBeenSet; }
126 inline void SetCacheDataEncrypted(bool value) { m_cacheDataEncryptedHasBeenSet = true; m_cacheDataEncrypted = value; }
129
131
135 inline bool GetRequireAuthorizationForCacheControl() const { return m_requireAuthorizationForCacheControl; }
136 inline bool RequireAuthorizationForCacheControlHasBeenSet() const { return m_requireAuthorizationForCacheControlHasBeenSet; }
137 inline void SetRequireAuthorizationForCacheControl(bool value) { m_requireAuthorizationForCacheControlHasBeenSet = true; m_requireAuthorizationForCacheControl = value; }
140
142
148 inline const Aws::String& GetUnauthorizedCacheControlHeaderStrategy() const { return m_unauthorizedCacheControlHeaderStrategy; }
149 inline bool UnauthorizedCacheControlHeaderStrategyHasBeenSet() const { return m_unauthorizedCacheControlHeaderStrategyHasBeenSet; }
150 template<typename UnauthorizedCacheControlHeaderStrategyT = Aws::String>
151 void SetUnauthorizedCacheControlHeaderStrategy(UnauthorizedCacheControlHeaderStrategyT&& value) { m_unauthorizedCacheControlHeaderStrategyHasBeenSet = true; m_unauthorizedCacheControlHeaderStrategy = std::forward<UnauthorizedCacheControlHeaderStrategyT>(value); }
152 template<typename UnauthorizedCacheControlHeaderStrategyT = Aws::String>
153 AwsApiGatewayMethodSettings& WithUnauthorizedCacheControlHeaderStrategy(UnauthorizedCacheControlHeaderStrategyT&& value) { SetUnauthorizedCacheControlHeaderStrategy(std::forward<UnauthorizedCacheControlHeaderStrategyT>(value)); return *this;}
155
157
161 inline const Aws::String& GetHttpMethod() const { return m_httpMethod; }
162 inline bool HttpMethodHasBeenSet() const { return m_httpMethodHasBeenSet; }
163 template<typename HttpMethodT = Aws::String>
164 void SetHttpMethod(HttpMethodT&& value) { m_httpMethodHasBeenSet = true; m_httpMethod = std::forward<HttpMethodT>(value); }
165 template<typename HttpMethodT = Aws::String>
166 AwsApiGatewayMethodSettings& WithHttpMethod(HttpMethodT&& value) { SetHttpMethod(std::forward<HttpMethodT>(value)); return *this;}
168
170
178 inline const Aws::String& GetResourcePath() const { return m_resourcePath; }
179 inline bool ResourcePathHasBeenSet() const { return m_resourcePathHasBeenSet; }
180 template<typename ResourcePathT = Aws::String>
181 void SetResourcePath(ResourcePathT&& value) { m_resourcePathHasBeenSet = true; m_resourcePath = std::forward<ResourcePathT>(value); }
182 template<typename ResourcePathT = Aws::String>
183 AwsApiGatewayMethodSettings& WithResourcePath(ResourcePathT&& value) { SetResourcePath(std::forward<ResourcePathT>(value)); return *this;}
185 private:
186
187 bool m_metricsEnabled{false};
188 bool m_metricsEnabledHasBeenSet = false;
189
190 Aws::String m_loggingLevel;
191 bool m_loggingLevelHasBeenSet = false;
192
193 bool m_dataTraceEnabled{false};
194 bool m_dataTraceEnabledHasBeenSet = false;
195
196 int m_throttlingBurstLimit{0};
197 bool m_throttlingBurstLimitHasBeenSet = false;
198
199 double m_throttlingRateLimit{0.0};
200 bool m_throttlingRateLimitHasBeenSet = false;
201
202 bool m_cachingEnabled{false};
203 bool m_cachingEnabledHasBeenSet = false;
204
205 int m_cacheTtlInSeconds{0};
206 bool m_cacheTtlInSecondsHasBeenSet = false;
207
208 bool m_cacheDataEncrypted{false};
209 bool m_cacheDataEncryptedHasBeenSet = false;
210
211 bool m_requireAuthorizationForCacheControl{false};
212 bool m_requireAuthorizationForCacheControlHasBeenSet = false;
213
214 Aws::String m_unauthorizedCacheControlHeaderStrategy;
215 bool m_unauthorizedCacheControlHeaderStrategyHasBeenSet = false;
216
217 Aws::String m_httpMethod;
218 bool m_httpMethodHasBeenSet = false;
219
220 Aws::String m_resourcePath;
221 bool m_resourcePathHasBeenSet = false;
222 };
223
224} // namespace Model
225} // namespace SecurityHub
226} // 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