AWS SDK for C++

AWS SDK for C++ Version 1.11.926

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/MigrationSummary.h>
16#include <aws/elasticache/model/NetworkType.h>
17#include <aws/elasticache/model/StorageEncryptionType.h>
18
19#include <utility>
20
21namespace Aws {
22namespace Utils {
23namespace Xml {
24class XmlNode;
25} // namespace Xml
26} // namespace Utils
27namespace ElastiCache {
28namespace Model {
29
36 public:
37 AWS_ELASTICACHE_API ServerlessCache() = default;
38 AWS_ELASTICACHE_API ServerlessCache(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_ELASTICACHE_API ServerlessCache& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
45
48 inline const Aws::String& GetServerlessCacheName() const { return m_serverlessCacheName; }
49 inline bool ServerlessCacheNameHasBeenSet() const { return m_serverlessCacheNameHasBeenSet; }
50 template <typename ServerlessCacheNameT = Aws::String>
51 void SetServerlessCacheName(ServerlessCacheNameT&& value) {
52 m_serverlessCacheNameHasBeenSet = true;
53 m_serverlessCacheName = std::forward<ServerlessCacheNameT>(value);
54 }
55 template <typename ServerlessCacheNameT = Aws::String>
56 ServerlessCache& WithServerlessCacheName(ServerlessCacheNameT&& value) {
57 SetServerlessCacheName(std::forward<ServerlessCacheNameT>(value));
58 return *this;
59 }
61
63
66 inline const Aws::String& GetDescription() const { return m_description; }
67 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
68 template <typename DescriptionT = Aws::String>
69 void SetDescription(DescriptionT&& value) {
70 m_descriptionHasBeenSet = true;
71 m_description = std::forward<DescriptionT>(value);
72 }
73 template <typename DescriptionT = Aws::String>
74 ServerlessCache& WithDescription(DescriptionT&& value) {
75 SetDescription(std::forward<DescriptionT>(value));
76 return *this;
77 }
79
81
84 inline const Aws::Utils::DateTime& GetCreateTime() const { return m_createTime; }
85 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
86 template <typename CreateTimeT = Aws::Utils::DateTime>
87 void SetCreateTime(CreateTimeT&& value) {
88 m_createTimeHasBeenSet = true;
89 m_createTime = std::forward<CreateTimeT>(value);
90 }
91 template <typename CreateTimeT = Aws::Utils::DateTime>
92 ServerlessCache& WithCreateTime(CreateTimeT&& value) {
93 SetCreateTime(std::forward<CreateTimeT>(value));
94 return *this;
95 }
97
99
103 inline const Aws::String& GetStatus() const { return m_status; }
104 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
105 template <typename StatusT = Aws::String>
106 void SetStatus(StatusT&& value) {
107 m_statusHasBeenSet = true;
108 m_status = std::forward<StatusT>(value);
109 }
110 template <typename StatusT = Aws::String>
111 ServerlessCache& WithStatus(StatusT&& value) {
112 SetStatus(std::forward<StatusT>(value));
113 return *this;
114 }
116
118
121 inline const Aws::String& GetEngine() const { return m_engine; }
122 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
123 template <typename EngineT = Aws::String>
124 void SetEngine(EngineT&& value) {
125 m_engineHasBeenSet = true;
126 m_engine = std::forward<EngineT>(value);
127 }
128 template <typename EngineT = Aws::String>
129 ServerlessCache& WithEngine(EngineT&& value) {
130 SetEngine(std::forward<EngineT>(value));
131 return *this;
132 }
134
136
139 inline const Aws::String& GetMajorEngineVersion() const { return m_majorEngineVersion; }
140 inline bool MajorEngineVersionHasBeenSet() const { return m_majorEngineVersionHasBeenSet; }
141 template <typename MajorEngineVersionT = Aws::String>
142 void SetMajorEngineVersion(MajorEngineVersionT&& value) {
143 m_majorEngineVersionHasBeenSet = true;
144 m_majorEngineVersion = std::forward<MajorEngineVersionT>(value);
145 }
146 template <typename MajorEngineVersionT = Aws::String>
147 ServerlessCache& WithMajorEngineVersion(MajorEngineVersionT&& value) {
148 SetMajorEngineVersion(std::forward<MajorEngineVersionT>(value));
149 return *this;
150 }
152
154
158 inline const Aws::String& GetFullEngineVersion() const { return m_fullEngineVersion; }
159 inline bool FullEngineVersionHasBeenSet() const { return m_fullEngineVersionHasBeenSet; }
160 template <typename FullEngineVersionT = Aws::String>
161 void SetFullEngineVersion(FullEngineVersionT&& value) {
162 m_fullEngineVersionHasBeenSet = true;
163 m_fullEngineVersion = std::forward<FullEngineVersionT>(value);
164 }
165 template <typename FullEngineVersionT = Aws::String>
166 ServerlessCache& WithFullEngineVersion(FullEngineVersionT&& value) {
167 SetFullEngineVersion(std::forward<FullEngineVersionT>(value));
168 return *this;
169 }
171
173
176 inline const CacheUsageLimits& GetCacheUsageLimits() const { return m_cacheUsageLimits; }
177 inline bool CacheUsageLimitsHasBeenSet() const { return m_cacheUsageLimitsHasBeenSet; }
178 template <typename CacheUsageLimitsT = CacheUsageLimits>
179 void SetCacheUsageLimits(CacheUsageLimitsT&& value) {
180 m_cacheUsageLimitsHasBeenSet = true;
181 m_cacheUsageLimits = std::forward<CacheUsageLimitsT>(value);
182 }
183 template <typename CacheUsageLimitsT = CacheUsageLimits>
184 ServerlessCache& WithCacheUsageLimits(CacheUsageLimitsT&& value) {
185 SetCacheUsageLimits(std::forward<CacheUsageLimitsT>(value));
186 return *this;
187 }
189
191
195 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
196 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
197 template <typename KmsKeyIdT = Aws::String>
198 void SetKmsKeyId(KmsKeyIdT&& value) {
199 m_kmsKeyIdHasBeenSet = true;
200 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
201 }
202 template <typename KmsKeyIdT = Aws::String>
203 ServerlessCache& WithKmsKeyId(KmsKeyIdT&& value) {
204 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
205 return *this;
206 }
208
210
216 inline StorageEncryptionType GetStorageEncryptionType() const { return m_storageEncryptionType; }
217 inline bool StorageEncryptionTypeHasBeenSet() const { return m_storageEncryptionTypeHasBeenSet; }
219 m_storageEncryptionTypeHasBeenSet = true;
220 m_storageEncryptionType = value;
221 }
227
229
232 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
233 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
234 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
235 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
236 m_securityGroupIdsHasBeenSet = true;
237 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
238 }
239 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
240 ServerlessCache& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
241 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
242 return *this;
243 }
244 template <typename SecurityGroupIdsT = Aws::String>
245 ServerlessCache& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
246 m_securityGroupIdsHasBeenSet = true;
247 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
248 return *this;
249 }
251
253
254 inline const Endpoint& GetEndpoint() const { return m_endpoint; }
255 inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
256 template <typename EndpointT = Endpoint>
257 void SetEndpoint(EndpointT&& value) {
258 m_endpointHasBeenSet = true;
259 m_endpoint = std::forward<EndpointT>(value);
260 }
261 template <typename EndpointT = Endpoint>
262 ServerlessCache& WithEndpoint(EndpointT&& value) {
263 SetEndpoint(std::forward<EndpointT>(value));
264 return *this;
265 }
267
269
270 inline const Endpoint& GetReaderEndpoint() const { return m_readerEndpoint; }
271 inline bool ReaderEndpointHasBeenSet() const { return m_readerEndpointHasBeenSet; }
272 template <typename ReaderEndpointT = Endpoint>
273 void SetReaderEndpoint(ReaderEndpointT&& value) {
274 m_readerEndpointHasBeenSet = true;
275 m_readerEndpoint = std::forward<ReaderEndpointT>(value);
276 }
277 template <typename ReaderEndpointT = Endpoint>
278 ServerlessCache& WithReaderEndpoint(ReaderEndpointT&& value) {
279 SetReaderEndpoint(std::forward<ReaderEndpointT>(value));
280 return *this;
281 }
283
285
288 inline const Aws::String& GetARN() const { return m_aRN; }
289 inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
290 template <typename ARNT = Aws::String>
291 void SetARN(ARNT&& value) {
292 m_aRNHasBeenSet = true;
293 m_aRN = std::forward<ARNT>(value);
294 }
295 template <typename ARNT = Aws::String>
296 ServerlessCache& WithARN(ARNT&& value) {
297 SetARN(std::forward<ARNT>(value));
298 return *this;
299 }
301
303
307 inline const Aws::String& GetUserGroupId() const { return m_userGroupId; }
308 inline bool UserGroupIdHasBeenSet() const { return m_userGroupIdHasBeenSet; }
309 template <typename UserGroupIdT = Aws::String>
310 void SetUserGroupId(UserGroupIdT&& value) {
311 m_userGroupIdHasBeenSet = true;
312 m_userGroupId = std::forward<UserGroupIdT>(value);
313 }
314 template <typename UserGroupIdT = Aws::String>
315 ServerlessCache& WithUserGroupId(UserGroupIdT&& value) {
316 SetUserGroupId(std::forward<UserGroupIdT>(value));
317 return *this;
318 }
320
322
328 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
329 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
330 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
331 void SetSubnetIds(SubnetIdsT&& value) {
332 m_subnetIdsHasBeenSet = true;
333 m_subnetIds = std::forward<SubnetIdsT>(value);
334 }
335 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
336 ServerlessCache& WithSubnetIds(SubnetIdsT&& value) {
337 SetSubnetIds(std::forward<SubnetIdsT>(value));
338 return *this;
339 }
340 template <typename SubnetIdsT = Aws::String>
341 ServerlessCache& AddSubnetIds(SubnetIdsT&& value) {
342 m_subnetIdsHasBeenSet = true;
343 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
344 return *this;
345 }
347
349
354 inline int GetSnapshotRetentionLimit() const { return m_snapshotRetentionLimit; }
355 inline bool SnapshotRetentionLimitHasBeenSet() const { return m_snapshotRetentionLimitHasBeenSet; }
356 inline void SetSnapshotRetentionLimit(int value) {
357 m_snapshotRetentionLimitHasBeenSet = true;
358 m_snapshotRetentionLimit = value;
359 }
362 return *this;
363 }
365
367
372 inline const Aws::String& GetDailySnapshotTime() const { return m_dailySnapshotTime; }
373 inline bool DailySnapshotTimeHasBeenSet() const { return m_dailySnapshotTimeHasBeenSet; }
374 template <typename DailySnapshotTimeT = Aws::String>
375 void SetDailySnapshotTime(DailySnapshotTimeT&& value) {
376 m_dailySnapshotTimeHasBeenSet = true;
377 m_dailySnapshotTime = std::forward<DailySnapshotTimeT>(value);
378 }
379 template <typename DailySnapshotTimeT = Aws::String>
380 ServerlessCache& WithDailySnapshotTime(DailySnapshotTimeT&& value) {
381 SetDailySnapshotTime(std::forward<DailySnapshotTimeT>(value));
382 return *this;
383 }
385
387
394 inline NetworkType GetNetworkType() const { return m_networkType; }
395 inline bool NetworkTypeHasBeenSet() const { return m_networkTypeHasBeenSet; }
396 inline void SetNetworkType(NetworkType value) {
397 m_networkTypeHasBeenSet = true;
398 m_networkType = value;
399 }
401 SetNetworkType(value);
402 return *this;
403 }
405
407
411 inline ConnectionType GetConnectionType() const { return m_connectionType; }
412 inline bool ConnectionTypeHasBeenSet() const { return m_connectionTypeHasBeenSet; }
414 m_connectionTypeHasBeenSet = true;
415 m_connectionType = value;
416 }
418 SetConnectionType(value);
419 return *this;
420 }
422
424
427 inline const MigrationSummary& GetMigration() const { return m_migration; }
428 inline bool MigrationHasBeenSet() const { return m_migrationHasBeenSet; }
429 template <typename MigrationT = MigrationSummary>
430 void SetMigration(MigrationT&& value) {
431 m_migrationHasBeenSet = true;
432 m_migration = std::forward<MigrationT>(value);
433 }
434 template <typename MigrationT = MigrationSummary>
435 ServerlessCache& WithMigration(MigrationT&& value) {
436 SetMigration(std::forward<MigrationT>(value));
437 return *this;
438 }
440 private:
441 Aws::String m_serverlessCacheName;
442
443 Aws::String m_description;
444
445 Aws::Utils::DateTime m_createTime{};
446
447 Aws::String m_status;
448
449 Aws::String m_engine;
450
451 Aws::String m_majorEngineVersion;
452
453 Aws::String m_fullEngineVersion;
454
455 CacheUsageLimits m_cacheUsageLimits;
456
457 Aws::String m_kmsKeyId;
458
460
461 Aws::Vector<Aws::String> m_securityGroupIds;
462
463 Endpoint m_endpoint;
464
465 Endpoint m_readerEndpoint;
466
467 Aws::String m_aRN;
468
469 Aws::String m_userGroupId;
470
471 Aws::Vector<Aws::String> m_subnetIds;
472
473 int m_snapshotRetentionLimit{0};
474
475 Aws::String m_dailySnapshotTime;
476
477 NetworkType m_networkType{NetworkType::NOT_SET};
478
479 ConnectionType m_connectionType{ConnectionType::NOT_SET};
480
481 MigrationSummary m_migration;
482 bool m_serverlessCacheNameHasBeenSet = false;
483 bool m_descriptionHasBeenSet = false;
484 bool m_createTimeHasBeenSet = false;
485 bool m_statusHasBeenSet = false;
486 bool m_engineHasBeenSet = false;
487 bool m_majorEngineVersionHasBeenSet = false;
488 bool m_fullEngineVersionHasBeenSet = false;
489 bool m_cacheUsageLimitsHasBeenSet = false;
490 bool m_kmsKeyIdHasBeenSet = false;
491 bool m_storageEncryptionTypeHasBeenSet = false;
492 bool m_securityGroupIdsHasBeenSet = false;
493 bool m_endpointHasBeenSet = false;
494 bool m_readerEndpointHasBeenSet = false;
495 bool m_aRNHasBeenSet = false;
496 bool m_userGroupIdHasBeenSet = false;
497 bool m_subnetIdsHasBeenSet = false;
498 bool m_snapshotRetentionLimitHasBeenSet = false;
499 bool m_dailySnapshotTimeHasBeenSet = false;
500 bool m_networkTypeHasBeenSet = false;
501 bool m_connectionTypeHasBeenSet = false;
502 bool m_migrationHasBeenSet = false;
503};
504
505} // namespace Model
506} // namespace ElastiCache
507} // 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)
const MigrationSummary & GetMigration() const
ServerlessCache & AddSecurityGroupIds(SecurityGroupIdsT &&value)
const Aws::String & GetDailySnapshotTime() const
void SetFullEngineVersion(FullEngineVersionT &&value)
ServerlessCache & WithMigration(MigrationT &&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::basic_ostream< char, std::char_traits< char > > OStream
std::vector< T, Aws::Allocator< T > > Vector