AWS SDK for C++

AWS SDK for C++ Version 1.11.829

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#include <aws/elasticache/model/NetworkType.h>
15#include <aws/elasticache/model/StorageEncryptionType.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Xml {
22class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace ElastiCache {
26namespace Model {
27
34 public:
35 AWS_ELASTICACHE_API ServerlessCache() = default;
36 AWS_ELASTICACHE_API ServerlessCache(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_ELASTICACHE_API ServerlessCache& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
43
46 inline const Aws::String& GetServerlessCacheName() const { return m_serverlessCacheName; }
47 inline bool ServerlessCacheNameHasBeenSet() const { return m_serverlessCacheNameHasBeenSet; }
48 template <typename ServerlessCacheNameT = Aws::String>
49 void SetServerlessCacheName(ServerlessCacheNameT&& value) {
50 m_serverlessCacheNameHasBeenSet = true;
51 m_serverlessCacheName = std::forward<ServerlessCacheNameT>(value);
52 }
53 template <typename ServerlessCacheNameT = Aws::String>
54 ServerlessCache& WithServerlessCacheName(ServerlessCacheNameT&& value) {
55 SetServerlessCacheName(std::forward<ServerlessCacheNameT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetDescription() const { return m_description; }
65 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
66 template <typename DescriptionT = Aws::String>
67 void SetDescription(DescriptionT&& value) {
68 m_descriptionHasBeenSet = true;
69 m_description = std::forward<DescriptionT>(value);
70 }
71 template <typename DescriptionT = Aws::String>
72 ServerlessCache& WithDescription(DescriptionT&& value) {
73 SetDescription(std::forward<DescriptionT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::Utils::DateTime& GetCreateTime() const { return m_createTime; }
83 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
84 template <typename CreateTimeT = Aws::Utils::DateTime>
85 void SetCreateTime(CreateTimeT&& value) {
86 m_createTimeHasBeenSet = true;
87 m_createTime = std::forward<CreateTimeT>(value);
88 }
89 template <typename CreateTimeT = Aws::Utils::DateTime>
90 ServerlessCache& WithCreateTime(CreateTimeT&& value) {
91 SetCreateTime(std::forward<CreateTimeT>(value));
92 return *this;
93 }
95
97
101 inline const Aws::String& GetStatus() const { return m_status; }
102 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
103 template <typename StatusT = Aws::String>
104 void SetStatus(StatusT&& value) {
105 m_statusHasBeenSet = true;
106 m_status = std::forward<StatusT>(value);
107 }
108 template <typename StatusT = Aws::String>
109 ServerlessCache& WithStatus(StatusT&& value) {
110 SetStatus(std::forward<StatusT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::String& GetEngine() const { return m_engine; }
120 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
121 template <typename EngineT = Aws::String>
122 void SetEngine(EngineT&& value) {
123 m_engineHasBeenSet = true;
124 m_engine = std::forward<EngineT>(value);
125 }
126 template <typename EngineT = Aws::String>
127 ServerlessCache& WithEngine(EngineT&& value) {
128 SetEngine(std::forward<EngineT>(value));
129 return *this;
130 }
132
134
137 inline const Aws::String& GetMajorEngineVersion() const { return m_majorEngineVersion; }
138 inline bool MajorEngineVersionHasBeenSet() const { return m_majorEngineVersionHasBeenSet; }
139 template <typename MajorEngineVersionT = Aws::String>
140 void SetMajorEngineVersion(MajorEngineVersionT&& value) {
141 m_majorEngineVersionHasBeenSet = true;
142 m_majorEngineVersion = std::forward<MajorEngineVersionT>(value);
143 }
144 template <typename MajorEngineVersionT = Aws::String>
145 ServerlessCache& WithMajorEngineVersion(MajorEngineVersionT&& value) {
146 SetMajorEngineVersion(std::forward<MajorEngineVersionT>(value));
147 return *this;
148 }
150
152
156 inline const Aws::String& GetFullEngineVersion() const { return m_fullEngineVersion; }
157 inline bool FullEngineVersionHasBeenSet() const { return m_fullEngineVersionHasBeenSet; }
158 template <typename FullEngineVersionT = Aws::String>
159 void SetFullEngineVersion(FullEngineVersionT&& value) {
160 m_fullEngineVersionHasBeenSet = true;
161 m_fullEngineVersion = std::forward<FullEngineVersionT>(value);
162 }
163 template <typename FullEngineVersionT = Aws::String>
164 ServerlessCache& WithFullEngineVersion(FullEngineVersionT&& value) {
165 SetFullEngineVersion(std::forward<FullEngineVersionT>(value));
166 return *this;
167 }
169
171
174 inline const CacheUsageLimits& GetCacheUsageLimits() const { return m_cacheUsageLimits; }
175 inline bool CacheUsageLimitsHasBeenSet() const { return m_cacheUsageLimitsHasBeenSet; }
176 template <typename CacheUsageLimitsT = CacheUsageLimits>
177 void SetCacheUsageLimits(CacheUsageLimitsT&& value) {
178 m_cacheUsageLimitsHasBeenSet = true;
179 m_cacheUsageLimits = std::forward<CacheUsageLimitsT>(value);
180 }
181 template <typename CacheUsageLimitsT = CacheUsageLimits>
182 ServerlessCache& WithCacheUsageLimits(CacheUsageLimitsT&& value) {
183 SetCacheUsageLimits(std::forward<CacheUsageLimitsT>(value));
184 return *this;
185 }
187
189
193 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
194 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
195 template <typename KmsKeyIdT = Aws::String>
196 void SetKmsKeyId(KmsKeyIdT&& value) {
197 m_kmsKeyIdHasBeenSet = true;
198 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
199 }
200 template <typename KmsKeyIdT = Aws::String>
201 ServerlessCache& WithKmsKeyId(KmsKeyIdT&& value) {
202 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
203 return *this;
204 }
206
208
214 inline StorageEncryptionType GetStorageEncryptionType() const { return m_storageEncryptionType; }
215 inline bool StorageEncryptionTypeHasBeenSet() const { return m_storageEncryptionTypeHasBeenSet; }
217 m_storageEncryptionTypeHasBeenSet = true;
218 m_storageEncryptionType = value;
219 }
222 return *this;
223 }
225
227
230 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
231 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
232 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
233 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
234 m_securityGroupIdsHasBeenSet = true;
235 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
236 }
237 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
238 ServerlessCache& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
239 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
240 return *this;
241 }
242 template <typename SecurityGroupIdsT = Aws::String>
243 ServerlessCache& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
244 m_securityGroupIdsHasBeenSet = true;
245 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
246 return *this;
247 }
249
251
252 inline const Endpoint& GetEndpoint() const { return m_endpoint; }
253 inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
254 template <typename EndpointT = Endpoint>
255 void SetEndpoint(EndpointT&& value) {
256 m_endpointHasBeenSet = true;
257 m_endpoint = std::forward<EndpointT>(value);
258 }
259 template <typename EndpointT = Endpoint>
260 ServerlessCache& WithEndpoint(EndpointT&& value) {
261 SetEndpoint(std::forward<EndpointT>(value));
262 return *this;
263 }
265
267
268 inline const Endpoint& GetReaderEndpoint() const { return m_readerEndpoint; }
269 inline bool ReaderEndpointHasBeenSet() const { return m_readerEndpointHasBeenSet; }
270 template <typename ReaderEndpointT = Endpoint>
271 void SetReaderEndpoint(ReaderEndpointT&& value) {
272 m_readerEndpointHasBeenSet = true;
273 m_readerEndpoint = std::forward<ReaderEndpointT>(value);
274 }
275 template <typename ReaderEndpointT = Endpoint>
276 ServerlessCache& WithReaderEndpoint(ReaderEndpointT&& value) {
277 SetReaderEndpoint(std::forward<ReaderEndpointT>(value));
278 return *this;
279 }
281
283
286 inline const Aws::String& GetARN() const { return m_aRN; }
287 inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
288 template <typename ARNT = Aws::String>
289 void SetARN(ARNT&& value) {
290 m_aRNHasBeenSet = true;
291 m_aRN = std::forward<ARNT>(value);
292 }
293 template <typename ARNT = Aws::String>
294 ServerlessCache& WithARN(ARNT&& value) {
295 SetARN(std::forward<ARNT>(value));
296 return *this;
297 }
299
301
305 inline const Aws::String& GetUserGroupId() const { return m_userGroupId; }
306 inline bool UserGroupIdHasBeenSet() const { return m_userGroupIdHasBeenSet; }
307 template <typename UserGroupIdT = Aws::String>
308 void SetUserGroupId(UserGroupIdT&& value) {
309 m_userGroupIdHasBeenSet = true;
310 m_userGroupId = std::forward<UserGroupIdT>(value);
311 }
312 template <typename UserGroupIdT = Aws::String>
313 ServerlessCache& WithUserGroupId(UserGroupIdT&& value) {
314 SetUserGroupId(std::forward<UserGroupIdT>(value));
315 return *this;
316 }
318
320
326 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
327 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
328 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
329 void SetSubnetIds(SubnetIdsT&& value) {
330 m_subnetIdsHasBeenSet = true;
331 m_subnetIds = std::forward<SubnetIdsT>(value);
332 }
333 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
334 ServerlessCache& WithSubnetIds(SubnetIdsT&& value) {
335 SetSubnetIds(std::forward<SubnetIdsT>(value));
336 return *this;
337 }
338 template <typename SubnetIdsT = Aws::String>
339 ServerlessCache& AddSubnetIds(SubnetIdsT&& value) {
340 m_subnetIdsHasBeenSet = true;
341 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
342 return *this;
343 }
345
347
352 inline int GetSnapshotRetentionLimit() const { return m_snapshotRetentionLimit; }
353 inline bool SnapshotRetentionLimitHasBeenSet() const { return m_snapshotRetentionLimitHasBeenSet; }
354 inline void SetSnapshotRetentionLimit(int value) {
355 m_snapshotRetentionLimitHasBeenSet = true;
356 m_snapshotRetentionLimit = value;
357 }
360 return *this;
361 }
363
365
370 inline const Aws::String& GetDailySnapshotTime() const { return m_dailySnapshotTime; }
371 inline bool DailySnapshotTimeHasBeenSet() const { return m_dailySnapshotTimeHasBeenSet; }
372 template <typename DailySnapshotTimeT = Aws::String>
373 void SetDailySnapshotTime(DailySnapshotTimeT&& value) {
374 m_dailySnapshotTimeHasBeenSet = true;
375 m_dailySnapshotTime = std::forward<DailySnapshotTimeT>(value);
376 }
377 template <typename DailySnapshotTimeT = Aws::String>
378 ServerlessCache& WithDailySnapshotTime(DailySnapshotTimeT&& value) {
379 SetDailySnapshotTime(std::forward<DailySnapshotTimeT>(value));
380 return *this;
381 }
383
385
392 inline NetworkType GetNetworkType() const { return m_networkType; }
393 inline bool NetworkTypeHasBeenSet() const { return m_networkTypeHasBeenSet; }
394 inline void SetNetworkType(NetworkType value) {
395 m_networkTypeHasBeenSet = true;
396 m_networkType = value;
397 }
399 SetNetworkType(value);
400 return *this;
401 }
403 private:
404 Aws::String m_serverlessCacheName;
405
406 Aws::String m_description;
407
408 Aws::Utils::DateTime m_createTime{};
409
410 Aws::String m_status;
411
412 Aws::String m_engine;
413
414 Aws::String m_majorEngineVersion;
415
416 Aws::String m_fullEngineVersion;
417
418 CacheUsageLimits m_cacheUsageLimits;
419
420 Aws::String m_kmsKeyId;
421
423
424 Aws::Vector<Aws::String> m_securityGroupIds;
425
426 Endpoint m_endpoint;
427
428 Endpoint m_readerEndpoint;
429
430 Aws::String m_aRN;
431
432 Aws::String m_userGroupId;
433
434 Aws::Vector<Aws::String> m_subnetIds;
435
436 int m_snapshotRetentionLimit{0};
437
438 Aws::String m_dailySnapshotTime;
439
440 NetworkType m_networkType{NetworkType::NOT_SET};
441 bool m_serverlessCacheNameHasBeenSet = false;
442 bool m_descriptionHasBeenSet = false;
443 bool m_createTimeHasBeenSet = false;
444 bool m_statusHasBeenSet = false;
445 bool m_engineHasBeenSet = false;
446 bool m_majorEngineVersionHasBeenSet = false;
447 bool m_fullEngineVersionHasBeenSet = false;
448 bool m_cacheUsageLimitsHasBeenSet = false;
449 bool m_kmsKeyIdHasBeenSet = false;
450 bool m_storageEncryptionTypeHasBeenSet = false;
451 bool m_securityGroupIdsHasBeenSet = false;
452 bool m_endpointHasBeenSet = false;
453 bool m_readerEndpointHasBeenSet = false;
454 bool m_aRNHasBeenSet = false;
455 bool m_userGroupIdHasBeenSet = false;
456 bool m_subnetIdsHasBeenSet = false;
457 bool m_snapshotRetentionLimitHasBeenSet = false;
458 bool m_dailySnapshotTimeHasBeenSet = false;
459 bool m_networkTypeHasBeenSet = false;
460};
461
462} // namespace Model
463} // namespace ElastiCache
464} // 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)
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