AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ApiCache.h
1
6#pragma once
7#include <aws/appsync/AppSync_EXPORTS.h>
8#include <aws/appsync/model/ApiCacheStatus.h>
9#include <aws/appsync/model/ApiCacheType.h>
10#include <aws/appsync/model/ApiCachingBehavior.h>
11#include <aws/appsync/model/CacheHealthMetricsConfig.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AppSync {
23namespace Model {
24
30class ApiCache {
31 public:
32 AWS_APPSYNC_API ApiCache() = default;
33 AWS_APPSYNC_API ApiCache(Aws::Utils::Json::JsonView jsonValue);
34 AWS_APPSYNC_API ApiCache& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline long long GetTtl() const { return m_ttl; }
43 inline bool TtlHasBeenSet() const { return m_ttlHasBeenSet; }
44 inline void SetTtl(long long value) {
45 m_ttlHasBeenSet = true;
46 m_ttl = value;
47 }
48 inline ApiCache& WithTtl(long long value) {
49 SetTtl(value);
50 return *this;
51 }
53
55
63 inline ApiCachingBehavior GetApiCachingBehavior() const { return m_apiCachingBehavior; }
64 inline bool ApiCachingBehaviorHasBeenSet() const { return m_apiCachingBehaviorHasBeenSet; }
66 m_apiCachingBehaviorHasBeenSet = true;
67 m_apiCachingBehavior = value;
68 }
71 return *this;
72 }
74
76
80 inline bool GetTransitEncryptionEnabled() const { return m_transitEncryptionEnabled; }
81 inline bool TransitEncryptionEnabledHasBeenSet() const { return m_transitEncryptionEnabledHasBeenSet; }
82 inline void SetTransitEncryptionEnabled(bool value) {
83 m_transitEncryptionEnabledHasBeenSet = true;
84 m_transitEncryptionEnabled = value;
85 }
88 return *this;
89 }
91
93
97 inline bool GetAtRestEncryptionEnabled() const { return m_atRestEncryptionEnabled; }
98 inline bool AtRestEncryptionEnabledHasBeenSet() const { return m_atRestEncryptionEnabledHasBeenSet; }
99 inline void SetAtRestEncryptionEnabled(bool value) {
100 m_atRestEncryptionEnabledHasBeenSet = true;
101 m_atRestEncryptionEnabled = value;
102 }
105 return *this;
106 }
108
110
127 inline ApiCacheType GetType() const { return m_type; }
128 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
129 inline void SetType(ApiCacheType value) {
130 m_typeHasBeenSet = true;
131 m_type = value;
132 }
134 SetType(value);
135 return *this;
136 }
138
140
148 inline ApiCacheStatus GetStatus() const { return m_status; }
149 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
150 inline void SetStatus(ApiCacheStatus value) {
151 m_statusHasBeenSet = true;
152 m_status = value;
153 }
155 SetStatus(value);
156 return *this;
157 }
159
161
171 inline CacheHealthMetricsConfig GetHealthMetricsConfig() const { return m_healthMetricsConfig; }
172 inline bool HealthMetricsConfigHasBeenSet() const { return m_healthMetricsConfigHasBeenSet; }
174 m_healthMetricsConfigHasBeenSet = true;
175 m_healthMetricsConfig = value;
176 }
179 return *this;
180 }
182 private:
183 long long m_ttl{0};
184
186
187 bool m_transitEncryptionEnabled{false};
188
189 bool m_atRestEncryptionEnabled{false};
190
192
194
196 bool m_ttlHasBeenSet = false;
197 bool m_apiCachingBehaviorHasBeenSet = false;
198 bool m_transitEncryptionEnabledHasBeenSet = false;
199 bool m_atRestEncryptionEnabledHasBeenSet = false;
200 bool m_typeHasBeenSet = false;
201 bool m_statusHasBeenSet = false;
202 bool m_healthMetricsConfigHasBeenSet = false;
203};
204
205} // namespace Model
206} // namespace AppSync
207} // namespace Aws
CacheHealthMetricsConfig GetHealthMetricsConfig() const
Definition ApiCache.h:171
ApiCache & WithStatus(ApiCacheStatus value)
Definition ApiCache.h:154
bool GetTransitEncryptionEnabled() const
Definition ApiCache.h:80
void SetHealthMetricsConfig(CacheHealthMetricsConfig value)
Definition ApiCache.h:173
ApiCache & WithAtRestEncryptionEnabled(bool value)
Definition ApiCache.h:103
AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const
bool HealthMetricsConfigHasBeenSet() const
Definition ApiCache.h:172
ApiCacheType GetType() const
Definition ApiCache.h:127
ApiCache & WithTtl(long long value)
Definition ApiCache.h:48
ApiCache & WithHealthMetricsConfig(CacheHealthMetricsConfig value)
Definition ApiCache.h:177
void SetApiCachingBehavior(ApiCachingBehavior value)
Definition ApiCache.h:65
bool TransitEncryptionEnabledHasBeenSet() const
Definition ApiCache.h:81
void SetAtRestEncryptionEnabled(bool value)
Definition ApiCache.h:99
ApiCache & WithApiCachingBehavior(ApiCachingBehavior value)
Definition ApiCache.h:69
void SetTtl(long long value)
Definition ApiCache.h:44
AWS_APPSYNC_API ApiCache(Aws::Utils::Json::JsonView jsonValue)
void SetType(ApiCacheType value)
Definition ApiCache.h:129
AWS_APPSYNC_API ApiCache()=default
bool GetAtRestEncryptionEnabled() const
Definition ApiCache.h:97
bool AtRestEncryptionEnabledHasBeenSet() const
Definition ApiCache.h:98
ApiCache & WithTransitEncryptionEnabled(bool value)
Definition ApiCache.h:86
bool ApiCachingBehaviorHasBeenSet() const
Definition ApiCache.h:64
void SetTransitEncryptionEnabled(bool value)
Definition ApiCache.h:82
ApiCacheStatus GetStatus() const
Definition ApiCache.h:148
AWS_APPSYNC_API ApiCache & operator=(Aws::Utils::Json::JsonView jsonValue)
ApiCachingBehavior GetApiCachingBehavior() const
Definition ApiCache.h:63
void SetStatus(ApiCacheStatus value)
Definition ApiCache.h:150
ApiCache & WithType(ApiCacheType value)
Definition ApiCache.h:133
long long GetTtl() const
Definition ApiCache.h:42
Aws::Utils::Json::JsonValue JsonValue