AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ServiceUpdate.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/elasticache/ElastiCache_EXPORTS.h>
11#include <aws/elasticache/model/ServiceUpdateSeverity.h>
12#include <aws/elasticache/model/ServiceUpdateStatus.h>
13#include <aws/elasticache/model/ServiceUpdateType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Xml {
20class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace ElastiCache {
24namespace Model {
25
33 public:
34 AWS_ELASTICACHE_API ServiceUpdate() = default;
35 AWS_ELASTICACHE_API ServiceUpdate(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_ELASTICACHE_API ServiceUpdate& 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& GetServiceUpdateName() const { return m_serviceUpdateName; }
46 inline bool ServiceUpdateNameHasBeenSet() const { return m_serviceUpdateNameHasBeenSet; }
47 template <typename ServiceUpdateNameT = Aws::String>
48 void SetServiceUpdateName(ServiceUpdateNameT&& value) {
49 m_serviceUpdateNameHasBeenSet = true;
50 m_serviceUpdateName = std::forward<ServiceUpdateNameT>(value);
51 }
52 template <typename ServiceUpdateNameT = Aws::String>
53 ServiceUpdate& WithServiceUpdateName(ServiceUpdateNameT&& value) {
54 SetServiceUpdateName(std::forward<ServiceUpdateNameT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::Utils::DateTime& GetServiceUpdateReleaseDate() const { return m_serviceUpdateReleaseDate; }
64 inline bool ServiceUpdateReleaseDateHasBeenSet() const { return m_serviceUpdateReleaseDateHasBeenSet; }
65 template <typename ServiceUpdateReleaseDateT = Aws::Utils::DateTime>
66 void SetServiceUpdateReleaseDate(ServiceUpdateReleaseDateT&& value) {
67 m_serviceUpdateReleaseDateHasBeenSet = true;
68 m_serviceUpdateReleaseDate = std::forward<ServiceUpdateReleaseDateT>(value);
69 }
70 template <typename ServiceUpdateReleaseDateT = Aws::Utils::DateTime>
71 ServiceUpdate& WithServiceUpdateReleaseDate(ServiceUpdateReleaseDateT&& value) {
72 SetServiceUpdateReleaseDate(std::forward<ServiceUpdateReleaseDateT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::Utils::DateTime& GetServiceUpdateEndDate() const { return m_serviceUpdateEndDate; }
82 inline bool ServiceUpdateEndDateHasBeenSet() const { return m_serviceUpdateEndDateHasBeenSet; }
83 template <typename ServiceUpdateEndDateT = Aws::Utils::DateTime>
84 void SetServiceUpdateEndDate(ServiceUpdateEndDateT&& value) {
85 m_serviceUpdateEndDateHasBeenSet = true;
86 m_serviceUpdateEndDate = std::forward<ServiceUpdateEndDateT>(value);
87 }
88 template <typename ServiceUpdateEndDateT = Aws::Utils::DateTime>
89 ServiceUpdate& WithServiceUpdateEndDate(ServiceUpdateEndDateT&& value) {
90 SetServiceUpdateEndDate(std::forward<ServiceUpdateEndDateT>(value));
91 return *this;
92 }
94
96
99 inline ServiceUpdateSeverity GetServiceUpdateSeverity() const { return m_serviceUpdateSeverity; }
100 inline bool ServiceUpdateSeverityHasBeenSet() const { return m_serviceUpdateSeverityHasBeenSet; }
102 m_serviceUpdateSeverityHasBeenSet = true;
103 m_serviceUpdateSeverity = value;
104 }
107 return *this;
108 }
110
112
118 inline const Aws::Utils::DateTime& GetServiceUpdateRecommendedApplyByDate() const { return m_serviceUpdateRecommendedApplyByDate; }
119 inline bool ServiceUpdateRecommendedApplyByDateHasBeenSet() const { return m_serviceUpdateRecommendedApplyByDateHasBeenSet; }
120 template <typename ServiceUpdateRecommendedApplyByDateT = Aws::Utils::DateTime>
121 void SetServiceUpdateRecommendedApplyByDate(ServiceUpdateRecommendedApplyByDateT&& value) {
122 m_serviceUpdateRecommendedApplyByDateHasBeenSet = true;
123 m_serviceUpdateRecommendedApplyByDate = std::forward<ServiceUpdateRecommendedApplyByDateT>(value);
124 }
125 template <typename ServiceUpdateRecommendedApplyByDateT = Aws::Utils::DateTime>
126 ServiceUpdate& WithServiceUpdateRecommendedApplyByDate(ServiceUpdateRecommendedApplyByDateT&& value) {
127 SetServiceUpdateRecommendedApplyByDate(std::forward<ServiceUpdateRecommendedApplyByDateT>(value));
128 return *this;
129 }
131
133
136 inline ServiceUpdateStatus GetServiceUpdateStatus() const { return m_serviceUpdateStatus; }
137 inline bool ServiceUpdateStatusHasBeenSet() const { return m_serviceUpdateStatusHasBeenSet; }
139 m_serviceUpdateStatusHasBeenSet = true;
140 m_serviceUpdateStatus = value;
141 }
144 return *this;
145 }
147
149
152 inline const Aws::String& GetServiceUpdateDescription() const { return m_serviceUpdateDescription; }
153 inline bool ServiceUpdateDescriptionHasBeenSet() const { return m_serviceUpdateDescriptionHasBeenSet; }
154 template <typename ServiceUpdateDescriptionT = Aws::String>
155 void SetServiceUpdateDescription(ServiceUpdateDescriptionT&& value) {
156 m_serviceUpdateDescriptionHasBeenSet = true;
157 m_serviceUpdateDescription = std::forward<ServiceUpdateDescriptionT>(value);
158 }
159 template <typename ServiceUpdateDescriptionT = Aws::String>
160 ServiceUpdate& WithServiceUpdateDescription(ServiceUpdateDescriptionT&& value) {
161 SetServiceUpdateDescription(std::forward<ServiceUpdateDescriptionT>(value));
162 return *this;
163 }
165
167
170 inline ServiceUpdateType GetServiceUpdateType() const { return m_serviceUpdateType; }
171 inline bool ServiceUpdateTypeHasBeenSet() const { return m_serviceUpdateTypeHasBeenSet; }
173 m_serviceUpdateTypeHasBeenSet = true;
174 m_serviceUpdateType = value;
175 }
178 return *this;
179 }
181
183
187 inline const Aws::String& GetEngine() const { return m_engine; }
188 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
189 template <typename EngineT = Aws::String>
190 void SetEngine(EngineT&& value) {
191 m_engineHasBeenSet = true;
192 m_engine = std::forward<EngineT>(value);
193 }
194 template <typename EngineT = Aws::String>
195 ServiceUpdate& WithEngine(EngineT&& value) {
196 SetEngine(std::forward<EngineT>(value));
197 return *this;
198 }
200
202
206 inline const Aws::String& GetEngineVersion() const { return m_engineVersion; }
207 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
208 template <typename EngineVersionT = Aws::String>
209 void SetEngineVersion(EngineVersionT&& value) {
210 m_engineVersionHasBeenSet = true;
211 m_engineVersion = std::forward<EngineVersionT>(value);
212 }
213 template <typename EngineVersionT = Aws::String>
214 ServiceUpdate& WithEngineVersion(EngineVersionT&& value) {
215 SetEngineVersion(std::forward<EngineVersionT>(value));
216 return *this;
217 }
219
221
225 inline bool GetAutoUpdateAfterRecommendedApplyByDate() const { return m_autoUpdateAfterRecommendedApplyByDate; }
226 inline bool AutoUpdateAfterRecommendedApplyByDateHasBeenSet() const { return m_autoUpdateAfterRecommendedApplyByDateHasBeenSet; }
228 m_autoUpdateAfterRecommendedApplyByDateHasBeenSet = true;
229 m_autoUpdateAfterRecommendedApplyByDate = value;
230 }
233 return *this;
234 }
236
238
241 inline const Aws::String& GetEstimatedUpdateTime() const { return m_estimatedUpdateTime; }
242 inline bool EstimatedUpdateTimeHasBeenSet() const { return m_estimatedUpdateTimeHasBeenSet; }
243 template <typename EstimatedUpdateTimeT = Aws::String>
244 void SetEstimatedUpdateTime(EstimatedUpdateTimeT&& value) {
245 m_estimatedUpdateTimeHasBeenSet = true;
246 m_estimatedUpdateTime = std::forward<EstimatedUpdateTimeT>(value);
247 }
248 template <typename EstimatedUpdateTimeT = Aws::String>
249 ServiceUpdate& WithEstimatedUpdateTime(EstimatedUpdateTimeT&& value) {
250 SetEstimatedUpdateTime(std::forward<EstimatedUpdateTimeT>(value));
251 return *this;
252 }
254 private:
255 Aws::String m_serviceUpdateName;
256
257 Aws::Utils::DateTime m_serviceUpdateReleaseDate{};
258
259 Aws::Utils::DateTime m_serviceUpdateEndDate{};
260
262
263 Aws::Utils::DateTime m_serviceUpdateRecommendedApplyByDate{};
264
266
267 Aws::String m_serviceUpdateDescription;
268
270
271 Aws::String m_engine;
272
273 Aws::String m_engineVersion;
274
275 bool m_autoUpdateAfterRecommendedApplyByDate{false};
276
277 Aws::String m_estimatedUpdateTime;
278 bool m_serviceUpdateNameHasBeenSet = false;
279 bool m_serviceUpdateReleaseDateHasBeenSet = false;
280 bool m_serviceUpdateEndDateHasBeenSet = false;
281 bool m_serviceUpdateSeverityHasBeenSet = false;
282 bool m_serviceUpdateRecommendedApplyByDateHasBeenSet = false;
283 bool m_serviceUpdateStatusHasBeenSet = false;
284 bool m_serviceUpdateDescriptionHasBeenSet = false;
285 bool m_serviceUpdateTypeHasBeenSet = false;
286 bool m_engineHasBeenSet = false;
287 bool m_engineVersionHasBeenSet = false;
288 bool m_autoUpdateAfterRecommendedApplyByDateHasBeenSet = false;
289 bool m_estimatedUpdateTimeHasBeenSet = false;
290};
291
292} // namespace Model
293} // namespace ElastiCache
294} // namespace Aws
ServiceUpdate & WithServiceUpdateDescription(ServiceUpdateDescriptionT &&value)
void SetAutoUpdateAfterRecommendedApplyByDate(bool value)
void SetServiceUpdateSeverity(ServiceUpdateSeverity value)
const Aws::String & GetEstimatedUpdateTime() const
void SetServiceUpdateName(ServiceUpdateNameT &&value)
ServiceUpdate & WithServiceUpdateEndDate(ServiceUpdateEndDateT &&value)
AWS_ELASTICACHE_API ServiceUpdate(const Aws::Utils::Xml::XmlNode &xmlNode)
ServiceUpdateType GetServiceUpdateType() const
void SetServiceUpdateDescription(ServiceUpdateDescriptionT &&value)
ServiceUpdate & WithEngineVersion(EngineVersionT &&value)
const Aws::Utils::DateTime & GetServiceUpdateRecommendedApplyByDate() const
ServiceUpdate & WithEngine(EngineT &&value)
const Aws::String & GetEngineVersion() const
bool AutoUpdateAfterRecommendedApplyByDateHasBeenSet() const
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::Utils::DateTime & GetServiceUpdateReleaseDate() const
void SetServiceUpdateStatus(ServiceUpdateStatus value)
ServiceUpdateSeverity GetServiceUpdateSeverity() const
void SetServiceUpdateRecommendedApplyByDate(ServiceUpdateRecommendedApplyByDateT &&value)
void SetServiceUpdateType(ServiceUpdateType value)
const Aws::String & GetEngine() const
ServiceUpdate & WithServiceUpdateReleaseDate(ServiceUpdateReleaseDateT &&value)
ServiceUpdate & WithServiceUpdateName(ServiceUpdateNameT &&value)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ServiceUpdate & WithEstimatedUpdateTime(EstimatedUpdateTimeT &&value)
AWS_ELASTICACHE_API ServiceUpdate & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetServiceUpdateDescription() const
ServiceUpdate & WithServiceUpdateSeverity(ServiceUpdateSeverity value)
AWS_ELASTICACHE_API ServiceUpdate()=default
void SetEstimatedUpdateTime(EstimatedUpdateTimeT &&value)
ServiceUpdate & WithServiceUpdateStatus(ServiceUpdateStatus value)
const Aws::Utils::DateTime & GetServiceUpdateEndDate() const
void SetEngineVersion(EngineVersionT &&value)
ServiceUpdateStatus GetServiceUpdateStatus() const
ServiceUpdate & WithServiceUpdateType(ServiceUpdateType value)
void SetServiceUpdateReleaseDate(ServiceUpdateReleaseDateT &&value)
void SetServiceUpdateEndDate(ServiceUpdateEndDateT &&value)
ServiceUpdate & WithServiceUpdateRecommendedApplyByDate(ServiceUpdateRecommendedApplyByDateT &&value)
const Aws::String & GetServiceUpdateName() const
ServiceUpdate & WithAutoUpdateAfterRecommendedApplyByDate(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream