AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetLoggingLevel(const Aws::String& value) { m_loggingLevelHasBeenSet = true; m_loggingLevel = value; }
62 inline void SetLoggingLevel(Aws::String&& value) { m_loggingLevelHasBeenSet = true; m_loggingLevel = std::move(value); }
63 inline void SetLoggingLevel(const char* value) { m_loggingLevelHasBeenSet = true; m_loggingLevel.assign(value); }
64 inline AwsApiGatewayMethodSettings& WithLoggingLevel(const Aws::String& value) { SetLoggingLevel(value); return *this;}
65 inline AwsApiGatewayMethodSettings& WithLoggingLevel(Aws::String&& value) { SetLoggingLevel(std::move(value)); return *this;}
66 inline AwsApiGatewayMethodSettings& WithLoggingLevel(const char* value) { SetLoggingLevel(value); return *this;}
68
70
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 AwsApiGatewayMethodSettings& 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; }
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 AwsApiGatewayMethodSettings& 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 AwsApiGatewayMethodSettings& 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; }
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; }
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
150 inline const Aws::String& GetUnauthorizedCacheControlHeaderStrategy() const{ return m_unauthorizedCacheControlHeaderStrategy; }
151 inline bool UnauthorizedCacheControlHeaderStrategyHasBeenSet() const { return m_unauthorizedCacheControlHeaderStrategyHasBeenSet; }
152 inline void SetUnauthorizedCacheControlHeaderStrategy(const Aws::String& value) { m_unauthorizedCacheControlHeaderStrategyHasBeenSet = true; m_unauthorizedCacheControlHeaderStrategy = value; }
153 inline void SetUnauthorizedCacheControlHeaderStrategy(Aws::String&& value) { m_unauthorizedCacheControlHeaderStrategyHasBeenSet = true; m_unauthorizedCacheControlHeaderStrategy = std::move(value); }
154 inline void SetUnauthorizedCacheControlHeaderStrategy(const char* value) { m_unauthorizedCacheControlHeaderStrategyHasBeenSet = true; m_unauthorizedCacheControlHeaderStrategy.assign(value); }
159
161
165 inline const Aws::String& GetHttpMethod() const{ return m_httpMethod; }
166 inline bool HttpMethodHasBeenSet() const { return m_httpMethodHasBeenSet; }
167 inline void SetHttpMethod(const Aws::String& value) { m_httpMethodHasBeenSet = true; m_httpMethod = value; }
168 inline void SetHttpMethod(Aws::String&& value) { m_httpMethodHasBeenSet = true; m_httpMethod = std::move(value); }
169 inline void SetHttpMethod(const char* value) { m_httpMethodHasBeenSet = true; m_httpMethod.assign(value); }
170 inline AwsApiGatewayMethodSettings& WithHttpMethod(const Aws::String& value) { SetHttpMethod(value); return *this;}
171 inline AwsApiGatewayMethodSettings& WithHttpMethod(Aws::String&& value) { SetHttpMethod(std::move(value)); return *this;}
172 inline AwsApiGatewayMethodSettings& WithHttpMethod(const char* value) { SetHttpMethod(value); return *this;}
174
176
184 inline const Aws::String& GetResourcePath() const{ return m_resourcePath; }
185 inline bool ResourcePathHasBeenSet() const { return m_resourcePathHasBeenSet; }
186 inline void SetResourcePath(const Aws::String& value) { m_resourcePathHasBeenSet = true; m_resourcePath = value; }
187 inline void SetResourcePath(Aws::String&& value) { m_resourcePathHasBeenSet = true; m_resourcePath = std::move(value); }
188 inline void SetResourcePath(const char* value) { m_resourcePathHasBeenSet = true; m_resourcePath.assign(value); }
189 inline AwsApiGatewayMethodSettings& WithResourcePath(const Aws::String& value) { SetResourcePath(value); return *this;}
190 inline AwsApiGatewayMethodSettings& WithResourcePath(Aws::String&& value) { SetResourcePath(std::move(value)); return *this;}
191 inline AwsApiGatewayMethodSettings& WithResourcePath(const char* value) { SetResourcePath(value); return *this;}
193 private:
194
195 bool m_metricsEnabled;
196 bool m_metricsEnabledHasBeenSet = false;
197
198 Aws::String m_loggingLevel;
199 bool m_loggingLevelHasBeenSet = false;
200
201 bool m_dataTraceEnabled;
202 bool m_dataTraceEnabledHasBeenSet = false;
203
204 int m_throttlingBurstLimit;
205 bool m_throttlingBurstLimitHasBeenSet = false;
206
207 double m_throttlingRateLimit;
208 bool m_throttlingRateLimitHasBeenSet = false;
209
210 bool m_cachingEnabled;
211 bool m_cachingEnabledHasBeenSet = false;
212
213 int m_cacheTtlInSeconds;
214 bool m_cacheTtlInSecondsHasBeenSet = false;
215
216 bool m_cacheDataEncrypted;
217 bool m_cacheDataEncryptedHasBeenSet = false;
218
219 bool m_requireAuthorizationForCacheControl;
220 bool m_requireAuthorizationForCacheControlHasBeenSet = false;
221
222 Aws::String m_unauthorizedCacheControlHeaderStrategy;
223 bool m_unauthorizedCacheControlHeaderStrategyHasBeenSet = false;
224
225 Aws::String m_httpMethod;
226 bool m_httpMethodHasBeenSet = false;
227
228 Aws::String m_resourcePath;
229 bool m_resourcePathHasBeenSet = false;
230 };
231
232} // namespace Model
233} // namespace SecurityHub
234} // namespace Aws
AWS_SECURITYHUB_API AwsApiGatewayMethodSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsApiGatewayMethodSettings & WithCacheTtlInSeconds(int value)
AwsApiGatewayMethodSettings & WithCacheDataEncrypted(bool value)
AwsApiGatewayMethodSettings & WithUnauthorizedCacheControlHeaderStrategy(const char *value)
AwsApiGatewayMethodSettings & WithHttpMethod(const Aws::String &value)
AwsApiGatewayMethodSettings & WithResourcePath(const Aws::String &value)
AwsApiGatewayMethodSettings & WithUnauthorizedCacheControlHeaderStrategy(const Aws::String &value)
AWS_SECURITYHUB_API AwsApiGatewayMethodSettings(Aws::Utils::Json::JsonView jsonValue)
AwsApiGatewayMethodSettings & WithLoggingLevel(const char *value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsApiGatewayMethodSettings & WithDataTraceEnabled(bool value)
AwsApiGatewayMethodSettings & WithResourcePath(Aws::String &&value)
AwsApiGatewayMethodSettings & WithThrottlingRateLimit(double value)
AwsApiGatewayMethodSettings & WithHttpMethod(const char *value)
AwsApiGatewayMethodSettings & WithRequireAuthorizationForCacheControl(bool value)
AwsApiGatewayMethodSettings & WithUnauthorizedCacheControlHeaderStrategy(Aws::String &&value)
AwsApiGatewayMethodSettings & WithCachingEnabled(bool value)
AwsApiGatewayMethodSettings & WithLoggingLevel(const Aws::String &value)
AwsApiGatewayMethodSettings & WithMetricsEnabled(bool value)
AwsApiGatewayMethodSettings & WithResourcePath(const char *value)
AwsApiGatewayMethodSettings & WithThrottlingBurstLimit(int value)
AwsApiGatewayMethodSettings & WithLoggingLevel(Aws::String &&value)
AwsApiGatewayMethodSettings & WithHttpMethod(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue