AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MethodSetting.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/apigateway/model/UnauthorizedCacheControlHeaderStrategy.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace APIGateway
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_APIGATEWAY_API MethodSetting();
36 AWS_APIGATEWAY_API MethodSetting(Aws::Utils::Json::JsonView jsonValue);
37 AWS_APIGATEWAY_API MethodSetting& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline bool GetMetricsEnabled() const{ return m_metricsEnabled; }
46 inline bool MetricsEnabledHasBeenSet() const { return m_metricsEnabledHasBeenSet; }
47 inline void SetMetricsEnabled(bool value) { m_metricsEnabledHasBeenSet = true; m_metricsEnabled = value; }
48 inline MethodSetting& WithMetricsEnabled(bool value) { SetMetricsEnabled(value); return *this;}
50
52
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 MethodSetting& WithLoggingLevel(const Aws::String& value) { SetLoggingLevel(value); return *this;}
65 inline MethodSetting& WithLoggingLevel(Aws::String&& value) { SetLoggingLevel(std::move(value)); return *this;}
66 inline MethodSetting& WithLoggingLevel(const char* value) { SetLoggingLevel(value); return *this;}
68
70
76 inline bool GetDataTraceEnabled() const{ return m_dataTraceEnabled; }
77 inline bool DataTraceEnabledHasBeenSet() const { return m_dataTraceEnabledHasBeenSet; }
78 inline void SetDataTraceEnabled(bool value) { m_dataTraceEnabledHasBeenSet = true; m_dataTraceEnabled = value; }
79 inline MethodSetting& WithDataTraceEnabled(bool value) { SetDataTraceEnabled(value); return *this;}
81
83
86 inline int GetThrottlingBurstLimit() const{ return m_throttlingBurstLimit; }
87 inline bool ThrottlingBurstLimitHasBeenSet() const { return m_throttlingBurstLimitHasBeenSet; }
88 inline void SetThrottlingBurstLimit(int value) { m_throttlingBurstLimitHasBeenSet = true; m_throttlingBurstLimit = value; }
89 inline MethodSetting& WithThrottlingBurstLimit(int value) { SetThrottlingBurstLimit(value); return *this;}
91
93
96 inline double GetThrottlingRateLimit() const{ return m_throttlingRateLimit; }
97 inline bool ThrottlingRateLimitHasBeenSet() const { return m_throttlingRateLimitHasBeenSet; }
98 inline void SetThrottlingRateLimit(double value) { m_throttlingRateLimitHasBeenSet = true; m_throttlingRateLimit = value; }
99 inline MethodSetting& WithThrottlingRateLimit(double value) { SetThrottlingRateLimit(value); return *this;}
101
103
107 inline bool GetCachingEnabled() const{ return m_cachingEnabled; }
108 inline bool CachingEnabledHasBeenSet() const { return m_cachingEnabledHasBeenSet; }
109 inline void SetCachingEnabled(bool value) { m_cachingEnabledHasBeenSet = true; m_cachingEnabled = value; }
110 inline MethodSetting& WithCachingEnabled(bool value) { SetCachingEnabled(value); return *this;}
112
114
118 inline int GetCacheTtlInSeconds() const{ return m_cacheTtlInSeconds; }
119 inline bool CacheTtlInSecondsHasBeenSet() const { return m_cacheTtlInSecondsHasBeenSet; }
120 inline void SetCacheTtlInSeconds(int value) { m_cacheTtlInSecondsHasBeenSet = true; m_cacheTtlInSeconds = value; }
121 inline MethodSetting& WithCacheTtlInSeconds(int value) { SetCacheTtlInSeconds(value); return *this;}
123
125
128 inline bool GetCacheDataEncrypted() const{ return m_cacheDataEncrypted; }
129 inline bool CacheDataEncryptedHasBeenSet() const { return m_cacheDataEncryptedHasBeenSet; }
130 inline void SetCacheDataEncrypted(bool value) { m_cacheDataEncryptedHasBeenSet = true; m_cacheDataEncrypted = value; }
131 inline MethodSetting& WithCacheDataEncrypted(bool value) { SetCacheDataEncrypted(value); return *this;}
133
135
139 inline bool GetRequireAuthorizationForCacheControl() const{ return m_requireAuthorizationForCacheControl; }
140 inline bool RequireAuthorizationForCacheControlHasBeenSet() const { return m_requireAuthorizationForCacheControlHasBeenSet; }
141 inline void SetRequireAuthorizationForCacheControl(bool value) { m_requireAuthorizationForCacheControlHasBeenSet = true; m_requireAuthorizationForCacheControl = value; }
144
146
149 inline const UnauthorizedCacheControlHeaderStrategy& GetUnauthorizedCacheControlHeaderStrategy() const{ return m_unauthorizedCacheControlHeaderStrategy; }
150 inline bool UnauthorizedCacheControlHeaderStrategyHasBeenSet() const { return m_unauthorizedCacheControlHeaderStrategyHasBeenSet; }
151 inline void SetUnauthorizedCacheControlHeaderStrategy(const UnauthorizedCacheControlHeaderStrategy& value) { m_unauthorizedCacheControlHeaderStrategyHasBeenSet = true; m_unauthorizedCacheControlHeaderStrategy = value; }
152 inline void SetUnauthorizedCacheControlHeaderStrategy(UnauthorizedCacheControlHeaderStrategy&& value) { m_unauthorizedCacheControlHeaderStrategyHasBeenSet = true; m_unauthorizedCacheControlHeaderStrategy = std::move(value); }
156 private:
157
158 bool m_metricsEnabled;
159 bool m_metricsEnabledHasBeenSet = false;
160
161 Aws::String m_loggingLevel;
162 bool m_loggingLevelHasBeenSet = false;
163
164 bool m_dataTraceEnabled;
165 bool m_dataTraceEnabledHasBeenSet = false;
166
167 int m_throttlingBurstLimit;
168 bool m_throttlingBurstLimitHasBeenSet = false;
169
170 double m_throttlingRateLimit;
171 bool m_throttlingRateLimitHasBeenSet = false;
172
173 bool m_cachingEnabled;
174 bool m_cachingEnabledHasBeenSet = false;
175
176 int m_cacheTtlInSeconds;
177 bool m_cacheTtlInSecondsHasBeenSet = false;
178
179 bool m_cacheDataEncrypted;
180 bool m_cacheDataEncryptedHasBeenSet = false;
181
182 bool m_requireAuthorizationForCacheControl;
183 bool m_requireAuthorizationForCacheControlHasBeenSet = false;
184
185 UnauthorizedCacheControlHeaderStrategy m_unauthorizedCacheControlHeaderStrategy;
186 bool m_unauthorizedCacheControlHeaderStrategyHasBeenSet = false;
187 };
188
189} // namespace Model
190} // namespace APIGateway
191} // namespace Aws
void SetUnauthorizedCacheControlHeaderStrategy(const UnauthorizedCacheControlHeaderStrategy &value)
MethodSetting & WithThrottlingRateLimit(double value)
MethodSetting & WithCachingEnabled(bool value)
const UnauthorizedCacheControlHeaderStrategy & GetUnauthorizedCacheControlHeaderStrategy() const
void SetRequireAuthorizationForCacheControl(bool value)
MethodSetting & WithLoggingLevel(const Aws::String &value)
MethodSetting & WithThrottlingBurstLimit(int value)
MethodSetting & WithMetricsEnabled(bool value)
MethodSetting & WithDataTraceEnabled(bool value)
const Aws::String & GetLoggingLevel() const
MethodSetting & WithUnauthorizedCacheControlHeaderStrategy(UnauthorizedCacheControlHeaderStrategy &&value)
MethodSetting & WithLoggingLevel(const char *value)
MethodSetting & WithCacheTtlInSeconds(int value)
void SetLoggingLevel(Aws::String &&value)
void SetLoggingLevel(const char *value)
MethodSetting & WithRequireAuthorizationForCacheControl(bool value)
void SetUnauthorizedCacheControlHeaderStrategy(UnauthorizedCacheControlHeaderStrategy &&value)
AWS_APIGATEWAY_API MethodSetting & operator=(Aws::Utils::Json::JsonView jsonValue)
bool RequireAuthorizationForCacheControlHasBeenSet() const
void SetLoggingLevel(const Aws::String &value)
bool UnauthorizedCacheControlHeaderStrategyHasBeenSet() const
MethodSetting & WithUnauthorizedCacheControlHeaderStrategy(const UnauthorizedCacheControlHeaderStrategy &value)
MethodSetting & WithLoggingLevel(Aws::String &&value)
AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APIGATEWAY_API MethodSetting(Aws::Utils::Json::JsonView jsonValue)
MethodSetting & WithCacheDataEncrypted(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue