AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ServiceUpdate.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 <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
37 {
38 public:
39 AWS_ELASTICACHE_API ServiceUpdate() = default;
40 AWS_ELASTICACHE_API ServiceUpdate(const Aws::Utils::Xml::XmlNode& xmlNode);
41 AWS_ELASTICACHE_API ServiceUpdate& 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
46
48
51 inline const Aws::String& GetServiceUpdateName() const { return m_serviceUpdateName; }
52 inline bool ServiceUpdateNameHasBeenSet() const { return m_serviceUpdateNameHasBeenSet; }
53 template<typename ServiceUpdateNameT = Aws::String>
54 void SetServiceUpdateName(ServiceUpdateNameT&& value) { m_serviceUpdateNameHasBeenSet = true; m_serviceUpdateName = std::forward<ServiceUpdateNameT>(value); }
55 template<typename ServiceUpdateNameT = Aws::String>
56 ServiceUpdate& WithServiceUpdateName(ServiceUpdateNameT&& value) { SetServiceUpdateName(std::forward<ServiceUpdateNameT>(value)); return *this;}
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) { m_serviceUpdateReleaseDateHasBeenSet = true; m_serviceUpdateReleaseDate = std::forward<ServiceUpdateReleaseDateT>(value); }
67 template<typename ServiceUpdateReleaseDateT = Aws::Utils::DateTime>
68 ServiceUpdate& WithServiceUpdateReleaseDate(ServiceUpdateReleaseDateT&& value) { SetServiceUpdateReleaseDate(std::forward<ServiceUpdateReleaseDateT>(value)); return *this;}
70
72
75 inline const Aws::Utils::DateTime& GetServiceUpdateEndDate() const { return m_serviceUpdateEndDate; }
76 inline bool ServiceUpdateEndDateHasBeenSet() const { return m_serviceUpdateEndDateHasBeenSet; }
77 template<typename ServiceUpdateEndDateT = Aws::Utils::DateTime>
78 void SetServiceUpdateEndDate(ServiceUpdateEndDateT&& value) { m_serviceUpdateEndDateHasBeenSet = true; m_serviceUpdateEndDate = std::forward<ServiceUpdateEndDateT>(value); }
79 template<typename ServiceUpdateEndDateT = Aws::Utils::DateTime>
80 ServiceUpdate& WithServiceUpdateEndDate(ServiceUpdateEndDateT&& value) { SetServiceUpdateEndDate(std::forward<ServiceUpdateEndDateT>(value)); return *this;}
82
84
87 inline ServiceUpdateSeverity GetServiceUpdateSeverity() const { return m_serviceUpdateSeverity; }
88 inline bool ServiceUpdateSeverityHasBeenSet() const { return m_serviceUpdateSeverityHasBeenSet; }
89 inline void SetServiceUpdateSeverity(ServiceUpdateSeverity value) { m_serviceUpdateSeverityHasBeenSet = true; m_serviceUpdateSeverity = value; }
92
94
100 inline const Aws::Utils::DateTime& GetServiceUpdateRecommendedApplyByDate() const { return m_serviceUpdateRecommendedApplyByDate; }
101 inline bool ServiceUpdateRecommendedApplyByDateHasBeenSet() const { return m_serviceUpdateRecommendedApplyByDateHasBeenSet; }
102 template<typename ServiceUpdateRecommendedApplyByDateT = Aws::Utils::DateTime>
103 void SetServiceUpdateRecommendedApplyByDate(ServiceUpdateRecommendedApplyByDateT&& value) { m_serviceUpdateRecommendedApplyByDateHasBeenSet = true; m_serviceUpdateRecommendedApplyByDate = std::forward<ServiceUpdateRecommendedApplyByDateT>(value); }
104 template<typename ServiceUpdateRecommendedApplyByDateT = Aws::Utils::DateTime>
105 ServiceUpdate& WithServiceUpdateRecommendedApplyByDate(ServiceUpdateRecommendedApplyByDateT&& value) { SetServiceUpdateRecommendedApplyByDate(std::forward<ServiceUpdateRecommendedApplyByDateT>(value)); return *this;}
107
109
112 inline ServiceUpdateStatus GetServiceUpdateStatus() const { return m_serviceUpdateStatus; }
113 inline bool ServiceUpdateStatusHasBeenSet() const { return m_serviceUpdateStatusHasBeenSet; }
114 inline void SetServiceUpdateStatus(ServiceUpdateStatus value) { m_serviceUpdateStatusHasBeenSet = true; m_serviceUpdateStatus = value; }
117
119
122 inline const Aws::String& GetServiceUpdateDescription() const { return m_serviceUpdateDescription; }
123 inline bool ServiceUpdateDescriptionHasBeenSet() const { return m_serviceUpdateDescriptionHasBeenSet; }
124 template<typename ServiceUpdateDescriptionT = Aws::String>
125 void SetServiceUpdateDescription(ServiceUpdateDescriptionT&& value) { m_serviceUpdateDescriptionHasBeenSet = true; m_serviceUpdateDescription = std::forward<ServiceUpdateDescriptionT>(value); }
126 template<typename ServiceUpdateDescriptionT = Aws::String>
127 ServiceUpdate& WithServiceUpdateDescription(ServiceUpdateDescriptionT&& value) { SetServiceUpdateDescription(std::forward<ServiceUpdateDescriptionT>(value)); return *this;}
129
131
134 inline ServiceUpdateType GetServiceUpdateType() const { return m_serviceUpdateType; }
135 inline bool ServiceUpdateTypeHasBeenSet() const { return m_serviceUpdateTypeHasBeenSet; }
136 inline void SetServiceUpdateType(ServiceUpdateType value) { m_serviceUpdateTypeHasBeenSet = true; m_serviceUpdateType = value; }
139
141
145 inline const Aws::String& GetEngine() const { return m_engine; }
146 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
147 template<typename EngineT = Aws::String>
148 void SetEngine(EngineT&& value) { m_engineHasBeenSet = true; m_engine = std::forward<EngineT>(value); }
149 template<typename EngineT = Aws::String>
150 ServiceUpdate& WithEngine(EngineT&& value) { SetEngine(std::forward<EngineT>(value)); return *this;}
152
154
158 inline const Aws::String& GetEngineVersion() const { return m_engineVersion; }
159 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
160 template<typename EngineVersionT = Aws::String>
161 void SetEngineVersion(EngineVersionT&& value) { m_engineVersionHasBeenSet = true; m_engineVersion = std::forward<EngineVersionT>(value); }
162 template<typename EngineVersionT = Aws::String>
163 ServiceUpdate& WithEngineVersion(EngineVersionT&& value) { SetEngineVersion(std::forward<EngineVersionT>(value)); return *this;}
165
167
171 inline bool GetAutoUpdateAfterRecommendedApplyByDate() const { return m_autoUpdateAfterRecommendedApplyByDate; }
172 inline bool AutoUpdateAfterRecommendedApplyByDateHasBeenSet() const { return m_autoUpdateAfterRecommendedApplyByDateHasBeenSet; }
173 inline void SetAutoUpdateAfterRecommendedApplyByDate(bool value) { m_autoUpdateAfterRecommendedApplyByDateHasBeenSet = true; m_autoUpdateAfterRecommendedApplyByDate = value; }
176
178
181 inline const Aws::String& GetEstimatedUpdateTime() const { return m_estimatedUpdateTime; }
182 inline bool EstimatedUpdateTimeHasBeenSet() const { return m_estimatedUpdateTimeHasBeenSet; }
183 template<typename EstimatedUpdateTimeT = Aws::String>
184 void SetEstimatedUpdateTime(EstimatedUpdateTimeT&& value) { m_estimatedUpdateTimeHasBeenSet = true; m_estimatedUpdateTime = std::forward<EstimatedUpdateTimeT>(value); }
185 template<typename EstimatedUpdateTimeT = Aws::String>
186 ServiceUpdate& WithEstimatedUpdateTime(EstimatedUpdateTimeT&& value) { SetEstimatedUpdateTime(std::forward<EstimatedUpdateTimeT>(value)); return *this;}
188 private:
189
190 Aws::String m_serviceUpdateName;
191 bool m_serviceUpdateNameHasBeenSet = false;
192
193 Aws::Utils::DateTime m_serviceUpdateReleaseDate{};
194 bool m_serviceUpdateReleaseDateHasBeenSet = false;
195
196 Aws::Utils::DateTime m_serviceUpdateEndDate{};
197 bool m_serviceUpdateEndDateHasBeenSet = false;
198
200 bool m_serviceUpdateSeverityHasBeenSet = false;
201
202 Aws::Utils::DateTime m_serviceUpdateRecommendedApplyByDate{};
203 bool m_serviceUpdateRecommendedApplyByDateHasBeenSet = false;
204
206 bool m_serviceUpdateStatusHasBeenSet = false;
207
208 Aws::String m_serviceUpdateDescription;
209 bool m_serviceUpdateDescriptionHasBeenSet = false;
210
212 bool m_serviceUpdateTypeHasBeenSet = false;
213
214 Aws::String m_engine;
215 bool m_engineHasBeenSet = false;
216
217 Aws::String m_engineVersion;
218 bool m_engineVersionHasBeenSet = false;
219
220 bool m_autoUpdateAfterRecommendedApplyByDate{false};
221 bool m_autoUpdateAfterRecommendedApplyByDateHasBeenSet = false;
222
223 Aws::String m_estimatedUpdateTime;
224 bool m_estimatedUpdateTimeHasBeenSet = false;
225 };
226
227} // namespace Model
228} // namespace ElastiCache
229} // 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