AWS SDK for C++

AWS SDK for C++ Version 1.11.905

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/ConnectionType.h>
14#include <aws/elasticache/model/Endpoint.h>
15#include <aws/elasticache/model/NetworkType.h>
16#include <aws/elasticache/model/StorageEncryptionType.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Utils {
22namespace Xml {
23class XmlNode;
24} // namespace Xml
25} // namespace Utils
26namespace ElastiCache {
27namespace Model {
28
35 public:
36 AWS_ELASTICACHE_API ServerlessCache() = default;
37 AWS_ELASTICACHE_API ServerlessCache(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_ELASTICACHE_API ServerlessCache& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
44
47 inline const Aws::String& GetServerlessCacheName() const { return m_serverlessCacheName; }
48 inline bool ServerlessCacheNameHasBeenSet() const { return m_serverlessCacheNameHasBeenSet; }
49 template <typename ServerlessCacheNameT = Aws::String>
50 void SetServerlessCacheName(ServerlessCacheNameT&& value) {
51 m_serverlessCacheNameHasBeenSet = true;
52 m_serverlessCacheName = std::forward<ServerlessCacheNameT>(value);
53 }
54 template <typename ServerlessCacheNameT = Aws::String>
55 ServerlessCache& WithServerlessCacheName(ServerlessCacheNameT&& value) {
56 SetServerlessCacheName(std::forward<ServerlessCacheNameT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetDescription() const { return m_description; }
66 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
67 template <typename DescriptionT = Aws::String>
68 void SetDescription(DescriptionT&& value) {
69 m_descriptionHasBeenSet = true;
70 m_description = std::forward<DescriptionT>(value);
71 }
72 template <typename DescriptionT = Aws::String>
73 ServerlessCache& WithDescription(DescriptionT&& value) {
74 SetDescription(std::forward<DescriptionT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::Utils::DateTime& GetCreateTime() const { return m_createTime; }
84 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
85 template <typename CreateTimeT = Aws::Utils::DateTime>
86 void SetCreateTime(CreateTimeT&& value) {
87 m_createTimeHasBeenSet = true;
88 m_createTime = std::forward<CreateTimeT>(value);
89 }
90 template <typename CreateTimeT = Aws::Utils::DateTime>
91 ServerlessCache& WithCreateTime(CreateTimeT&& value) {
92 SetCreateTime(std::forward<CreateTimeT>(value));
93 return *this;
94 }
96
98
102 inline const Aws::String& GetStatus() const { return m_status; }
103 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
104 template <typename StatusT = Aws::String>
105 void SetStatus(StatusT&& value) {
106 m_statusHasBeenSet = true;
107 m_status = std::forward<StatusT>(value);
108 }
109 template <typename StatusT = Aws::String>
110 ServerlessCache& WithStatus(StatusT&& value) {
111 SetStatus(std::forward<StatusT>(value));
112 return *this;
113 }
115
117
120 inline const Aws::String& GetEngine() const { return m_engine; }
121 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
122 template <typename EngineT = Aws::String>
123 void SetEngine(EngineT&& value) {
124 m_engineHasBeenSet = true;
125 m_engine = std::forward<EngineT>(value);
126 }
127 template <typename EngineT = Aws::String>
128 ServerlessCache& WithEngine(EngineT&& value) {
129 SetEngine(std::forward<EngineT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::String& GetMajorEngineVersion() const { return m_majorEngineVersion; }
139 inline bool MajorEngineVersionHasBeenSet() const { return m_majorEngineVersionHasBeenSet; }
140 template <typename MajorEngineVersionT = Aws::String>
141 void SetMajorEngineVersion(MajorEngineVersionT&& value) {
142 m_majorEngineVersionHasBeenSet = true;
143 m_majorEngineVersion = std::forward<MajorEngineVersionT>(value);
144 }
145 template <typename MajorEngineVersionT = Aws::String>
146 ServerlessCache& WithMajorEngineVersion(MajorEngineVersionT&& value) {
147 SetMajorEngineVersion(std::forward<MajorEngineVersionT>(value));
148 return *this;
149 }
151
153
157 inline const Aws::String& GetFullEngineVersion() const { return m_fullEngineVersion; }
158 inline bool FullEngineVersionHasBeenSet() const { return m_fullEngineVersionHasBeenSet; }
159 template <typename FullEngineVersionT = Aws::String>
160 void SetFullEngineVersion(FullEngineVersionT&& value) {
161 m_fullEngineVersionHasBeenSet = true;
162 m_fullEngineVersion = std::forward<FullEngineVersionT>(value);
163 }
164 template <typename FullEngineVersionT = Aws::String>
165 ServerlessCache& WithFullEngineVersion(FullEngineVersionT&& value) {
166 SetFullEngineVersion(std::forward<FullEngineVersionT>(value));
167 return *this;
168 }
170
172
175 inline const CacheUsageLimits& GetCacheUsageLimits() const { return m_cacheUsageLimits; }
176 inline bool CacheUsageLimitsHasBeenSet() const { return m_cacheUsageLimitsHasBeenSet; }
177 template <typename CacheUsageLimitsT = CacheUsageLimits>
178 void SetCacheUsageLimits(CacheUsageLimitsT&& value) {
179 m_cacheUsageLimitsHasBeenSet = true;
180 m_cacheUsageLimits = std::forward<CacheUsageLimitsT>(value);
181 }
182 template <typename CacheUsageLimitsT = CacheUsageLimits>
183 ServerlessCache& WithCacheUsageLimits(CacheUsageLimitsT&& value) {
184 SetCacheUsageLimits(std::forward<CacheUsageLimitsT>(value));
185 return *this;
186 }
188
190
194 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
195 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
196 template <typename KmsKeyIdT = Aws::String>
197 void SetKmsKeyId(KmsKeyIdT&& value) {
198 m_kmsKeyIdHasBeenSet = true;
199 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
200 }
201 template <typename KmsKeyIdT = Aws::String>
202 ServerlessCache& WithKmsKeyId(KmsKeyIdT&& value) {
203 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
204 return *this;
205 }
207
209
215 inline StorageEncryptionType GetStorageEncryptionType() const { return m_storageEncryptionType; }
216 inline bool StorageEncryptionTypeHasBeenSet() const { return m_storageEncryptionTypeHasBeenSet; }
218 m_storageEncryptionTypeHasBeenSet = true;
219 m_storageEncryptionType = value;
220 }
223 return *this;
224 }
226
228
231 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
232 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
233 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
234 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
235 m_securityGroupIdsHasBeenSet = true;
236 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
237 }
238 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
239 ServerlessCache& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
240 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
241 return *this;
242 }
243 template <typename SecurityGroupIdsT = Aws::String>
244 ServerlessCache& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
245 m_securityGroupIdsHasBeenSet = true;
246 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
247 return *this;
248 }
250
252
253 inline const Endpoint& GetEndpoint() const { return m_endpoint; }
254 inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
255 template <typename EndpointT = Endpoint>
256 void SetEndpoint(EndpointT&& value) {
257 m_endpointHasBeenSet = true;
258 m_endpoint = std::forward<EndpointT>(value);
259 }
260 template <typename EndpointT = Endpoint>
261 ServerlessCache& WithEndpoint(EndpointT&& value) {
262 SetEndpoint(std::forward<EndpointT>(value));
263 return *this;
264 }
266
268
269 inline const Endpoint& GetReaderEndpoint() const { return m_readerEndpoint; }
270 inline bool ReaderEndpointHasBeenSet() const { return m_readerEndpointHasBeenSet; }
271 template <typename ReaderEndpointT = Endpoint>
272 void SetReaderEndpoint(ReaderEndpointT&& value) {
273 m_readerEndpointHasBeenSet = true;
274 m_readerEndpoint = std::forward<ReaderEndpointT>(value);
275 }
276 template <typename ReaderEndpointT = Endpoint>
277 ServerlessCache& WithReaderEndpoint(ReaderEndpointT&& value) {
278 SetReaderEndpoint(std::forward<ReaderEndpointT>(value));
279 return *this;
280 }
282
284
287 inline const Aws::String& GetARN() const { return m_aRN; }
288 inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
289 template <typename ARNT = Aws::String>
290 void SetARN(ARNT&& value) {
291 m_aRNHasBeenSet = true;
292 m_aRN = std::forward<ARNT>(value);
293 }
294 template <typename ARNT = Aws::String>
295 ServerlessCache& WithARN(ARNT&& value) {
296 SetARN(std::forward<ARNT>(value));
297 return *this;
298 }
300
302
306 inline const Aws::String& GetUserGroupId() const { return m_userGroupId; }
307 inline bool UserGroupIdHasBeenSet() const { return m_userGroupIdHasBeenSet; }
308 template <typename UserGroupIdT = Aws::String>
309 void SetUserGroupId(UserGroupIdT&& value) {
310 m_userGroupIdHasBeenSet = true;
311 m_userGroupId = std::forward<UserGroupIdT>(value);
312 }
313 template <typename UserGroupIdT = Aws::String>
314 ServerlessCache& WithUserGroupId(UserGroupIdT&& value) {
315 SetUserGroupId(std::forward<UserGroupIdT>(value));
316 return *this;
317 }
319
321
327 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
328 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
329 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
330 void SetSubnetIds(SubnetIdsT&& value) {
331 m_subnetIdsHasBeenSet = true;
332 m_subnetIds = std::forward<SubnetIdsT>(value);
333 }
334 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
335 ServerlessCache& WithSubnetIds(SubnetIdsT&& value) {
336 SetSubnetIds(std::forward<SubnetIdsT>(value));
337 return *this;
338 }
339 template <typename SubnetIdsT = Aws::String>
340 ServerlessCache& AddSubnetIds(SubnetIdsT&& value) {
341 m_subnetIdsHasBeenSet = true;
342 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
343 return *this;
344 }
346
348
353 inline int GetSnapshotRetentionLimit() const { return m_snapshotRetentionLimit; }
354 inline bool SnapshotRetentionLimitHasBeenSet() const { return m_snapshotRetentionLimitHasBeenSet; }
355 inline void SetSnapshotRetentionLimit(int value) {
356 m_snapshotRetentionLimitHasBeenSet = true;
357 m_snapshotRetentionLimit = value;
358 }
361 return *this;
362 }
364
366
371 inline const Aws::String& GetDailySnapshotTime() const { return m_dailySnapshotTime; }
372 inline bool DailySnapshotTimeHasBeenSet() const { return m_dailySnapshotTimeHasBeenSet; }
373 template <typename DailySnapshotTimeT = Aws::String>
374 void SetDailySnapshotTime(DailySnapshotTimeT&& value) {
375 m_dailySnapshotTimeHasBeenSet = true;
376 m_dailySnapshotTime = std::forward<DailySnapshotTimeT>(value);
377 }
378 template <typename DailySnapshotTimeT = Aws::String>
379 ServerlessCache& WithDailySnapshotTime(DailySnapshotTimeT&& value) {
380 SetDailySnapshotTime(std::forward<DailySnapshotTimeT>(value));
381 return *this;
382 }
384
386
393 inline NetworkType GetNetworkType() const { return m_networkType; }
394 inline bool NetworkTypeHasBeenSet() const { return m_networkTypeHasBeenSet; }
395 inline void SetNetworkType(NetworkType value) {
396 m_networkTypeHasBeenSet = true;
397 m_networkType = value;
398 }
400 SetNetworkType(value);
401 return *this;
402 }
404
406
410 inline ConnectionType GetConnectionType() const { return m_connectionType; }
411 inline bool ConnectionTypeHasBeenSet() const { return m_connectionTypeHasBeenSet; }
413 m_connectionTypeHasBeenSet = true;
414 m_connectionType = value;
415 }
417 SetConnectionType(value);
418 return *this;
419 }
421 private:
422 Aws::String m_serverlessCacheName;
423
424 Aws::String m_description;
425
426 Aws::Utils::DateTime m_createTime{};
427
428 Aws::String m_status;
429
430 Aws::String m_engine;
431
432 Aws::String m_majorEngineVersion;
433
434 Aws::String m_fullEngineVersion;
435
436 CacheUsageLimits m_cacheUsageLimits;
437
438 Aws::String m_kmsKeyId;
439
441
442 Aws::Vector<Aws::String> m_securityGroupIds;
443
444 Endpoint m_endpoint;
445
446 Endpoint m_readerEndpoint;
447
448 Aws::String m_aRN;
449
450 Aws::String m_userGroupId;
451
452 Aws::Vector<Aws::String> m_subnetIds;
453
454 int m_snapshotRetentionLimit{0};
455
456 Aws::String m_dailySnapshotTime;
457
458 NetworkType m_networkType{NetworkType::NOT_SET};
459
460 ConnectionType m_connectionType{ConnectionType::NOT_SET};
461 bool m_serverlessCacheNameHasBeenSet = false;
462 bool m_descriptionHasBeenSet = false;
463 bool m_createTimeHasBeenSet = false;
464 bool m_statusHasBeenSet = false;
465 bool m_engineHasBeenSet = false;
466 bool m_majorEngineVersionHasBeenSet = false;
467 bool m_fullEngineVersionHasBeenSet = false;
468 bool m_cacheUsageLimitsHasBeenSet = false;
469 bool m_kmsKeyIdHasBeenSet = false;
470 bool m_storageEncryptionTypeHasBeenSet = false;
471 bool m_securityGroupIdsHasBeenSet = false;
472 bool m_endpointHasBeenSet = false;
473 bool m_readerEndpointHasBeenSet = false;
474 bool m_aRNHasBeenSet = false;
475 bool m_userGroupIdHasBeenSet = false;
476 bool m_subnetIdsHasBeenSet = false;
477 bool m_snapshotRetentionLimitHasBeenSet = false;
478 bool m_dailySnapshotTimeHasBeenSet = false;
479 bool m_networkTypeHasBeenSet = false;
480 bool m_connectionTypeHasBeenSet = false;
481};
482
483} // namespace Model
484} // namespace ElastiCache
485} // namespace Aws
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
void SetCacheUsageLimits(CacheUsageLimitsT &&value)
ServerlessCache & WithConnectionType(ConnectionType 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
void SetConnectionType(ConnectionType value)
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)
void SetStorageEncryptionType(StorageEncryptionType value)
ServerlessCache & WithNetworkType(NetworkType value)
ServerlessCache & WithMajorEngineVersion(MajorEngineVersionT &&value)
ServerlessCache & AddSecurityGroupIds(SecurityGroupIdsT &&value)
const Aws::String & GetDailySnapshotTime() const
void SetFullEngineVersion(FullEngineVersionT &&value)
ServerlessCache & WithStorageEncryptionType(StorageEncryptionType 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
StorageEncryptionType GetStorageEncryptionType() 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