AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
UpdateAction.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/CacheNodeUpdateStatus.h>
13#include <aws/elasticache/model/NodeGroupUpdateStatus.h>
14#include <aws/elasticache/model/ServiceUpdateSeverity.h>
15#include <aws/elasticache/model/ServiceUpdateStatus.h>
16#include <aws/elasticache/model/ServiceUpdateType.h>
17#include <aws/elasticache/model/SlaMet.h>
18#include <aws/elasticache/model/UpdateActionStatus.h>
19
20#include <utility>
21
22namespace Aws {
23namespace Utils {
24namespace Xml {
25class XmlNode;
26} // namespace Xml
27} // namespace Utils
28namespace ElastiCache {
29namespace Model {
30
38 public:
39 AWS_ELASTICACHE_API UpdateAction() = default;
40 AWS_ELASTICACHE_API UpdateAction(const Aws::Utils::Xml::XmlNode& xmlNode);
41 AWS_ELASTICACHE_API UpdateAction& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
42
43 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
45
47
50 inline const Aws::String& GetReplicationGroupId() const { return m_replicationGroupId; }
51 inline bool ReplicationGroupIdHasBeenSet() const { return m_replicationGroupIdHasBeenSet; }
52 template <typename ReplicationGroupIdT = Aws::String>
53 void SetReplicationGroupId(ReplicationGroupIdT&& value) {
54 m_replicationGroupIdHasBeenSet = true;
55 m_replicationGroupId = std::forward<ReplicationGroupIdT>(value);
56 }
57 template <typename ReplicationGroupIdT = Aws::String>
58 UpdateAction& WithReplicationGroupId(ReplicationGroupIdT&& value) {
59 SetReplicationGroupId(std::forward<ReplicationGroupIdT>(value));
60 return *this;
61 }
63
65
68 inline const Aws::String& GetCacheClusterId() const { return m_cacheClusterId; }
69 inline bool CacheClusterIdHasBeenSet() const { return m_cacheClusterIdHasBeenSet; }
70 template <typename CacheClusterIdT = Aws::String>
71 void SetCacheClusterId(CacheClusterIdT&& value) {
72 m_cacheClusterIdHasBeenSet = true;
73 m_cacheClusterId = std::forward<CacheClusterIdT>(value);
74 }
75 template <typename CacheClusterIdT = Aws::String>
76 UpdateAction& WithCacheClusterId(CacheClusterIdT&& value) {
77 SetCacheClusterId(std::forward<CacheClusterIdT>(value));
78 return *this;
79 }
81
83
86 inline const Aws::String& GetServiceUpdateName() const { return m_serviceUpdateName; }
87 inline bool ServiceUpdateNameHasBeenSet() const { return m_serviceUpdateNameHasBeenSet; }
88 template <typename ServiceUpdateNameT = Aws::String>
89 void SetServiceUpdateName(ServiceUpdateNameT&& value) {
90 m_serviceUpdateNameHasBeenSet = true;
91 m_serviceUpdateName = std::forward<ServiceUpdateNameT>(value);
92 }
93 template <typename ServiceUpdateNameT = Aws::String>
94 UpdateAction& WithServiceUpdateName(ServiceUpdateNameT&& value) {
95 SetServiceUpdateName(std::forward<ServiceUpdateNameT>(value));
96 return *this;
97 }
99
101
104 inline const Aws::Utils::DateTime& GetServiceUpdateReleaseDate() const { return m_serviceUpdateReleaseDate; }
105 inline bool ServiceUpdateReleaseDateHasBeenSet() const { return m_serviceUpdateReleaseDateHasBeenSet; }
106 template <typename ServiceUpdateReleaseDateT = Aws::Utils::DateTime>
107 void SetServiceUpdateReleaseDate(ServiceUpdateReleaseDateT&& value) {
108 m_serviceUpdateReleaseDateHasBeenSet = true;
109 m_serviceUpdateReleaseDate = std::forward<ServiceUpdateReleaseDateT>(value);
110 }
111 template <typename ServiceUpdateReleaseDateT = Aws::Utils::DateTime>
112 UpdateAction& WithServiceUpdateReleaseDate(ServiceUpdateReleaseDateT&& value) {
113 SetServiceUpdateReleaseDate(std::forward<ServiceUpdateReleaseDateT>(value));
114 return *this;
115 }
117
119
122 inline ServiceUpdateSeverity GetServiceUpdateSeverity() const { return m_serviceUpdateSeverity; }
123 inline bool ServiceUpdateSeverityHasBeenSet() const { return m_serviceUpdateSeverityHasBeenSet; }
125 m_serviceUpdateSeverityHasBeenSet = true;
126 m_serviceUpdateSeverity = value;
127 }
130 return *this;
131 }
133
135
138 inline ServiceUpdateStatus GetServiceUpdateStatus() const { return m_serviceUpdateStatus; }
139 inline bool ServiceUpdateStatusHasBeenSet() const { return m_serviceUpdateStatusHasBeenSet; }
141 m_serviceUpdateStatusHasBeenSet = true;
142 m_serviceUpdateStatus = value;
143 }
146 return *this;
147 }
149
151
157 inline const Aws::Utils::DateTime& GetServiceUpdateRecommendedApplyByDate() const { return m_serviceUpdateRecommendedApplyByDate; }
158 inline bool ServiceUpdateRecommendedApplyByDateHasBeenSet() const { return m_serviceUpdateRecommendedApplyByDateHasBeenSet; }
159 template <typename ServiceUpdateRecommendedApplyByDateT = Aws::Utils::DateTime>
160 void SetServiceUpdateRecommendedApplyByDate(ServiceUpdateRecommendedApplyByDateT&& value) {
161 m_serviceUpdateRecommendedApplyByDateHasBeenSet = true;
162 m_serviceUpdateRecommendedApplyByDate = std::forward<ServiceUpdateRecommendedApplyByDateT>(value);
163 }
164 template <typename ServiceUpdateRecommendedApplyByDateT = Aws::Utils::DateTime>
165 UpdateAction& WithServiceUpdateRecommendedApplyByDate(ServiceUpdateRecommendedApplyByDateT&& value) {
166 SetServiceUpdateRecommendedApplyByDate(std::forward<ServiceUpdateRecommendedApplyByDateT>(value));
167 return *this;
168 }
170
172
175 inline ServiceUpdateType GetServiceUpdateType() const { return m_serviceUpdateType; }
176 inline bool ServiceUpdateTypeHasBeenSet() const { return m_serviceUpdateTypeHasBeenSet; }
178 m_serviceUpdateTypeHasBeenSet = true;
179 m_serviceUpdateType = value;
180 }
183 return *this;
184 }
186
188
191 inline const Aws::Utils::DateTime& GetUpdateActionAvailableDate() const { return m_updateActionAvailableDate; }
192 inline bool UpdateActionAvailableDateHasBeenSet() const { return m_updateActionAvailableDateHasBeenSet; }
193 template <typename UpdateActionAvailableDateT = Aws::Utils::DateTime>
194 void SetUpdateActionAvailableDate(UpdateActionAvailableDateT&& value) {
195 m_updateActionAvailableDateHasBeenSet = true;
196 m_updateActionAvailableDate = std::forward<UpdateActionAvailableDateT>(value);
197 }
198 template <typename UpdateActionAvailableDateT = Aws::Utils::DateTime>
199 UpdateAction& WithUpdateActionAvailableDate(UpdateActionAvailableDateT&& value) {
200 SetUpdateActionAvailableDate(std::forward<UpdateActionAvailableDateT>(value));
201 return *this;
202 }
204
206
209 inline UpdateActionStatus GetUpdateActionStatus() const { return m_updateActionStatus; }
210 inline bool UpdateActionStatusHasBeenSet() const { return m_updateActionStatusHasBeenSet; }
212 m_updateActionStatusHasBeenSet = true;
213 m_updateActionStatus = value;
214 }
217 return *this;
218 }
220
222
225 inline const Aws::String& GetNodesUpdated() const { return m_nodesUpdated; }
226 inline bool NodesUpdatedHasBeenSet() const { return m_nodesUpdatedHasBeenSet; }
227 template <typename NodesUpdatedT = Aws::String>
228 void SetNodesUpdated(NodesUpdatedT&& value) {
229 m_nodesUpdatedHasBeenSet = true;
230 m_nodesUpdated = std::forward<NodesUpdatedT>(value);
231 }
232 template <typename NodesUpdatedT = Aws::String>
233 UpdateAction& WithNodesUpdated(NodesUpdatedT&& value) {
234 SetNodesUpdated(std::forward<NodesUpdatedT>(value));
235 return *this;
236 }
238
240
243 inline const Aws::Utils::DateTime& GetUpdateActionStatusModifiedDate() const { return m_updateActionStatusModifiedDate; }
244 inline bool UpdateActionStatusModifiedDateHasBeenSet() const { return m_updateActionStatusModifiedDateHasBeenSet; }
245 template <typename UpdateActionStatusModifiedDateT = Aws::Utils::DateTime>
246 void SetUpdateActionStatusModifiedDate(UpdateActionStatusModifiedDateT&& value) {
247 m_updateActionStatusModifiedDateHasBeenSet = true;
248 m_updateActionStatusModifiedDate = std::forward<UpdateActionStatusModifiedDateT>(value);
249 }
250 template <typename UpdateActionStatusModifiedDateT = Aws::Utils::DateTime>
251 UpdateAction& WithUpdateActionStatusModifiedDate(UpdateActionStatusModifiedDateT&& value) {
252 SetUpdateActionStatusModifiedDate(std::forward<UpdateActionStatusModifiedDateT>(value));
253 return *this;
254 }
256
258
264 inline SlaMet GetSlaMet() const { return m_slaMet; }
265 inline bool SlaMetHasBeenSet() const { return m_slaMetHasBeenSet; }
266 inline void SetSlaMet(SlaMet value) {
267 m_slaMetHasBeenSet = true;
268 m_slaMet = value;
269 }
271 SetSlaMet(value);
272 return *this;
273 }
275
277
280 inline const Aws::Vector<NodeGroupUpdateStatus>& GetNodeGroupUpdateStatus() const { return m_nodeGroupUpdateStatus; }
281 inline bool NodeGroupUpdateStatusHasBeenSet() const { return m_nodeGroupUpdateStatusHasBeenSet; }
282 template <typename NodeGroupUpdateStatusT = Aws::Vector<NodeGroupUpdateStatus>>
283 void SetNodeGroupUpdateStatus(NodeGroupUpdateStatusT&& value) {
284 m_nodeGroupUpdateStatusHasBeenSet = true;
285 m_nodeGroupUpdateStatus = std::forward<NodeGroupUpdateStatusT>(value);
286 }
287 template <typename NodeGroupUpdateStatusT = Aws::Vector<NodeGroupUpdateStatus>>
288 UpdateAction& WithNodeGroupUpdateStatus(NodeGroupUpdateStatusT&& value) {
289 SetNodeGroupUpdateStatus(std::forward<NodeGroupUpdateStatusT>(value));
290 return *this;
291 }
292 template <typename NodeGroupUpdateStatusT = NodeGroupUpdateStatus>
293 UpdateAction& AddNodeGroupUpdateStatus(NodeGroupUpdateStatusT&& value) {
294 m_nodeGroupUpdateStatusHasBeenSet = true;
295 m_nodeGroupUpdateStatus.emplace_back(std::forward<NodeGroupUpdateStatusT>(value));
296 return *this;
297 }
299
301
304 inline const Aws::Vector<CacheNodeUpdateStatus>& GetCacheNodeUpdateStatus() const { return m_cacheNodeUpdateStatus; }
305 inline bool CacheNodeUpdateStatusHasBeenSet() const { return m_cacheNodeUpdateStatusHasBeenSet; }
306 template <typename CacheNodeUpdateStatusT = Aws::Vector<CacheNodeUpdateStatus>>
307 void SetCacheNodeUpdateStatus(CacheNodeUpdateStatusT&& value) {
308 m_cacheNodeUpdateStatusHasBeenSet = true;
309 m_cacheNodeUpdateStatus = std::forward<CacheNodeUpdateStatusT>(value);
310 }
311 template <typename CacheNodeUpdateStatusT = Aws::Vector<CacheNodeUpdateStatus>>
312 UpdateAction& WithCacheNodeUpdateStatus(CacheNodeUpdateStatusT&& value) {
313 SetCacheNodeUpdateStatus(std::forward<CacheNodeUpdateStatusT>(value));
314 return *this;
315 }
316 template <typename CacheNodeUpdateStatusT = CacheNodeUpdateStatus>
317 UpdateAction& AddCacheNodeUpdateStatus(CacheNodeUpdateStatusT&& value) {
318 m_cacheNodeUpdateStatusHasBeenSet = true;
319 m_cacheNodeUpdateStatus.emplace_back(std::forward<CacheNodeUpdateStatusT>(value));
320 return *this;
321 }
323
325
328 inline const Aws::String& GetEstimatedUpdateTime() const { return m_estimatedUpdateTime; }
329 inline bool EstimatedUpdateTimeHasBeenSet() const { return m_estimatedUpdateTimeHasBeenSet; }
330 template <typename EstimatedUpdateTimeT = Aws::String>
331 void SetEstimatedUpdateTime(EstimatedUpdateTimeT&& value) {
332 m_estimatedUpdateTimeHasBeenSet = true;
333 m_estimatedUpdateTime = std::forward<EstimatedUpdateTimeT>(value);
334 }
335 template <typename EstimatedUpdateTimeT = Aws::String>
336 UpdateAction& WithEstimatedUpdateTime(EstimatedUpdateTimeT&& value) {
337 SetEstimatedUpdateTime(std::forward<EstimatedUpdateTimeT>(value));
338 return *this;
339 }
341
343
347 inline const Aws::String& GetEngine() const { return m_engine; }
348 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
349 template <typename EngineT = Aws::String>
350 void SetEngine(EngineT&& value) {
351 m_engineHasBeenSet = true;
352 m_engine = std::forward<EngineT>(value);
353 }
354 template <typename EngineT = Aws::String>
355 UpdateAction& WithEngine(EngineT&& value) {
356 SetEngine(std::forward<EngineT>(value));
357 return *this;
358 }
360 private:
361 Aws::String m_replicationGroupId;
362
363 Aws::String m_cacheClusterId;
364
365 Aws::String m_serviceUpdateName;
366
367 Aws::Utils::DateTime m_serviceUpdateReleaseDate{};
368
370
372
373 Aws::Utils::DateTime m_serviceUpdateRecommendedApplyByDate{};
374
376
377 Aws::Utils::DateTime m_updateActionAvailableDate{};
378
380
381 Aws::String m_nodesUpdated;
382
383 Aws::Utils::DateTime m_updateActionStatusModifiedDate{};
384
385 SlaMet m_slaMet{SlaMet::NOT_SET};
386
387 Aws::Vector<NodeGroupUpdateStatus> m_nodeGroupUpdateStatus;
388
389 Aws::Vector<CacheNodeUpdateStatus> m_cacheNodeUpdateStatus;
390
391 Aws::String m_estimatedUpdateTime;
392
393 Aws::String m_engine;
394 bool m_replicationGroupIdHasBeenSet = false;
395 bool m_cacheClusterIdHasBeenSet = false;
396 bool m_serviceUpdateNameHasBeenSet = false;
397 bool m_serviceUpdateReleaseDateHasBeenSet = false;
398 bool m_serviceUpdateSeverityHasBeenSet = false;
399 bool m_serviceUpdateStatusHasBeenSet = false;
400 bool m_serviceUpdateRecommendedApplyByDateHasBeenSet = false;
401 bool m_serviceUpdateTypeHasBeenSet = false;
402 bool m_updateActionAvailableDateHasBeenSet = false;
403 bool m_updateActionStatusHasBeenSet = false;
404 bool m_nodesUpdatedHasBeenSet = false;
405 bool m_updateActionStatusModifiedDateHasBeenSet = false;
406 bool m_slaMetHasBeenSet = false;
407 bool m_nodeGroupUpdateStatusHasBeenSet = false;
408 bool m_cacheNodeUpdateStatusHasBeenSet = false;
409 bool m_estimatedUpdateTimeHasBeenSet = false;
410 bool m_engineHasBeenSet = false;
411};
412
413} // namespace Model
414} // namespace ElastiCache
415} // namespace Aws
UpdateAction & AddCacheNodeUpdateStatus(CacheNodeUpdateStatusT &&value)
const Aws::String & GetCacheClusterId() const
const Aws::Utils::DateTime & GetServiceUpdateReleaseDate() const
void SetUpdateActionStatus(UpdateActionStatus value)
UpdateAction & WithServiceUpdateReleaseDate(ServiceUpdateReleaseDateT &&value)
const Aws::Vector< CacheNodeUpdateStatus > & GetCacheNodeUpdateStatus() const
UpdateActionStatus GetUpdateActionStatus() const
ServiceUpdateStatus GetServiceUpdateStatus() const
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetCacheClusterId(CacheClusterIdT &&value)
UpdateAction & WithServiceUpdateName(ServiceUpdateNameT &&value)
UpdateAction & WithServiceUpdateType(ServiceUpdateType value)
UpdateAction & WithServiceUpdateStatus(ServiceUpdateStatus value)
UpdateAction & WithUpdateActionAvailableDate(UpdateActionAvailableDateT &&value)
UpdateAction & WithNodeGroupUpdateStatus(NodeGroupUpdateStatusT &&value)
const Aws::String & GetEstimatedUpdateTime() const
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetServiceUpdateReleaseDate(ServiceUpdateReleaseDateT &&value)
const Aws::String & GetNodesUpdated() const
const Aws::Utils::DateTime & GetUpdateActionAvailableDate() const
void SetEstimatedUpdateTime(EstimatedUpdateTimeT &&value)
void SetNodesUpdated(NodesUpdatedT &&value)
const Aws::Utils::DateTime & GetServiceUpdateRecommendedApplyByDate() const
UpdateAction & WithEstimatedUpdateTime(EstimatedUpdateTimeT &&value)
UpdateAction & WithSlaMet(SlaMet value)
UpdateAction & WithEngine(EngineT &&value)
void SetServiceUpdateType(ServiceUpdateType value)
UpdateAction & WithReplicationGroupId(ReplicationGroupIdT &&value)
const Aws::String & GetEngine() const
void SetServiceUpdateName(ServiceUpdateNameT &&value)
const Aws::String & GetServiceUpdateName() const
void SetUpdateActionAvailableDate(UpdateActionAvailableDateT &&value)
UpdateAction & WithCacheClusterId(CacheClusterIdT &&value)
UpdateAction & WithUpdateActionStatusModifiedDate(UpdateActionStatusModifiedDateT &&value)
void SetServiceUpdateRecommendedApplyByDate(ServiceUpdateRecommendedApplyByDateT &&value)
bool ServiceUpdateRecommendedApplyByDateHasBeenSet() const
UpdateAction & WithServiceUpdateSeverity(ServiceUpdateSeverity value)
ServiceUpdateType GetServiceUpdateType() const
const Aws::Vector< NodeGroupUpdateStatus > & GetNodeGroupUpdateStatus() const
void SetServiceUpdateStatus(ServiceUpdateStatus value)
void SetReplicationGroupId(ReplicationGroupIdT &&value)
AWS_ELASTICACHE_API UpdateAction(const Aws::Utils::Xml::XmlNode &xmlNode)
UpdateAction & AddNodeGroupUpdateStatus(NodeGroupUpdateStatusT &&value)
void SetUpdateActionStatusModifiedDate(UpdateActionStatusModifiedDateT &&value)
UpdateAction & WithNodesUpdated(NodesUpdatedT &&value)
AWS_ELASTICACHE_API UpdateAction()=default
void SetNodeGroupUpdateStatus(NodeGroupUpdateStatusT &&value)
UpdateAction & WithServiceUpdateRecommendedApplyByDate(ServiceUpdateRecommendedApplyByDateT &&value)
AWS_ELASTICACHE_API UpdateAction & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetCacheNodeUpdateStatus(CacheNodeUpdateStatusT &&value)
UpdateAction & WithUpdateActionStatus(UpdateActionStatus value)
const Aws::Utils::DateTime & GetUpdateActionStatusModifiedDate() const
const Aws::String & GetReplicationGroupId() const
UpdateAction & WithCacheNodeUpdateStatus(CacheNodeUpdateStatusT &&value)
void SetServiceUpdateSeverity(ServiceUpdateSeverity value)
ServiceUpdateSeverity GetServiceUpdateSeverity() const
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