AWS SDK for C++

AWS SDK for C++ Version 1.11.788

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
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Xml {
21class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace ElastiCache {
25namespace Model {
26
33 public:
34 AWS_ELASTICACHE_API ServerlessCache() = default;
35 AWS_ELASTICACHE_API ServerlessCache(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_ELASTICACHE_API ServerlessCache& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
42
45 inline const Aws::String& GetServerlessCacheName() const { return m_serverlessCacheName; }
46 inline bool ServerlessCacheNameHasBeenSet() const { return m_serverlessCacheNameHasBeenSet; }
47 template <typename ServerlessCacheNameT = Aws::String>
48 void SetServerlessCacheName(ServerlessCacheNameT&& value) {
49 m_serverlessCacheNameHasBeenSet = true;
50 m_serverlessCacheName = std::forward<ServerlessCacheNameT>(value);
51 }
52 template <typename ServerlessCacheNameT = Aws::String>
53 ServerlessCache& WithServerlessCacheName(ServerlessCacheNameT&& value) {
54 SetServerlessCacheName(std::forward<ServerlessCacheNameT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetDescription() const { return m_description; }
64 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
65 template <typename DescriptionT = Aws::String>
66 void SetDescription(DescriptionT&& value) {
67 m_descriptionHasBeenSet = true;
68 m_description = std::forward<DescriptionT>(value);
69 }
70 template <typename DescriptionT = Aws::String>
71 ServerlessCache& WithDescription(DescriptionT&& value) {
72 SetDescription(std::forward<DescriptionT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::Utils::DateTime& GetCreateTime() const { return m_createTime; }
82 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
83 template <typename CreateTimeT = Aws::Utils::DateTime>
84 void SetCreateTime(CreateTimeT&& value) {
85 m_createTimeHasBeenSet = true;
86 m_createTime = std::forward<CreateTimeT>(value);
87 }
88 template <typename CreateTimeT = Aws::Utils::DateTime>
89 ServerlessCache& WithCreateTime(CreateTimeT&& value) {
90 SetCreateTime(std::forward<CreateTimeT>(value));
91 return *this;
92 }
94
96
100 inline const Aws::String& GetStatus() const { return m_status; }
101 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
102 template <typename StatusT = Aws::String>
103 void SetStatus(StatusT&& value) {
104 m_statusHasBeenSet = true;
105 m_status = std::forward<StatusT>(value);
106 }
107 template <typename StatusT = Aws::String>
108 ServerlessCache& WithStatus(StatusT&& value) {
109 SetStatus(std::forward<StatusT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::String& GetEngine() const { return m_engine; }
119 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
120 template <typename EngineT = Aws::String>
121 void SetEngine(EngineT&& value) {
122 m_engineHasBeenSet = true;
123 m_engine = std::forward<EngineT>(value);
124 }
125 template <typename EngineT = Aws::String>
126 ServerlessCache& WithEngine(EngineT&& value) {
127 SetEngine(std::forward<EngineT>(value));
128 return *this;
129 }
131
133
136 inline const Aws::String& GetMajorEngineVersion() const { return m_majorEngineVersion; }
137 inline bool MajorEngineVersionHasBeenSet() const { return m_majorEngineVersionHasBeenSet; }
138 template <typename MajorEngineVersionT = Aws::String>
139 void SetMajorEngineVersion(MajorEngineVersionT&& value) {
140 m_majorEngineVersionHasBeenSet = true;
141 m_majorEngineVersion = std::forward<MajorEngineVersionT>(value);
142 }
143 template <typename MajorEngineVersionT = Aws::String>
144 ServerlessCache& WithMajorEngineVersion(MajorEngineVersionT&& value) {
145 SetMajorEngineVersion(std::forward<MajorEngineVersionT>(value));
146 return *this;
147 }
149
151
155 inline const Aws::String& GetFullEngineVersion() const { return m_fullEngineVersion; }
156 inline bool FullEngineVersionHasBeenSet() const { return m_fullEngineVersionHasBeenSet; }
157 template <typename FullEngineVersionT = Aws::String>
158 void SetFullEngineVersion(FullEngineVersionT&& value) {
159 m_fullEngineVersionHasBeenSet = true;
160 m_fullEngineVersion = std::forward<FullEngineVersionT>(value);
161 }
162 template <typename FullEngineVersionT = Aws::String>
163 ServerlessCache& WithFullEngineVersion(FullEngineVersionT&& value) {
164 SetFullEngineVersion(std::forward<FullEngineVersionT>(value));
165 return *this;
166 }
168
170
173 inline const CacheUsageLimits& GetCacheUsageLimits() const { return m_cacheUsageLimits; }
174 inline bool CacheUsageLimitsHasBeenSet() const { return m_cacheUsageLimitsHasBeenSet; }
175 template <typename CacheUsageLimitsT = CacheUsageLimits>
176 void SetCacheUsageLimits(CacheUsageLimitsT&& value) {
177 m_cacheUsageLimitsHasBeenSet = true;
178 m_cacheUsageLimits = std::forward<CacheUsageLimitsT>(value);
179 }
180 template <typename CacheUsageLimitsT = CacheUsageLimits>
181 ServerlessCache& WithCacheUsageLimits(CacheUsageLimitsT&& value) {
182 SetCacheUsageLimits(std::forward<CacheUsageLimitsT>(value));
183 return *this;
184 }
186
188
192 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
193 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
194 template <typename KmsKeyIdT = Aws::String>
195 void SetKmsKeyId(KmsKeyIdT&& value) {
196 m_kmsKeyIdHasBeenSet = true;
197 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
198 }
199 template <typename KmsKeyIdT = Aws::String>
200 ServerlessCache& WithKmsKeyId(KmsKeyIdT&& value) {
201 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
202 return *this;
203 }
205
207
210 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
211 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
212 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
213 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
214 m_securityGroupIdsHasBeenSet = true;
215 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
216 }
217 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
218 ServerlessCache& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
219 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
220 return *this;
221 }
222 template <typename SecurityGroupIdsT = Aws::String>
223 ServerlessCache& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
224 m_securityGroupIdsHasBeenSet = true;
225 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
226 return *this;
227 }
229
231
232 inline const Endpoint& GetEndpoint() const { return m_endpoint; }
233 inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
234 template <typename EndpointT = Endpoint>
235 void SetEndpoint(EndpointT&& value) {
236 m_endpointHasBeenSet = true;
237 m_endpoint = std::forward<EndpointT>(value);
238 }
239 template <typename EndpointT = Endpoint>
240 ServerlessCache& WithEndpoint(EndpointT&& value) {
241 SetEndpoint(std::forward<EndpointT>(value));
242 return *this;
243 }
245
247
248 inline const Endpoint& GetReaderEndpoint() const { return m_readerEndpoint; }
249 inline bool ReaderEndpointHasBeenSet() const { return m_readerEndpointHasBeenSet; }
250 template <typename ReaderEndpointT = Endpoint>
251 void SetReaderEndpoint(ReaderEndpointT&& value) {
252 m_readerEndpointHasBeenSet = true;
253 m_readerEndpoint = std::forward<ReaderEndpointT>(value);
254 }
255 template <typename ReaderEndpointT = Endpoint>
256 ServerlessCache& WithReaderEndpoint(ReaderEndpointT&& value) {
257 SetReaderEndpoint(std::forward<ReaderEndpointT>(value));
258 return *this;
259 }
261
263
266 inline const Aws::String& GetARN() const { return m_aRN; }
267 inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
268 template <typename ARNT = Aws::String>
269 void SetARN(ARNT&& value) {
270 m_aRNHasBeenSet = true;
271 m_aRN = std::forward<ARNT>(value);
272 }
273 template <typename ARNT = Aws::String>
274 ServerlessCache& WithARN(ARNT&& value) {
275 SetARN(std::forward<ARNT>(value));
276 return *this;
277 }
279
281
285 inline const Aws::String& GetUserGroupId() const { return m_userGroupId; }
286 inline bool UserGroupIdHasBeenSet() const { return m_userGroupIdHasBeenSet; }
287 template <typename UserGroupIdT = Aws::String>
288 void SetUserGroupId(UserGroupIdT&& value) {
289 m_userGroupIdHasBeenSet = true;
290 m_userGroupId = std::forward<UserGroupIdT>(value);
291 }
292 template <typename UserGroupIdT = Aws::String>
293 ServerlessCache& WithUserGroupId(UserGroupIdT&& value) {
294 SetUserGroupId(std::forward<UserGroupIdT>(value));
295 return *this;
296 }
298
300
306 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
307 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
308 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
309 void SetSubnetIds(SubnetIdsT&& value) {
310 m_subnetIdsHasBeenSet = true;
311 m_subnetIds = std::forward<SubnetIdsT>(value);
312 }
313 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
314 ServerlessCache& WithSubnetIds(SubnetIdsT&& value) {
315 SetSubnetIds(std::forward<SubnetIdsT>(value));
316 return *this;
317 }
318 template <typename SubnetIdsT = Aws::String>
319 ServerlessCache& AddSubnetIds(SubnetIdsT&& value) {
320 m_subnetIdsHasBeenSet = true;
321 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
322 return *this;
323 }
325
327
332 inline int GetSnapshotRetentionLimit() const { return m_snapshotRetentionLimit; }
333 inline bool SnapshotRetentionLimitHasBeenSet() const { return m_snapshotRetentionLimitHasBeenSet; }
334 inline void SetSnapshotRetentionLimit(int value) {
335 m_snapshotRetentionLimitHasBeenSet = true;
336 m_snapshotRetentionLimit = value;
337 }
340 return *this;
341 }
343
345
350 inline const Aws::String& GetDailySnapshotTime() const { return m_dailySnapshotTime; }
351 inline bool DailySnapshotTimeHasBeenSet() const { return m_dailySnapshotTimeHasBeenSet; }
352 template <typename DailySnapshotTimeT = Aws::String>
353 void SetDailySnapshotTime(DailySnapshotTimeT&& value) {
354 m_dailySnapshotTimeHasBeenSet = true;
355 m_dailySnapshotTime = std::forward<DailySnapshotTimeT>(value);
356 }
357 template <typename DailySnapshotTimeT = Aws::String>
358 ServerlessCache& WithDailySnapshotTime(DailySnapshotTimeT&& value) {
359 SetDailySnapshotTime(std::forward<DailySnapshotTimeT>(value));
360 return *this;
361 }
363
365
372 inline NetworkType GetNetworkType() const { return m_networkType; }
373 inline bool NetworkTypeHasBeenSet() const { return m_networkTypeHasBeenSet; }
374 inline void SetNetworkType(NetworkType value) {
375 m_networkTypeHasBeenSet = true;
376 m_networkType = value;
377 }
379 SetNetworkType(value);
380 return *this;
381 }
383 private:
384 Aws::String m_serverlessCacheName;
385
386 Aws::String m_description;
387
388 Aws::Utils::DateTime m_createTime{};
389
390 Aws::String m_status;
391
392 Aws::String m_engine;
393
394 Aws::String m_majorEngineVersion;
395
396 Aws::String m_fullEngineVersion;
397
398 CacheUsageLimits m_cacheUsageLimits;
399
400 Aws::String m_kmsKeyId;
401
402 Aws::Vector<Aws::String> m_securityGroupIds;
403
404 Endpoint m_endpoint;
405
406 Endpoint m_readerEndpoint;
407
408 Aws::String m_aRN;
409
410 Aws::String m_userGroupId;
411
412 Aws::Vector<Aws::String> m_subnetIds;
413
414 int m_snapshotRetentionLimit{0};
415
416 Aws::String m_dailySnapshotTime;
417
418 NetworkType m_networkType{NetworkType::NOT_SET};
419 bool m_serverlessCacheNameHasBeenSet = false;
420 bool m_descriptionHasBeenSet = false;
421 bool m_createTimeHasBeenSet = false;
422 bool m_statusHasBeenSet = false;
423 bool m_engineHasBeenSet = false;
424 bool m_majorEngineVersionHasBeenSet = false;
425 bool m_fullEngineVersionHasBeenSet = false;
426 bool m_cacheUsageLimitsHasBeenSet = false;
427 bool m_kmsKeyIdHasBeenSet = false;
428 bool m_securityGroupIdsHasBeenSet = false;
429 bool m_endpointHasBeenSet = false;
430 bool m_readerEndpointHasBeenSet = false;
431 bool m_aRNHasBeenSet = false;
432 bool m_userGroupIdHasBeenSet = false;
433 bool m_subnetIdsHasBeenSet = false;
434 bool m_snapshotRetentionLimitHasBeenSet = false;
435 bool m_dailySnapshotTimeHasBeenSet = false;
436 bool m_networkTypeHasBeenSet = false;
437};
438
439} // namespace Model
440} // namespace ElastiCache
441} // 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 & WithNetworkType(NetworkType 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