AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ServerlessCache.h
1
6#pragma once
7#include <aws/elasticache/ElastiCache_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/elasticache/model/CacheUsageLimits.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/elasticache/model/Endpoint.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Xml
21{
22 class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace ElastiCache
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_ELASTICACHE_API ServerlessCache() = default;
39 AWS_ELASTICACHE_API ServerlessCache(const Aws::Utils::Xml::XmlNode& xmlNode);
40 AWS_ELASTICACHE_API ServerlessCache& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
50 inline const Aws::String& GetServerlessCacheName() const { return m_serverlessCacheName; }
51 inline bool ServerlessCacheNameHasBeenSet() const { return m_serverlessCacheNameHasBeenSet; }
52 template<typename ServerlessCacheNameT = Aws::String>
53 void SetServerlessCacheName(ServerlessCacheNameT&& value) { m_serverlessCacheNameHasBeenSet = true; m_serverlessCacheName = std::forward<ServerlessCacheNameT>(value); }
54 template<typename ServerlessCacheNameT = Aws::String>
55 ServerlessCache& WithServerlessCacheName(ServerlessCacheNameT&& value) { SetServerlessCacheName(std::forward<ServerlessCacheNameT>(value)); return *this;}
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) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
66 template<typename DescriptionT = Aws::String>
67 ServerlessCache& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
69
71
74 inline const Aws::Utils::DateTime& GetCreateTime() const { return m_createTime; }
75 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
76 template<typename CreateTimeT = Aws::Utils::DateTime>
77 void SetCreateTime(CreateTimeT&& value) { m_createTimeHasBeenSet = true; m_createTime = std::forward<CreateTimeT>(value); }
78 template<typename CreateTimeT = Aws::Utils::DateTime>
79 ServerlessCache& WithCreateTime(CreateTimeT&& value) { SetCreateTime(std::forward<CreateTimeT>(value)); return *this;}
81
83
87 inline const Aws::String& GetStatus() const { return m_status; }
88 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
89 template<typename StatusT = Aws::String>
90 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
91 template<typename StatusT = Aws::String>
92 ServerlessCache& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
94
96
99 inline const Aws::String& GetEngine() const { return m_engine; }
100 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
101 template<typename EngineT = Aws::String>
102 void SetEngine(EngineT&& value) { m_engineHasBeenSet = true; m_engine = std::forward<EngineT>(value); }
103 template<typename EngineT = Aws::String>
104 ServerlessCache& WithEngine(EngineT&& value) { SetEngine(std::forward<EngineT>(value)); return *this;}
106
108
111 inline const Aws::String& GetMajorEngineVersion() const { return m_majorEngineVersion; }
112 inline bool MajorEngineVersionHasBeenSet() const { return m_majorEngineVersionHasBeenSet; }
113 template<typename MajorEngineVersionT = Aws::String>
114 void SetMajorEngineVersion(MajorEngineVersionT&& value) { m_majorEngineVersionHasBeenSet = true; m_majorEngineVersion = std::forward<MajorEngineVersionT>(value); }
115 template<typename MajorEngineVersionT = Aws::String>
116 ServerlessCache& WithMajorEngineVersion(MajorEngineVersionT&& value) { SetMajorEngineVersion(std::forward<MajorEngineVersionT>(value)); return *this;}
118
120
124 inline const Aws::String& GetFullEngineVersion() const { return m_fullEngineVersion; }
125 inline bool FullEngineVersionHasBeenSet() const { return m_fullEngineVersionHasBeenSet; }
126 template<typename FullEngineVersionT = Aws::String>
127 void SetFullEngineVersion(FullEngineVersionT&& value) { m_fullEngineVersionHasBeenSet = true; m_fullEngineVersion = std::forward<FullEngineVersionT>(value); }
128 template<typename FullEngineVersionT = Aws::String>
129 ServerlessCache& WithFullEngineVersion(FullEngineVersionT&& value) { SetFullEngineVersion(std::forward<FullEngineVersionT>(value)); return *this;}
131
133
136 inline const CacheUsageLimits& GetCacheUsageLimits() const { return m_cacheUsageLimits; }
137 inline bool CacheUsageLimitsHasBeenSet() const { return m_cacheUsageLimitsHasBeenSet; }
138 template<typename CacheUsageLimitsT = CacheUsageLimits>
139 void SetCacheUsageLimits(CacheUsageLimitsT&& value) { m_cacheUsageLimitsHasBeenSet = true; m_cacheUsageLimits = std::forward<CacheUsageLimitsT>(value); }
140 template<typename CacheUsageLimitsT = CacheUsageLimits>
141 ServerlessCache& WithCacheUsageLimits(CacheUsageLimitsT&& value) { SetCacheUsageLimits(std::forward<CacheUsageLimitsT>(value)); return *this;}
143
145
149 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
150 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
151 template<typename KmsKeyIdT = Aws::String>
152 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
153 template<typename KmsKeyIdT = Aws::String>
154 ServerlessCache& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
156
158
161 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
162 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
163 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
164 void SetSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::forward<SecurityGroupIdsT>(value); }
165 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
166 ServerlessCache& WithSecurityGroupIds(SecurityGroupIdsT&& value) { SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value)); return *this;}
167 template<typename SecurityGroupIdsT = Aws::String>
168 ServerlessCache& AddSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value)); return *this; }
170
172
173 inline const Endpoint& GetEndpoint() const { return m_endpoint; }
174 inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
175 template<typename EndpointT = Endpoint>
176 void SetEndpoint(EndpointT&& value) { m_endpointHasBeenSet = true; m_endpoint = std::forward<EndpointT>(value); }
177 template<typename EndpointT = Endpoint>
178 ServerlessCache& WithEndpoint(EndpointT&& value) { SetEndpoint(std::forward<EndpointT>(value)); return *this;}
180
182
183 inline const Endpoint& GetReaderEndpoint() const { return m_readerEndpoint; }
184 inline bool ReaderEndpointHasBeenSet() const { return m_readerEndpointHasBeenSet; }
185 template<typename ReaderEndpointT = Endpoint>
186 void SetReaderEndpoint(ReaderEndpointT&& value) { m_readerEndpointHasBeenSet = true; m_readerEndpoint = std::forward<ReaderEndpointT>(value); }
187 template<typename ReaderEndpointT = Endpoint>
188 ServerlessCache& WithReaderEndpoint(ReaderEndpointT&& value) { SetReaderEndpoint(std::forward<ReaderEndpointT>(value)); return *this;}
190
192
195 inline const Aws::String& GetARN() const { return m_aRN; }
196 inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
197 template<typename ARNT = Aws::String>
198 void SetARN(ARNT&& value) { m_aRNHasBeenSet = true; m_aRN = std::forward<ARNT>(value); }
199 template<typename ARNT = Aws::String>
200 ServerlessCache& WithARN(ARNT&& value) { SetARN(std::forward<ARNT>(value)); return *this;}
202
204
208 inline const Aws::String& GetUserGroupId() const { return m_userGroupId; }
209 inline bool UserGroupIdHasBeenSet() const { return m_userGroupIdHasBeenSet; }
210 template<typename UserGroupIdT = Aws::String>
211 void SetUserGroupId(UserGroupIdT&& value) { m_userGroupIdHasBeenSet = true; m_userGroupId = std::forward<UserGroupIdT>(value); }
212 template<typename UserGroupIdT = Aws::String>
213 ServerlessCache& WithUserGroupId(UserGroupIdT&& value) { SetUserGroupId(std::forward<UserGroupIdT>(value)); return *this;}
215
217
223 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
224 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
225 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
226 void SetSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::forward<SubnetIdsT>(value); }
227 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
228 ServerlessCache& WithSubnetIds(SubnetIdsT&& value) { SetSubnetIds(std::forward<SubnetIdsT>(value)); return *this;}
229 template<typename SubnetIdsT = Aws::String>
230 ServerlessCache& AddSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value)); return *this; }
232
234
238 inline int GetSnapshotRetentionLimit() const { return m_snapshotRetentionLimit; }
239 inline bool SnapshotRetentionLimitHasBeenSet() const { return m_snapshotRetentionLimitHasBeenSet; }
240 inline void SetSnapshotRetentionLimit(int value) { m_snapshotRetentionLimitHasBeenSet = true; m_snapshotRetentionLimit = value; }
241 inline ServerlessCache& WithSnapshotRetentionLimit(int value) { SetSnapshotRetentionLimit(value); return *this;}
243
245
250 inline const Aws::String& GetDailySnapshotTime() const { return m_dailySnapshotTime; }
251 inline bool DailySnapshotTimeHasBeenSet() const { return m_dailySnapshotTimeHasBeenSet; }
252 template<typename DailySnapshotTimeT = Aws::String>
253 void SetDailySnapshotTime(DailySnapshotTimeT&& value) { m_dailySnapshotTimeHasBeenSet = true; m_dailySnapshotTime = std::forward<DailySnapshotTimeT>(value); }
254 template<typename DailySnapshotTimeT = Aws::String>
255 ServerlessCache& WithDailySnapshotTime(DailySnapshotTimeT&& value) { SetDailySnapshotTime(std::forward<DailySnapshotTimeT>(value)); return *this;}
257 private:
258
259 Aws::String m_serverlessCacheName;
260 bool m_serverlessCacheNameHasBeenSet = false;
261
262 Aws::String m_description;
263 bool m_descriptionHasBeenSet = false;
264
265 Aws::Utils::DateTime m_createTime{};
266 bool m_createTimeHasBeenSet = false;
267
268 Aws::String m_status;
269 bool m_statusHasBeenSet = false;
270
271 Aws::String m_engine;
272 bool m_engineHasBeenSet = false;
273
274 Aws::String m_majorEngineVersion;
275 bool m_majorEngineVersionHasBeenSet = false;
276
277 Aws::String m_fullEngineVersion;
278 bool m_fullEngineVersionHasBeenSet = false;
279
280 CacheUsageLimits m_cacheUsageLimits;
281 bool m_cacheUsageLimitsHasBeenSet = false;
282
283 Aws::String m_kmsKeyId;
284 bool m_kmsKeyIdHasBeenSet = false;
285
286 Aws::Vector<Aws::String> m_securityGroupIds;
287 bool m_securityGroupIdsHasBeenSet = false;
288
289 Endpoint m_endpoint;
290 bool m_endpointHasBeenSet = false;
291
292 Endpoint m_readerEndpoint;
293 bool m_readerEndpointHasBeenSet = false;
294
295 Aws::String m_aRN;
296 bool m_aRNHasBeenSet = false;
297
298 Aws::String m_userGroupId;
299 bool m_userGroupIdHasBeenSet = false;
300
301 Aws::Vector<Aws::String> m_subnetIds;
302 bool m_subnetIdsHasBeenSet = false;
303
304 int m_snapshotRetentionLimit{0};
305 bool m_snapshotRetentionLimitHasBeenSet = false;
306
307 Aws::String m_dailySnapshotTime;
308 bool m_dailySnapshotTimeHasBeenSet = false;
309 };
310
311} // namespace Model
312} // namespace ElastiCache
313} // 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