AWS SDK for C++  1.9.16
AWS SDK for C++
MethodSetting.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace APIGateway
23 {
24 namespace Model
25 {
26 
33  {
34  public:
39 
40 
47  inline bool GetMetricsEnabled() const{ return m_metricsEnabled; }
48 
55  inline bool MetricsEnabledHasBeenSet() const { return m_metricsEnabledHasBeenSet; }
56 
63  inline void SetMetricsEnabled(bool value) { m_metricsEnabledHasBeenSet = true; m_metricsEnabled = value; }
64 
71  inline MethodSetting& WithMetricsEnabled(bool value) { SetMetricsEnabled(value); return *this;}
72 
73 
83  inline const Aws::String& GetLoggingLevel() const{ return m_loggingLevel; }
84 
94  inline bool LoggingLevelHasBeenSet() const { return m_loggingLevelHasBeenSet; }
95 
105  inline void SetLoggingLevel(const Aws::String& value) { m_loggingLevelHasBeenSet = true; m_loggingLevel = value; }
106 
116  inline void SetLoggingLevel(Aws::String&& value) { m_loggingLevelHasBeenSet = true; m_loggingLevel = std::move(value); }
117 
127  inline void SetLoggingLevel(const char* value) { m_loggingLevelHasBeenSet = true; m_loggingLevel.assign(value); }
128 
138  inline MethodSetting& WithLoggingLevel(const Aws::String& value) { SetLoggingLevel(value); return *this;}
139 
149  inline MethodSetting& WithLoggingLevel(Aws::String&& value) { SetLoggingLevel(std::move(value)); return *this;}
150 
160  inline MethodSetting& WithLoggingLevel(const char* value) { SetLoggingLevel(value); return *this;}
161 
162 
169  inline bool GetDataTraceEnabled() const{ return m_dataTraceEnabled; }
170 
177  inline bool DataTraceEnabledHasBeenSet() const { return m_dataTraceEnabledHasBeenSet; }
178 
185  inline void SetDataTraceEnabled(bool value) { m_dataTraceEnabledHasBeenSet = true; m_dataTraceEnabled = value; }
186 
193  inline MethodSetting& WithDataTraceEnabled(bool value) { SetDataTraceEnabled(value); return *this;}
194 
195 
201  inline int GetThrottlingBurstLimit() const{ return m_throttlingBurstLimit; }
202 
208  inline bool ThrottlingBurstLimitHasBeenSet() const { return m_throttlingBurstLimitHasBeenSet; }
209 
215  inline void SetThrottlingBurstLimit(int value) { m_throttlingBurstLimitHasBeenSet = true; m_throttlingBurstLimit = value; }
216 
222  inline MethodSetting& WithThrottlingBurstLimit(int value) { SetThrottlingBurstLimit(value); return *this;}
223 
224 
230  inline double GetThrottlingRateLimit() const{ return m_throttlingRateLimit; }
231 
237  inline bool ThrottlingRateLimitHasBeenSet() const { return m_throttlingRateLimitHasBeenSet; }
238 
244  inline void SetThrottlingRateLimit(double value) { m_throttlingRateLimitHasBeenSet = true; m_throttlingRateLimit = value; }
245 
251  inline MethodSetting& WithThrottlingRateLimit(double value) { SetThrottlingRateLimit(value); return *this;}
252 
253 
260  inline bool GetCachingEnabled() const{ return m_cachingEnabled; }
261 
268  inline bool CachingEnabledHasBeenSet() const { return m_cachingEnabledHasBeenSet; }
269 
276  inline void SetCachingEnabled(bool value) { m_cachingEnabledHasBeenSet = true; m_cachingEnabled = value; }
277 
284  inline MethodSetting& WithCachingEnabled(bool value) { SetCachingEnabled(value); return *this;}
285 
286 
293  inline int GetCacheTtlInSeconds() const{ return m_cacheTtlInSeconds; }
294 
301  inline bool CacheTtlInSecondsHasBeenSet() const { return m_cacheTtlInSecondsHasBeenSet; }
302 
309  inline void SetCacheTtlInSeconds(int value) { m_cacheTtlInSecondsHasBeenSet = true; m_cacheTtlInSeconds = value; }
310 
317  inline MethodSetting& WithCacheTtlInSeconds(int value) { SetCacheTtlInSeconds(value); return *this;}
318 
319 
325  inline bool GetCacheDataEncrypted() const{ return m_cacheDataEncrypted; }
326 
332  inline bool CacheDataEncryptedHasBeenSet() const { return m_cacheDataEncryptedHasBeenSet; }
333 
339  inline void SetCacheDataEncrypted(bool value) { m_cacheDataEncryptedHasBeenSet = true; m_cacheDataEncrypted = value; }
340 
346  inline MethodSetting& WithCacheDataEncrypted(bool value) { SetCacheDataEncrypted(value); return *this;}
347 
348 
355  inline bool GetRequireAuthorizationForCacheControl() const{ return m_requireAuthorizationForCacheControl; }
356 
363  inline bool RequireAuthorizationForCacheControlHasBeenSet() const { return m_requireAuthorizationForCacheControlHasBeenSet; }
364 
371  inline void SetRequireAuthorizationForCacheControl(bool value) { m_requireAuthorizationForCacheControlHasBeenSet = true; m_requireAuthorizationForCacheControl = value; }
372 
379  inline MethodSetting& WithRequireAuthorizationForCacheControl(bool value) { SetRequireAuthorizationForCacheControl(value); return *this;}
380 
381 
390  inline const UnauthorizedCacheControlHeaderStrategy& GetUnauthorizedCacheControlHeaderStrategy() const{ return m_unauthorizedCacheControlHeaderStrategy; }
391 
400  inline bool UnauthorizedCacheControlHeaderStrategyHasBeenSet() const { return m_unauthorizedCacheControlHeaderStrategyHasBeenSet; }
401 
410  inline void SetUnauthorizedCacheControlHeaderStrategy(const UnauthorizedCacheControlHeaderStrategy& value) { m_unauthorizedCacheControlHeaderStrategyHasBeenSet = true; m_unauthorizedCacheControlHeaderStrategy = value; }
411 
420  inline void SetUnauthorizedCacheControlHeaderStrategy(UnauthorizedCacheControlHeaderStrategy&& value) { m_unauthorizedCacheControlHeaderStrategyHasBeenSet = true; m_unauthorizedCacheControlHeaderStrategy = std::move(value); }
421 
430  inline MethodSetting& WithUnauthorizedCacheControlHeaderStrategy(const UnauthorizedCacheControlHeaderStrategy& value) { SetUnauthorizedCacheControlHeaderStrategy(value); return *this;}
431 
440  inline MethodSetting& WithUnauthorizedCacheControlHeaderStrategy(UnauthorizedCacheControlHeaderStrategy&& value) { SetUnauthorizedCacheControlHeaderStrategy(std::move(value)); return *this;}
441 
442  private:
443 
444  bool m_metricsEnabled;
445  bool m_metricsEnabledHasBeenSet;
446 
447  Aws::String m_loggingLevel;
448  bool m_loggingLevelHasBeenSet;
449 
450  bool m_dataTraceEnabled;
451  bool m_dataTraceEnabledHasBeenSet;
452 
453  int m_throttlingBurstLimit;
454  bool m_throttlingBurstLimitHasBeenSet;
455 
456  double m_throttlingRateLimit;
457  bool m_throttlingRateLimitHasBeenSet;
458 
459  bool m_cachingEnabled;
460  bool m_cachingEnabledHasBeenSet;
461 
462  int m_cacheTtlInSeconds;
463  bool m_cacheTtlInSecondsHasBeenSet;
464 
465  bool m_cacheDataEncrypted;
466  bool m_cacheDataEncryptedHasBeenSet;
467 
468  bool m_requireAuthorizationForCacheControl;
469  bool m_requireAuthorizationForCacheControlHasBeenSet;
470 
471  UnauthorizedCacheControlHeaderStrategy m_unauthorizedCacheControlHeaderStrategy;
472  bool m_unauthorizedCacheControlHeaderStrategyHasBeenSet;
473  };
474 
475 } // namespace Model
476 } // namespace APIGateway
477 } // namespace Aws
Aws::APIGateway::Model::MethodSetting::GetThrottlingBurstLimit
int GetThrottlingBurstLimit() const
Definition: MethodSetting.h:201
Aws::APIGateway::Model::MethodSetting::WithLoggingLevel
MethodSetting & WithLoggingLevel(const char *value)
Definition: MethodSetting.h:160
AWS_APIGATEWAY_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
Aws::APIGateway::Model::UnauthorizedCacheControlHeaderStrategy
UnauthorizedCacheControlHeaderStrategy
Definition: UnauthorizedCacheControlHeaderStrategy.h:17
Aws::APIGateway::Model::MethodSetting::SetRequireAuthorizationForCacheControl
void SetRequireAuthorizationForCacheControl(bool value)
Definition: MethodSetting.h:371
Aws::APIGateway::Model::MethodSetting::SetDataTraceEnabled
void SetDataTraceEnabled(bool value)
Definition: MethodSetting.h:185
Aws::APIGateway::Model::MethodSetting::SetLoggingLevel
void SetLoggingLevel(const Aws::String &value)
Definition: MethodSetting.h:105
Aws::APIGateway::Model::MethodSetting
Definition: MethodSetting.h:33
UnauthorizedCacheControlHeaderStrategy.h
Aws::APIGateway::Model::MethodSetting::SetLoggingLevel
void SetLoggingLevel(const char *value)
Definition: MethodSetting.h:127
Aws::APIGateway::Model::MethodSetting::MethodSetting
MethodSetting(Aws::Utils::Json::JsonView jsonValue)
Aws::APIGateway::Model::MethodSetting::WithDataTraceEnabled
MethodSetting & WithDataTraceEnabled(bool value)
Definition: MethodSetting.h:193
Aws::APIGateway::Model::MethodSetting::SetCachingEnabled
void SetCachingEnabled(bool value)
Definition: MethodSetting.h:276
Aws::APIGateway::Model::MethodSetting::SetLoggingLevel
void SetLoggingLevel(Aws::String &&value)
Definition: MethodSetting.h:116
APIGateway_EXPORTS.h
Aws::APIGateway::Model::MethodSetting::SetCacheTtlInSeconds
void SetCacheTtlInSeconds(int value)
Definition: MethodSetting.h:309
Aws::APIGateway::Model::MethodSetting::SetThrottlingBurstLimit
void SetThrottlingBurstLimit(int value)
Definition: MethodSetting.h:215
Aws::APIGateway::Model::MethodSetting::WithMetricsEnabled
MethodSetting & WithMetricsEnabled(bool value)
Definition: MethodSetting.h:71
Aws::APIGateway::Model::MethodSetting::CacheTtlInSecondsHasBeenSet
bool CacheTtlInSecondsHasBeenSet() const
Definition: MethodSetting.h:301
Aws::APIGateway::Model::MethodSetting::GetThrottlingRateLimit
double GetThrottlingRateLimit() const
Definition: MethodSetting.h:230
Aws::APIGateway::Model::MethodSetting::WithCacheDataEncrypted
MethodSetting & WithCacheDataEncrypted(bool value)
Definition: MethodSetting.h:346
Aws::APIGateway::Model::MethodSetting::WithUnauthorizedCacheControlHeaderStrategy
MethodSetting & WithUnauthorizedCacheControlHeaderStrategy(UnauthorizedCacheControlHeaderStrategy &&value)
Definition: MethodSetting.h:440
Aws::APIGateway::Model::MethodSetting::SetThrottlingRateLimit
void SetThrottlingRateLimit(double value)
Definition: MethodSetting.h:244
Aws::APIGateway::Model::MethodSetting::WithCachingEnabled
MethodSetting & WithCachingEnabled(bool value)
Definition: MethodSetting.h:284
Aws::APIGateway::Model::MethodSetting::GetLoggingLevel
const Aws::String & GetLoggingLevel() const
Definition: MethodSetting.h:83
Aws::APIGateway::Model::MethodSetting::GetCacheDataEncrypted
bool GetCacheDataEncrypted() const
Definition: MethodSetting.h:325
Aws::APIGateway::Model::MethodSetting::WithLoggingLevel
MethodSetting & WithLoggingLevel(const Aws::String &value)
Definition: MethodSetting.h:138
Aws::APIGateway::Model::MethodSetting::CachingEnabledHasBeenSet
bool CachingEnabledHasBeenSet() const
Definition: MethodSetting.h:268
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::APIGateway::Model::MethodSetting::RequireAuthorizationForCacheControlHasBeenSet
bool RequireAuthorizationForCacheControlHasBeenSet() const
Definition: MethodSetting.h:363
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::APIGateway::Model::MethodSetting::SetUnauthorizedCacheControlHeaderStrategy
void SetUnauthorizedCacheControlHeaderStrategy(UnauthorizedCacheControlHeaderStrategy &&value)
Definition: MethodSetting.h:420
Aws::APIGateway::Model::MethodSetting::GetCacheTtlInSeconds
int GetCacheTtlInSeconds() const
Definition: MethodSetting.h:293
Aws::APIGateway::Model::MethodSetting::GetMetricsEnabled
bool GetMetricsEnabled() const
Definition: MethodSetting.h:47
Aws::APIGateway::Model::MethodSetting::SetCacheDataEncrypted
void SetCacheDataEncrypted(bool value)
Definition: MethodSetting.h:339
Aws::APIGateway::Model::MethodSetting::DataTraceEnabledHasBeenSet
bool DataTraceEnabledHasBeenSet() const
Definition: MethodSetting.h:177
Aws::APIGateway::Model::MethodSetting::MetricsEnabledHasBeenSet
bool MetricsEnabledHasBeenSet() const
Definition: MethodSetting.h:55
Aws::APIGateway::Model::MethodSetting::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::APIGateway::Model::MethodSetting::WithRequireAuthorizationForCacheControl
MethodSetting & WithRequireAuthorizationForCacheControl(bool value)
Definition: MethodSetting.h:379
Aws::APIGateway::Model::MethodSetting::SetUnauthorizedCacheControlHeaderStrategy
void SetUnauthorizedCacheControlHeaderStrategy(const UnauthorizedCacheControlHeaderStrategy &value)
Definition: MethodSetting.h:410
Aws::APIGateway::Model::MethodSetting::WithUnauthorizedCacheControlHeaderStrategy
MethodSetting & WithUnauthorizedCacheControlHeaderStrategy(const UnauthorizedCacheControlHeaderStrategy &value)
Definition: MethodSetting.h:430
Aws::APIGateway::Model::MethodSetting::GetCachingEnabled
bool GetCachingEnabled() const
Definition: MethodSetting.h:260
Aws::APIGateway::Model::MethodSetting::WithLoggingLevel
MethodSetting & WithLoggingLevel(Aws::String &&value)
Definition: MethodSetting.h:149
Aws::APIGateway::Model::MethodSetting::operator=
MethodSetting & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws
Definition: AccessManagementClient.h:15
Aws::APIGateway::Model::MethodSetting::CacheDataEncryptedHasBeenSet
bool CacheDataEncryptedHasBeenSet() const
Definition: MethodSetting.h:332
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::APIGateway::Model::MethodSetting::WithCacheTtlInSeconds
MethodSetting & WithCacheTtlInSeconds(int value)
Definition: MethodSetting.h:317
Aws::APIGateway::Model::MethodSetting::UnauthorizedCacheControlHeaderStrategyHasBeenSet
bool UnauthorizedCacheControlHeaderStrategyHasBeenSet() const
Definition: MethodSetting.h:400
Aws::APIGateway::Model::MethodSetting::LoggingLevelHasBeenSet
bool LoggingLevelHasBeenSet() const
Definition: MethodSetting.h:94
Aws::APIGateway::Model::MethodSetting::MethodSetting
MethodSetting()
Aws::APIGateway::Model::MethodSetting::WithThrottlingRateLimit
MethodSetting & WithThrottlingRateLimit(double value)
Definition: MethodSetting.h:251
Aws::APIGateway::Model::MethodSetting::GetRequireAuthorizationForCacheControl
bool GetRequireAuthorizationForCacheControl() const
Definition: MethodSetting.h:355
Aws::APIGateway::Model::MethodSetting::ThrottlingRateLimitHasBeenSet
bool ThrottlingRateLimitHasBeenSet() const
Definition: MethodSetting.h:237
Aws::APIGateway::Model::MethodSetting::GetDataTraceEnabled
bool GetDataTraceEnabled() const
Definition: MethodSetting.h:169
Aws::APIGateway::Model::MethodSetting::WithThrottlingBurstLimit
MethodSetting & WithThrottlingBurstLimit(int value)
Definition: MethodSetting.h:222
Aws::APIGateway::Model::MethodSetting::ThrottlingBurstLimitHasBeenSet
bool ThrottlingBurstLimitHasBeenSet() const
Definition: MethodSetting.h:208
Aws::APIGateway::Model::MethodSetting::GetUnauthorizedCacheControlHeaderStrategy
const UnauthorizedCacheControlHeaderStrategy & GetUnauthorizedCacheControlHeaderStrategy() const
Definition: MethodSetting.h:390
Aws::APIGateway::Model::MethodSetting::SetMetricsEnabled
void SetMetricsEnabled(bool value)
Definition: MethodSetting.h:63