AWS SDK for C++  1.9.160
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 
171  inline bool GetDataTraceEnabled() const{ return m_dataTraceEnabled; }
172 
181  inline bool DataTraceEnabledHasBeenSet() const { return m_dataTraceEnabledHasBeenSet; }
182 
191  inline void SetDataTraceEnabled(bool value) { m_dataTraceEnabledHasBeenSet = true; m_dataTraceEnabled = value; }
192 
201  inline MethodSetting& WithDataTraceEnabled(bool value) { SetDataTraceEnabled(value); return *this;}
202 
203 
209  inline int GetThrottlingBurstLimit() const{ return m_throttlingBurstLimit; }
210 
216  inline bool ThrottlingBurstLimitHasBeenSet() const { return m_throttlingBurstLimitHasBeenSet; }
217 
223  inline void SetThrottlingBurstLimit(int value) { m_throttlingBurstLimitHasBeenSet = true; m_throttlingBurstLimit = value; }
224 
230  inline MethodSetting& WithThrottlingBurstLimit(int value) { SetThrottlingBurstLimit(value); return *this;}
231 
232 
238  inline double GetThrottlingRateLimit() const{ return m_throttlingRateLimit; }
239 
245  inline bool ThrottlingRateLimitHasBeenSet() const { return m_throttlingRateLimitHasBeenSet; }
246 
252  inline void SetThrottlingRateLimit(double value) { m_throttlingRateLimitHasBeenSet = true; m_throttlingRateLimit = value; }
253 
259  inline MethodSetting& WithThrottlingRateLimit(double value) { SetThrottlingRateLimit(value); return *this;}
260 
261 
268  inline bool GetCachingEnabled() const{ return m_cachingEnabled; }
269 
276  inline bool CachingEnabledHasBeenSet() const { return m_cachingEnabledHasBeenSet; }
277 
284  inline void SetCachingEnabled(bool value) { m_cachingEnabledHasBeenSet = true; m_cachingEnabled = value; }
285 
292  inline MethodSetting& WithCachingEnabled(bool value) { SetCachingEnabled(value); return *this;}
293 
294 
301  inline int GetCacheTtlInSeconds() const{ return m_cacheTtlInSeconds; }
302 
309  inline bool CacheTtlInSecondsHasBeenSet() const { return m_cacheTtlInSecondsHasBeenSet; }
310 
317  inline void SetCacheTtlInSeconds(int value) { m_cacheTtlInSecondsHasBeenSet = true; m_cacheTtlInSeconds = value; }
318 
325  inline MethodSetting& WithCacheTtlInSeconds(int value) { SetCacheTtlInSeconds(value); return *this;}
326 
327 
333  inline bool GetCacheDataEncrypted() const{ return m_cacheDataEncrypted; }
334 
340  inline bool CacheDataEncryptedHasBeenSet() const { return m_cacheDataEncryptedHasBeenSet; }
341 
347  inline void SetCacheDataEncrypted(bool value) { m_cacheDataEncryptedHasBeenSet = true; m_cacheDataEncrypted = value; }
348 
354  inline MethodSetting& WithCacheDataEncrypted(bool value) { SetCacheDataEncrypted(value); return *this;}
355 
356 
363  inline bool GetRequireAuthorizationForCacheControl() const{ return m_requireAuthorizationForCacheControl; }
364 
371  inline bool RequireAuthorizationForCacheControlHasBeenSet() const { return m_requireAuthorizationForCacheControlHasBeenSet; }
372 
379  inline void SetRequireAuthorizationForCacheControl(bool value) { m_requireAuthorizationForCacheControlHasBeenSet = true; m_requireAuthorizationForCacheControl = value; }
380 
387  inline MethodSetting& WithRequireAuthorizationForCacheControl(bool value) { SetRequireAuthorizationForCacheControl(value); return *this;}
388 
389 
398  inline const UnauthorizedCacheControlHeaderStrategy& GetUnauthorizedCacheControlHeaderStrategy() const{ return m_unauthorizedCacheControlHeaderStrategy; }
399 
408  inline bool UnauthorizedCacheControlHeaderStrategyHasBeenSet() const { return m_unauthorizedCacheControlHeaderStrategyHasBeenSet; }
409 
418  inline void SetUnauthorizedCacheControlHeaderStrategy(const UnauthorizedCacheControlHeaderStrategy& value) { m_unauthorizedCacheControlHeaderStrategyHasBeenSet = true; m_unauthorizedCacheControlHeaderStrategy = value; }
419 
428  inline void SetUnauthorizedCacheControlHeaderStrategy(UnauthorizedCacheControlHeaderStrategy&& value) { m_unauthorizedCacheControlHeaderStrategyHasBeenSet = true; m_unauthorizedCacheControlHeaderStrategy = std::move(value); }
429 
438  inline MethodSetting& WithUnauthorizedCacheControlHeaderStrategy(const UnauthorizedCacheControlHeaderStrategy& value) { SetUnauthorizedCacheControlHeaderStrategy(value); return *this;}
439 
448  inline MethodSetting& WithUnauthorizedCacheControlHeaderStrategy(UnauthorizedCacheControlHeaderStrategy&& value) { SetUnauthorizedCacheControlHeaderStrategy(std::move(value)); return *this;}
449 
450  private:
451 
452  bool m_metricsEnabled;
453  bool m_metricsEnabledHasBeenSet;
454 
455  Aws::String m_loggingLevel;
456  bool m_loggingLevelHasBeenSet;
457 
458  bool m_dataTraceEnabled;
459  bool m_dataTraceEnabledHasBeenSet;
460 
461  int m_throttlingBurstLimit;
462  bool m_throttlingBurstLimitHasBeenSet;
463 
464  double m_throttlingRateLimit;
465  bool m_throttlingRateLimitHasBeenSet;
466 
467  bool m_cachingEnabled;
468  bool m_cachingEnabledHasBeenSet;
469 
470  int m_cacheTtlInSeconds;
471  bool m_cacheTtlInSecondsHasBeenSet;
472 
473  bool m_cacheDataEncrypted;
474  bool m_cacheDataEncryptedHasBeenSet;
475 
476  bool m_requireAuthorizationForCacheControl;
477  bool m_requireAuthorizationForCacheControlHasBeenSet;
478 
479  UnauthorizedCacheControlHeaderStrategy m_unauthorizedCacheControlHeaderStrategy;
480  bool m_unauthorizedCacheControlHeaderStrategyHasBeenSet;
481  };
482 
483 } // namespace Model
484 } // namespace APIGateway
485 } // namespace Aws
Aws::APIGateway::Model::MethodSetting::GetThrottlingBurstLimit
int GetThrottlingBurstLimit() const
Definition: MethodSetting.h:209
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:379
Aws::APIGateway::Model::MethodSetting::SetDataTraceEnabled
void SetDataTraceEnabled(bool value)
Definition: MethodSetting.h:191
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:201
Aws::APIGateway::Model::MethodSetting::SetCachingEnabled
void SetCachingEnabled(bool value)
Definition: MethodSetting.h:284
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:317
Aws::APIGateway::Model::MethodSetting::SetThrottlingBurstLimit
void SetThrottlingBurstLimit(int value)
Definition: MethodSetting.h:223
Aws::APIGateway::Model::MethodSetting::WithMetricsEnabled
MethodSetting & WithMetricsEnabled(bool value)
Definition: MethodSetting.h:71
Aws::APIGateway::Model::MethodSetting::CacheTtlInSecondsHasBeenSet
bool CacheTtlInSecondsHasBeenSet() const
Definition: MethodSetting.h:309
Aws::APIGateway::Model::MethodSetting::GetThrottlingRateLimit
double GetThrottlingRateLimit() const
Definition: MethodSetting.h:238
Aws::APIGateway::Model::MethodSetting::WithCacheDataEncrypted
MethodSetting & WithCacheDataEncrypted(bool value)
Definition: MethodSetting.h:354
Aws::APIGateway::Model::MethodSetting::WithUnauthorizedCacheControlHeaderStrategy
MethodSetting & WithUnauthorizedCacheControlHeaderStrategy(UnauthorizedCacheControlHeaderStrategy &&value)
Definition: MethodSetting.h:448
Aws::APIGateway::Model::MethodSetting::SetThrottlingRateLimit
void SetThrottlingRateLimit(double value)
Definition: MethodSetting.h:252
Aws::APIGateway::Model::MethodSetting::WithCachingEnabled
MethodSetting & WithCachingEnabled(bool value)
Definition: MethodSetting.h:292
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:333
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:276
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::APIGateway::Model::MethodSetting::RequireAuthorizationForCacheControlHasBeenSet
bool RequireAuthorizationForCacheControlHasBeenSet() const
Definition: MethodSetting.h:371
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::APIGateway::Model::MethodSetting::SetUnauthorizedCacheControlHeaderStrategy
void SetUnauthorizedCacheControlHeaderStrategy(UnauthorizedCacheControlHeaderStrategy &&value)
Definition: MethodSetting.h:428
Aws::APIGateway::Model::MethodSetting::GetCacheTtlInSeconds
int GetCacheTtlInSeconds() const
Definition: MethodSetting.h:301
Aws::APIGateway::Model::MethodSetting::GetMetricsEnabled
bool GetMetricsEnabled() const
Definition: MethodSetting.h:47
Aws::APIGateway::Model::MethodSetting::SetCacheDataEncrypted
void SetCacheDataEncrypted(bool value)
Definition: MethodSetting.h:347
Aws::APIGateway::Model::MethodSetting::DataTraceEnabledHasBeenSet
bool DataTraceEnabledHasBeenSet() const
Definition: MethodSetting.h:181
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:387
Aws::APIGateway::Model::MethodSetting::SetUnauthorizedCacheControlHeaderStrategy
void SetUnauthorizedCacheControlHeaderStrategy(const UnauthorizedCacheControlHeaderStrategy &value)
Definition: MethodSetting.h:418
Aws::APIGateway::Model::MethodSetting::WithUnauthorizedCacheControlHeaderStrategy
MethodSetting & WithUnauthorizedCacheControlHeaderStrategy(const UnauthorizedCacheControlHeaderStrategy &value)
Definition: MethodSetting.h:438
Aws::APIGateway::Model::MethodSetting::GetCachingEnabled
bool GetCachingEnabled() const
Definition: MethodSetting.h:268
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::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::APIGateway::Model::MethodSetting::CacheDataEncryptedHasBeenSet
bool CacheDataEncryptedHasBeenSet() const
Definition: MethodSetting.h:340
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:325
Aws::APIGateway::Model::MethodSetting::UnauthorizedCacheControlHeaderStrategyHasBeenSet
bool UnauthorizedCacheControlHeaderStrategyHasBeenSet() const
Definition: MethodSetting.h:408
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:259
Aws::APIGateway::Model::MethodSetting::GetRequireAuthorizationForCacheControl
bool GetRequireAuthorizationForCacheControl() const
Definition: MethodSetting.h:363
Aws::APIGateway::Model::MethodSetting::ThrottlingRateLimitHasBeenSet
bool ThrottlingRateLimitHasBeenSet() const
Definition: MethodSetting.h:245
Aws::APIGateway::Model::MethodSetting::GetDataTraceEnabled
bool GetDataTraceEnabled() const
Definition: MethodSetting.h:171
Aws::APIGateway::Model::MethodSetting::WithThrottlingBurstLimit
MethodSetting & WithThrottlingBurstLimit(int value)
Definition: MethodSetting.h:230
Aws::APIGateway::Model::MethodSetting::ThrottlingBurstLimitHasBeenSet
bool ThrottlingBurstLimitHasBeenSet() const
Definition: MethodSetting.h:216
Aws::APIGateway::Model::MethodSetting::GetUnauthorizedCacheControlHeaderStrategy
const UnauthorizedCacheControlHeaderStrategy & GetUnauthorizedCacheControlHeaderStrategy() const
Definition: MethodSetting.h:398
Aws::APIGateway::Model::MethodSetting::SetMetricsEnabled
void SetMetricsEnabled(bool value)
Definition: MethodSetting.h:63