AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ServerlessCache.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/elasticache/ElastiCache_EXPORTS.h>
12#include <aws/elasticache/model/CacheUsageLimits.h>
13#include <aws/elasticache/model/Endpoint.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Xml {
20class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace ElastiCache {
24namespace Model {
25
32 public:
33 AWS_ELASTICACHE_API ServerlessCache() = default;
34 AWS_ELASTICACHE_API ServerlessCache(const Aws::Utils::Xml::XmlNode& xmlNode);
35 AWS_ELASTICACHE_API ServerlessCache& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
36
37 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
38 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
39
41
44 inline const Aws::String& GetServerlessCacheName() const { return m_serverlessCacheName; }
45 inline bool ServerlessCacheNameHasBeenSet() const { return m_serverlessCacheNameHasBeenSet; }
46 template <typename ServerlessCacheNameT = Aws::String>
47 void SetServerlessCacheName(ServerlessCacheNameT&& value) {
48 m_serverlessCacheNameHasBeenSet = true;
49 m_serverlessCacheName = std::forward<ServerlessCacheNameT>(value);
50 }
51 template <typename ServerlessCacheNameT = Aws::String>
52 ServerlessCache& WithServerlessCacheName(ServerlessCacheNameT&& value) {
53 SetServerlessCacheName(std::forward<ServerlessCacheNameT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetDescription() const { return m_description; }
63 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
64 template <typename DescriptionT = Aws::String>
65 void SetDescription(DescriptionT&& value) {
66 m_descriptionHasBeenSet = true;
67 m_description = std::forward<DescriptionT>(value);
68 }
69 template <typename DescriptionT = Aws::String>
70 ServerlessCache& WithDescription(DescriptionT&& value) {
71 SetDescription(std::forward<DescriptionT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::Utils::DateTime& GetCreateTime() const { return m_createTime; }
81 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
82 template <typename CreateTimeT = Aws::Utils::DateTime>
83 void SetCreateTime(CreateTimeT&& value) {
84 m_createTimeHasBeenSet = true;
85 m_createTime = std::forward<CreateTimeT>(value);
86 }
87 template <typename CreateTimeT = Aws::Utils::DateTime>
88 ServerlessCache& WithCreateTime(CreateTimeT&& value) {
89 SetCreateTime(std::forward<CreateTimeT>(value));
90 return *this;
91 }
93
95
99 inline const Aws::String& GetStatus() const { return m_status; }
100 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
101 template <typename StatusT = Aws::String>
102 void SetStatus(StatusT&& value) {
103 m_statusHasBeenSet = true;
104 m_status = std::forward<StatusT>(value);
105 }
106 template <typename StatusT = Aws::String>
107 ServerlessCache& WithStatus(StatusT&& value) {
108 SetStatus(std::forward<StatusT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::String& GetEngine() const { return m_engine; }
118 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
119 template <typename EngineT = Aws::String>
120 void SetEngine(EngineT&& value) {
121 m_engineHasBeenSet = true;
122 m_engine = std::forward<EngineT>(value);
123 }
124 template <typename EngineT = Aws::String>
125 ServerlessCache& WithEngine(EngineT&& value) {
126 SetEngine(std::forward<EngineT>(value));
127 return *this;
128 }
130
132
135 inline const Aws::String& GetMajorEngineVersion() const { return m_majorEngineVersion; }
136 inline bool MajorEngineVersionHasBeenSet() const { return m_majorEngineVersionHasBeenSet; }
137 template <typename MajorEngineVersionT = Aws::String>
138 void SetMajorEngineVersion(MajorEngineVersionT&& value) {
139 m_majorEngineVersionHasBeenSet = true;
140 m_majorEngineVersion = std::forward<MajorEngineVersionT>(value);
141 }
142 template <typename MajorEngineVersionT = Aws::String>
143 ServerlessCache& WithMajorEngineVersion(MajorEngineVersionT&& value) {
144 SetMajorEngineVersion(std::forward<MajorEngineVersionT>(value));
145 return *this;
146 }
148
150
154 inline const Aws::String& GetFullEngineVersion() const { return m_fullEngineVersion; }
155 inline bool FullEngineVersionHasBeenSet() const { return m_fullEngineVersionHasBeenSet; }
156 template <typename FullEngineVersionT = Aws::String>
157 void SetFullEngineVersion(FullEngineVersionT&& value) {
158 m_fullEngineVersionHasBeenSet = true;
159 m_fullEngineVersion = std::forward<FullEngineVersionT>(value);
160 }
161 template <typename FullEngineVersionT = Aws::String>
162 ServerlessCache& WithFullEngineVersion(FullEngineVersionT&& value) {
163 SetFullEngineVersion(std::forward<FullEngineVersionT>(value));
164 return *this;
165 }
167
169
172 inline const CacheUsageLimits& GetCacheUsageLimits() const { return m_cacheUsageLimits; }
173 inline bool CacheUsageLimitsHasBeenSet() const { return m_cacheUsageLimitsHasBeenSet; }
174 template <typename CacheUsageLimitsT = CacheUsageLimits>
175 void SetCacheUsageLimits(CacheUsageLimitsT&& value) {
176 m_cacheUsageLimitsHasBeenSet = true;
177 m_cacheUsageLimits = std::forward<CacheUsageLimitsT>(value);
178 }
179 template <typename CacheUsageLimitsT = CacheUsageLimits>
180 ServerlessCache& WithCacheUsageLimits(CacheUsageLimitsT&& value) {
181 SetCacheUsageLimits(std::forward<CacheUsageLimitsT>(value));
182 return *this;
183 }
185
187
191 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
192 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
193 template <typename KmsKeyIdT = Aws::String>
194 void SetKmsKeyId(KmsKeyIdT&& value) {
195 m_kmsKeyIdHasBeenSet = true;
196 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
197 }
198 template <typename KmsKeyIdT = Aws::String>
199 ServerlessCache& WithKmsKeyId(KmsKeyIdT&& value) {
200 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
201 return *this;
202 }
204
206
209 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
210 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
211 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
212 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
213 m_securityGroupIdsHasBeenSet = true;
214 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
215 }
216 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
217 ServerlessCache& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
218 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
219 return *this;
220 }
221 template <typename SecurityGroupIdsT = Aws::String>
222 ServerlessCache& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
223 m_securityGroupIdsHasBeenSet = true;
224 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
225 return *this;
226 }
228
230
231 inline const Endpoint& GetEndpoint() const { return m_endpoint; }
232 inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
233 template <typename EndpointT = Endpoint>
234 void SetEndpoint(EndpointT&& value) {
235 m_endpointHasBeenSet = true;
236 m_endpoint = std::forward<EndpointT>(value);
237 }
238 template <typename EndpointT = Endpoint>
239 ServerlessCache& WithEndpoint(EndpointT&& value) {
240 SetEndpoint(std::forward<EndpointT>(value));
241 return *this;
242 }
244
246
247 inline const Endpoint& GetReaderEndpoint() const { return m_readerEndpoint; }
248 inline bool ReaderEndpointHasBeenSet() const { return m_readerEndpointHasBeenSet; }
249 template <typename ReaderEndpointT = Endpoint>
250 void SetReaderEndpoint(ReaderEndpointT&& value) {
251 m_readerEndpointHasBeenSet = true;
252 m_readerEndpoint = std::forward<ReaderEndpointT>(value);
253 }
254 template <typename ReaderEndpointT = Endpoint>
255 ServerlessCache& WithReaderEndpoint(ReaderEndpointT&& value) {
256 SetReaderEndpoint(std::forward<ReaderEndpointT>(value));
257 return *this;
258 }
260
262
265 inline const Aws::String& GetARN() const { return m_aRN; }
266 inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
267 template <typename ARNT = Aws::String>
268 void SetARN(ARNT&& value) {
269 m_aRNHasBeenSet = true;
270 m_aRN = std::forward<ARNT>(value);
271 }
272 template <typename ARNT = Aws::String>
273 ServerlessCache& WithARN(ARNT&& value) {
274 SetARN(std::forward<ARNT>(value));
275 return *this;
276 }
278
280
284 inline const Aws::String& GetUserGroupId() const { return m_userGroupId; }
285 inline bool UserGroupIdHasBeenSet() const { return m_userGroupIdHasBeenSet; }
286 template <typename UserGroupIdT = Aws::String>
287 void SetUserGroupId(UserGroupIdT&& value) {
288 m_userGroupIdHasBeenSet = true;
289 m_userGroupId = std::forward<UserGroupIdT>(value);
290 }
291 template <typename UserGroupIdT = Aws::String>
292 ServerlessCache& WithUserGroupId(UserGroupIdT&& value) {
293 SetUserGroupId(std::forward<UserGroupIdT>(value));
294 return *this;
295 }
297
299
305 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
306 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
307 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
308 void SetSubnetIds(SubnetIdsT&& value) {
309 m_subnetIdsHasBeenSet = true;
310 m_subnetIds = std::forward<SubnetIdsT>(value);
311 }
312 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
313 ServerlessCache& WithSubnetIds(SubnetIdsT&& value) {
314 SetSubnetIds(std::forward<SubnetIdsT>(value));
315 return *this;
316 }
317 template <typename SubnetIdsT = Aws::String>
318 ServerlessCache& AddSubnetIds(SubnetIdsT&& value) {
319 m_subnetIdsHasBeenSet = true;
320 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
321 return *this;
322 }
324
326
330 inline int GetSnapshotRetentionLimit() const { return m_snapshotRetentionLimit; }
331 inline bool SnapshotRetentionLimitHasBeenSet() const { return m_snapshotRetentionLimitHasBeenSet; }
332 inline void SetSnapshotRetentionLimit(int value) {
333 m_snapshotRetentionLimitHasBeenSet = true;
334 m_snapshotRetentionLimit = value;
335 }
338 return *this;
339 }
341
343
348 inline const Aws::String& GetDailySnapshotTime() const { return m_dailySnapshotTime; }
349 inline bool DailySnapshotTimeHasBeenSet() const { return m_dailySnapshotTimeHasBeenSet; }
350 template <typename DailySnapshotTimeT = Aws::String>
351 void SetDailySnapshotTime(DailySnapshotTimeT&& value) {
352 m_dailySnapshotTimeHasBeenSet = true;
353 m_dailySnapshotTime = std::forward<DailySnapshotTimeT>(value);
354 }
355 template <typename DailySnapshotTimeT = Aws::String>
356 ServerlessCache& WithDailySnapshotTime(DailySnapshotTimeT&& value) {
357 SetDailySnapshotTime(std::forward<DailySnapshotTimeT>(value));
358 return *this;
359 }
361 private:
362 Aws::String m_serverlessCacheName;
363
364 Aws::String m_description;
365
366 Aws::Utils::DateTime m_createTime{};
367
368 Aws::String m_status;
369
370 Aws::String m_engine;
371
372 Aws::String m_majorEngineVersion;
373
374 Aws::String m_fullEngineVersion;
375
376 CacheUsageLimits m_cacheUsageLimits;
377
378 Aws::String m_kmsKeyId;
379
380 Aws::Vector<Aws::String> m_securityGroupIds;
381
382 Endpoint m_endpoint;
383
384 Endpoint m_readerEndpoint;
385
386 Aws::String m_aRN;
387
388 Aws::String m_userGroupId;
389
390 Aws::Vector<Aws::String> m_subnetIds;
391
392 int m_snapshotRetentionLimit{0};
393
394 Aws::String m_dailySnapshotTime;
395 bool m_serverlessCacheNameHasBeenSet = false;
396 bool m_descriptionHasBeenSet = false;
397 bool m_createTimeHasBeenSet = false;
398 bool m_statusHasBeenSet = false;
399 bool m_engineHasBeenSet = false;
400 bool m_majorEngineVersionHasBeenSet = false;
401 bool m_fullEngineVersionHasBeenSet = false;
402 bool m_cacheUsageLimitsHasBeenSet = false;
403 bool m_kmsKeyIdHasBeenSet = false;
404 bool m_securityGroupIdsHasBeenSet = false;
405 bool m_endpointHasBeenSet = false;
406 bool m_readerEndpointHasBeenSet = false;
407 bool m_aRNHasBeenSet = false;
408 bool m_userGroupIdHasBeenSet = false;
409 bool m_subnetIdsHasBeenSet = false;
410 bool m_snapshotRetentionLimitHasBeenSet = false;
411 bool m_dailySnapshotTimeHasBeenSet = false;
412};
413
414} // namespace Model
415} // namespace ElastiCache
416} // namespace Aws
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
void SetCacheUsageLimits(CacheUsageLimitsT &&value)
ServerlessCache & WithServerlessCacheName(ServerlessCacheNameT &&value)
AWS_ELASTICACHE_API ServerlessCache()=default
ServerlessCache & WithEndpoint(EndpointT &&value)
const Aws::String & GetDescription() const
ServerlessCache & WithARN(ARNT &&value)
ServerlessCache & WithCreateTime(CreateTimeT &&value)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
void SetDailySnapshotTime(DailySnapshotTimeT &&value)
AWS_ELASTICACHE_API ServerlessCache(const Aws::Utils::Xml::XmlNode &xmlNode)
ServerlessCache & WithReaderEndpoint(ReaderEndpointT &&value)
void SetMajorEngineVersion(MajorEngineVersionT &&value)
ServerlessCache & WithDailySnapshotTime(DailySnapshotTimeT &&value)
ServerlessCache & WithStatus(StatusT &&value)
const Aws::Utils::DateTime & GetCreateTime() const
const Aws::String & GetEngine() const
void SetCreateTime(CreateTimeT &&value)
void SetUserGroupId(UserGroupIdT &&value)
ServerlessCache & AddSubnetIds(SubnetIdsT &&value)
ServerlessCache & WithKmsKeyId(KmsKeyIdT &&value)
const Aws::Vector< Aws::String > & GetSubnetIds() const
const CacheUsageLimits & GetCacheUsageLimits() const
ServerlessCache & WithEngine(EngineT &&value)
ServerlessCache & WithDescription(DescriptionT &&value)
ServerlessCache & WithSnapshotRetentionLimit(int value)
AWS_ELASTICACHE_API ServerlessCache & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetServerlessCacheName() const
ServerlessCache & WithCacheUsageLimits(CacheUsageLimitsT &&value)
ServerlessCache & WithUserGroupId(UserGroupIdT &&value)
ServerlessCache & WithFullEngineVersion(FullEngineVersionT &&value)
ServerlessCache & WithMajorEngineVersion(MajorEngineVersionT &&value)
ServerlessCache & AddSecurityGroupIds(SecurityGroupIdsT &&value)
const Aws::String & GetDailySnapshotTime() const
void SetFullEngineVersion(FullEngineVersionT &&value)
const Aws::String & GetFullEngineVersion() const
void SetDescription(DescriptionT &&value)
const Aws::String & GetKmsKeyId() const
void SetServerlessCacheName(ServerlessCacheNameT &&value)
const Aws::String & GetUserGroupId() const
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetMajorEngineVersion() const
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetReaderEndpoint(ReaderEndpointT &&value)
ServerlessCache & WithSubnetIds(SubnetIdsT &&value)
const Aws::String & GetStatus() const
ServerlessCache & WithSecurityGroupIds(SecurityGroupIdsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream