AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UpdateAction.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/ServiceUpdateSeverity.h>
12#include <aws/elasticache/model/ServiceUpdateStatus.h>
13#include <aws/elasticache/model/ServiceUpdateType.h>
14#include <aws/elasticache/model/UpdateActionStatus.h>
15#include <aws/elasticache/model/SlaMet.h>
16#include <aws/core/utils/memory/stl/AWSVector.h>
17#include <aws/elasticache/model/NodeGroupUpdateStatus.h>
18#include <aws/elasticache/model/CacheNodeUpdateStatus.h>
19#include <utility>
20
21namespace Aws
22{
23namespace Utils
24{
25namespace Xml
26{
27 class XmlNode;
28} // namespace Xml
29} // namespace Utils
30namespace ElastiCache
31{
32namespace Model
33{
34
42 {
43 public:
44 AWS_ELASTICACHE_API UpdateAction() = default;
45 AWS_ELASTICACHE_API UpdateAction(const Aws::Utils::Xml::XmlNode& xmlNode);
46 AWS_ELASTICACHE_API UpdateAction& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
47
48 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
49 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
50
51
53
56 inline const Aws::String& GetReplicationGroupId() const { return m_replicationGroupId; }
57 inline bool ReplicationGroupIdHasBeenSet() const { return m_replicationGroupIdHasBeenSet; }
58 template<typename ReplicationGroupIdT = Aws::String>
59 void SetReplicationGroupId(ReplicationGroupIdT&& value) { m_replicationGroupIdHasBeenSet = true; m_replicationGroupId = std::forward<ReplicationGroupIdT>(value); }
60 template<typename ReplicationGroupIdT = Aws::String>
61 UpdateAction& WithReplicationGroupId(ReplicationGroupIdT&& value) { SetReplicationGroupId(std::forward<ReplicationGroupIdT>(value)); return *this;}
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) { m_cacheClusterIdHasBeenSet = true; m_cacheClusterId = std::forward<CacheClusterIdT>(value); }
72 template<typename CacheClusterIdT = Aws::String>
73 UpdateAction& WithCacheClusterId(CacheClusterIdT&& value) { SetCacheClusterId(std::forward<CacheClusterIdT>(value)); return *this;}
75
77
80 inline const Aws::String& GetServiceUpdateName() const { return m_serviceUpdateName; }
81 inline bool ServiceUpdateNameHasBeenSet() const { return m_serviceUpdateNameHasBeenSet; }
82 template<typename ServiceUpdateNameT = Aws::String>
83 void SetServiceUpdateName(ServiceUpdateNameT&& value) { m_serviceUpdateNameHasBeenSet = true; m_serviceUpdateName = std::forward<ServiceUpdateNameT>(value); }
84 template<typename ServiceUpdateNameT = Aws::String>
85 UpdateAction& WithServiceUpdateName(ServiceUpdateNameT&& value) { SetServiceUpdateName(std::forward<ServiceUpdateNameT>(value)); return *this;}
87
89
92 inline const Aws::Utils::DateTime& GetServiceUpdateReleaseDate() const { return m_serviceUpdateReleaseDate; }
93 inline bool ServiceUpdateReleaseDateHasBeenSet() const { return m_serviceUpdateReleaseDateHasBeenSet; }
94 template<typename ServiceUpdateReleaseDateT = Aws::Utils::DateTime>
95 void SetServiceUpdateReleaseDate(ServiceUpdateReleaseDateT&& value) { m_serviceUpdateReleaseDateHasBeenSet = true; m_serviceUpdateReleaseDate = std::forward<ServiceUpdateReleaseDateT>(value); }
96 template<typename ServiceUpdateReleaseDateT = Aws::Utils::DateTime>
97 UpdateAction& WithServiceUpdateReleaseDate(ServiceUpdateReleaseDateT&& value) { SetServiceUpdateReleaseDate(std::forward<ServiceUpdateReleaseDateT>(value)); return *this;}
99
101
104 inline ServiceUpdateSeverity GetServiceUpdateSeverity() const { return m_serviceUpdateSeverity; }
105 inline bool ServiceUpdateSeverityHasBeenSet() const { return m_serviceUpdateSeverityHasBeenSet; }
106 inline void SetServiceUpdateSeverity(ServiceUpdateSeverity value) { m_serviceUpdateSeverityHasBeenSet = true; m_serviceUpdateSeverity = value; }
109
111
114 inline ServiceUpdateStatus GetServiceUpdateStatus() const { return m_serviceUpdateStatus; }
115 inline bool ServiceUpdateStatusHasBeenSet() const { return m_serviceUpdateStatusHasBeenSet; }
116 inline void SetServiceUpdateStatus(ServiceUpdateStatus value) { m_serviceUpdateStatusHasBeenSet = true; m_serviceUpdateStatus = value; }
119
121
127 inline const Aws::Utils::DateTime& GetServiceUpdateRecommendedApplyByDate() const { return m_serviceUpdateRecommendedApplyByDate; }
128 inline bool ServiceUpdateRecommendedApplyByDateHasBeenSet() const { return m_serviceUpdateRecommendedApplyByDateHasBeenSet; }
129 template<typename ServiceUpdateRecommendedApplyByDateT = Aws::Utils::DateTime>
130 void SetServiceUpdateRecommendedApplyByDate(ServiceUpdateRecommendedApplyByDateT&& value) { m_serviceUpdateRecommendedApplyByDateHasBeenSet = true; m_serviceUpdateRecommendedApplyByDate = std::forward<ServiceUpdateRecommendedApplyByDateT>(value); }
131 template<typename ServiceUpdateRecommendedApplyByDateT = Aws::Utils::DateTime>
132 UpdateAction& WithServiceUpdateRecommendedApplyByDate(ServiceUpdateRecommendedApplyByDateT&& value) { SetServiceUpdateRecommendedApplyByDate(std::forward<ServiceUpdateRecommendedApplyByDateT>(value)); return *this;}
134
136
139 inline ServiceUpdateType GetServiceUpdateType() const { return m_serviceUpdateType; }
140 inline bool ServiceUpdateTypeHasBeenSet() const { return m_serviceUpdateTypeHasBeenSet; }
141 inline void SetServiceUpdateType(ServiceUpdateType value) { m_serviceUpdateTypeHasBeenSet = true; m_serviceUpdateType = value; }
144
146
149 inline const Aws::Utils::DateTime& GetUpdateActionAvailableDate() const { return m_updateActionAvailableDate; }
150 inline bool UpdateActionAvailableDateHasBeenSet() const { return m_updateActionAvailableDateHasBeenSet; }
151 template<typename UpdateActionAvailableDateT = Aws::Utils::DateTime>
152 void SetUpdateActionAvailableDate(UpdateActionAvailableDateT&& value) { m_updateActionAvailableDateHasBeenSet = true; m_updateActionAvailableDate = std::forward<UpdateActionAvailableDateT>(value); }
153 template<typename UpdateActionAvailableDateT = Aws::Utils::DateTime>
154 UpdateAction& WithUpdateActionAvailableDate(UpdateActionAvailableDateT&& value) { SetUpdateActionAvailableDate(std::forward<UpdateActionAvailableDateT>(value)); return *this;}
156
158
161 inline UpdateActionStatus GetUpdateActionStatus() const { return m_updateActionStatus; }
162 inline bool UpdateActionStatusHasBeenSet() const { return m_updateActionStatusHasBeenSet; }
163 inline void SetUpdateActionStatus(UpdateActionStatus value) { m_updateActionStatusHasBeenSet = true; m_updateActionStatus = value; }
166
168
171 inline const Aws::String& GetNodesUpdated() const { return m_nodesUpdated; }
172 inline bool NodesUpdatedHasBeenSet() const { return m_nodesUpdatedHasBeenSet; }
173 template<typename NodesUpdatedT = Aws::String>
174 void SetNodesUpdated(NodesUpdatedT&& value) { m_nodesUpdatedHasBeenSet = true; m_nodesUpdated = std::forward<NodesUpdatedT>(value); }
175 template<typename NodesUpdatedT = Aws::String>
176 UpdateAction& WithNodesUpdated(NodesUpdatedT&& value) { SetNodesUpdated(std::forward<NodesUpdatedT>(value)); return *this;}
178
180
183 inline const Aws::Utils::DateTime& GetUpdateActionStatusModifiedDate() const { return m_updateActionStatusModifiedDate; }
184 inline bool UpdateActionStatusModifiedDateHasBeenSet() const { return m_updateActionStatusModifiedDateHasBeenSet; }
185 template<typename UpdateActionStatusModifiedDateT = Aws::Utils::DateTime>
186 void SetUpdateActionStatusModifiedDate(UpdateActionStatusModifiedDateT&& value) { m_updateActionStatusModifiedDateHasBeenSet = true; m_updateActionStatusModifiedDate = std::forward<UpdateActionStatusModifiedDateT>(value); }
187 template<typename UpdateActionStatusModifiedDateT = Aws::Utils::DateTime>
188 UpdateAction& WithUpdateActionStatusModifiedDate(UpdateActionStatusModifiedDateT&& value) { SetUpdateActionStatusModifiedDate(std::forward<UpdateActionStatusModifiedDateT>(value)); return *this;}
190
192
198 inline SlaMet GetSlaMet() const { return m_slaMet; }
199 inline bool SlaMetHasBeenSet() const { return m_slaMetHasBeenSet; }
200 inline void SetSlaMet(SlaMet value) { m_slaMetHasBeenSet = true; m_slaMet = value; }
201 inline UpdateAction& WithSlaMet(SlaMet value) { SetSlaMet(value); return *this;}
203
205
208 inline const Aws::Vector<NodeGroupUpdateStatus>& GetNodeGroupUpdateStatus() const { return m_nodeGroupUpdateStatus; }
209 inline bool NodeGroupUpdateStatusHasBeenSet() const { return m_nodeGroupUpdateStatusHasBeenSet; }
210 template<typename NodeGroupUpdateStatusT = Aws::Vector<NodeGroupUpdateStatus>>
211 void SetNodeGroupUpdateStatus(NodeGroupUpdateStatusT&& value) { m_nodeGroupUpdateStatusHasBeenSet = true; m_nodeGroupUpdateStatus = std::forward<NodeGroupUpdateStatusT>(value); }
212 template<typename NodeGroupUpdateStatusT = Aws::Vector<NodeGroupUpdateStatus>>
213 UpdateAction& WithNodeGroupUpdateStatus(NodeGroupUpdateStatusT&& value) { SetNodeGroupUpdateStatus(std::forward<NodeGroupUpdateStatusT>(value)); return *this;}
214 template<typename NodeGroupUpdateStatusT = NodeGroupUpdateStatus>
215 UpdateAction& AddNodeGroupUpdateStatus(NodeGroupUpdateStatusT&& value) { m_nodeGroupUpdateStatusHasBeenSet = true; m_nodeGroupUpdateStatus.emplace_back(std::forward<NodeGroupUpdateStatusT>(value)); return *this; }
217
219
222 inline const Aws::Vector<CacheNodeUpdateStatus>& GetCacheNodeUpdateStatus() const { return m_cacheNodeUpdateStatus; }
223 inline bool CacheNodeUpdateStatusHasBeenSet() const { return m_cacheNodeUpdateStatusHasBeenSet; }
224 template<typename CacheNodeUpdateStatusT = Aws::Vector<CacheNodeUpdateStatus>>
225 void SetCacheNodeUpdateStatus(CacheNodeUpdateStatusT&& value) { m_cacheNodeUpdateStatusHasBeenSet = true; m_cacheNodeUpdateStatus = std::forward<CacheNodeUpdateStatusT>(value); }
226 template<typename CacheNodeUpdateStatusT = Aws::Vector<CacheNodeUpdateStatus>>
227 UpdateAction& WithCacheNodeUpdateStatus(CacheNodeUpdateStatusT&& value) { SetCacheNodeUpdateStatus(std::forward<CacheNodeUpdateStatusT>(value)); return *this;}
228 template<typename CacheNodeUpdateStatusT = CacheNodeUpdateStatus>
229 UpdateAction& AddCacheNodeUpdateStatus(CacheNodeUpdateStatusT&& value) { m_cacheNodeUpdateStatusHasBeenSet = true; m_cacheNodeUpdateStatus.emplace_back(std::forward<CacheNodeUpdateStatusT>(value)); return *this; }
231
233
236 inline const Aws::String& GetEstimatedUpdateTime() const { return m_estimatedUpdateTime; }
237 inline bool EstimatedUpdateTimeHasBeenSet() const { return m_estimatedUpdateTimeHasBeenSet; }
238 template<typename EstimatedUpdateTimeT = Aws::String>
239 void SetEstimatedUpdateTime(EstimatedUpdateTimeT&& value) { m_estimatedUpdateTimeHasBeenSet = true; m_estimatedUpdateTime = std::forward<EstimatedUpdateTimeT>(value); }
240 template<typename EstimatedUpdateTimeT = Aws::String>
241 UpdateAction& WithEstimatedUpdateTime(EstimatedUpdateTimeT&& value) { SetEstimatedUpdateTime(std::forward<EstimatedUpdateTimeT>(value)); return *this;}
243
245
249 inline const Aws::String& GetEngine() const { return m_engine; }
250 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
251 template<typename EngineT = Aws::String>
252 void SetEngine(EngineT&& value) { m_engineHasBeenSet = true; m_engine = std::forward<EngineT>(value); }
253 template<typename EngineT = Aws::String>
254 UpdateAction& WithEngine(EngineT&& value) { SetEngine(std::forward<EngineT>(value)); return *this;}
256 private:
257
258 Aws::String m_replicationGroupId;
259 bool m_replicationGroupIdHasBeenSet = false;
260
261 Aws::String m_cacheClusterId;
262 bool m_cacheClusterIdHasBeenSet = false;
263
264 Aws::String m_serviceUpdateName;
265 bool m_serviceUpdateNameHasBeenSet = false;
266
267 Aws::Utils::DateTime m_serviceUpdateReleaseDate{};
268 bool m_serviceUpdateReleaseDateHasBeenSet = false;
269
271 bool m_serviceUpdateSeverityHasBeenSet = false;
272
274 bool m_serviceUpdateStatusHasBeenSet = false;
275
276 Aws::Utils::DateTime m_serviceUpdateRecommendedApplyByDate{};
277 bool m_serviceUpdateRecommendedApplyByDateHasBeenSet = false;
278
280 bool m_serviceUpdateTypeHasBeenSet = false;
281
282 Aws::Utils::DateTime m_updateActionAvailableDate{};
283 bool m_updateActionAvailableDateHasBeenSet = false;
284
286 bool m_updateActionStatusHasBeenSet = false;
287
288 Aws::String m_nodesUpdated;
289 bool m_nodesUpdatedHasBeenSet = false;
290
291 Aws::Utils::DateTime m_updateActionStatusModifiedDate{};
292 bool m_updateActionStatusModifiedDateHasBeenSet = false;
293
294 SlaMet m_slaMet{SlaMet::NOT_SET};
295 bool m_slaMetHasBeenSet = false;
296
297 Aws::Vector<NodeGroupUpdateStatus> m_nodeGroupUpdateStatus;
298 bool m_nodeGroupUpdateStatusHasBeenSet = false;
299
300 Aws::Vector<CacheNodeUpdateStatus> m_cacheNodeUpdateStatus;
301 bool m_cacheNodeUpdateStatusHasBeenSet = false;
302
303 Aws::String m_estimatedUpdateTime;
304 bool m_estimatedUpdateTimeHasBeenSet = false;
305
306 Aws::String m_engine;
307 bool m_engineHasBeenSet = false;
308 };
309
310} // namespace Model
311} // namespace ElastiCache
312} // 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