AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
ServiceUpdate.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/crt/cbor/Cbor.h>
10#include <aws/memorydb/MemoryDB_EXPORTS.h>
11#include <aws/memorydb/model/ServiceUpdateStatus.h>
12#include <aws/memorydb/model/ServiceUpdateType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Cbor {
19class CborValue;
20} // namespace Cbor
21} // namespace Utils
22namespace MemoryDB {
23namespace Model {
24
32 public:
33 AWS_MEMORYDB_API ServiceUpdate() = default;
34 AWS_MEMORYDB_API ServiceUpdate(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_MEMORYDB_API ServiceUpdate& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_MEMORYDB_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
37
39
42 inline const Aws::String& GetClusterName() const { return m_clusterName; }
43 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
44 template <typename ClusterNameT = Aws::String>
45 void SetClusterName(ClusterNameT&& value) {
46 m_clusterNameHasBeenSet = true;
47 m_clusterName = std::forward<ClusterNameT>(value);
48 }
49 template <typename ClusterNameT = Aws::String>
50 ServiceUpdate& WithClusterName(ClusterNameT&& value) {
51 SetClusterName(std::forward<ClusterNameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetServiceUpdateName() const { return m_serviceUpdateName; }
61 inline bool ServiceUpdateNameHasBeenSet() const { return m_serviceUpdateNameHasBeenSet; }
62 template <typename ServiceUpdateNameT = Aws::String>
63 void SetServiceUpdateName(ServiceUpdateNameT&& value) {
64 m_serviceUpdateNameHasBeenSet = true;
65 m_serviceUpdateName = std::forward<ServiceUpdateNameT>(value);
66 }
67 template <typename ServiceUpdateNameT = Aws::String>
68 ServiceUpdate& WithServiceUpdateName(ServiceUpdateNameT&& value) {
69 SetServiceUpdateName(std::forward<ServiceUpdateNameT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::Utils::DateTime& GetReleaseDate() const { return m_releaseDate; }
79 inline bool ReleaseDateHasBeenSet() const { return m_releaseDateHasBeenSet; }
80 template <typename ReleaseDateT = Aws::Utils::DateTime>
81 void SetReleaseDate(ReleaseDateT&& value) {
82 m_releaseDateHasBeenSet = true;
83 m_releaseDate = std::forward<ReleaseDateT>(value);
84 }
85 template <typename ReleaseDateT = Aws::Utils::DateTime>
86 ServiceUpdate& WithReleaseDate(ReleaseDateT&& value) {
87 SetReleaseDate(std::forward<ReleaseDateT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetDescription() const { return m_description; }
97 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
98 template <typename DescriptionT = Aws::String>
99 void SetDescription(DescriptionT&& value) {
100 m_descriptionHasBeenSet = true;
101 m_description = std::forward<DescriptionT>(value);
102 }
103 template <typename DescriptionT = Aws::String>
104 ServiceUpdate& WithDescription(DescriptionT&& value) {
105 SetDescription(std::forward<DescriptionT>(value));
106 return *this;
107 }
109
111
114 inline ServiceUpdateStatus GetStatus() const { return m_status; }
115 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
116 inline void SetStatus(ServiceUpdateStatus value) {
117 m_statusHasBeenSet = true;
118 m_status = value;
119 }
121 SetStatus(value);
122 return *this;
123 }
125
127
130 inline ServiceUpdateType GetType() const { return m_type; }
131 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
132 inline void SetType(ServiceUpdateType value) {
133 m_typeHasBeenSet = true;
134 m_type = value;
135 }
137 SetType(value);
138 return *this;
139 }
141
143
146 inline const Aws::String& GetEngine() const { return m_engine; }
147 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
148 template <typename EngineT = Aws::String>
149 void SetEngine(EngineT&& value) {
150 m_engineHasBeenSet = true;
151 m_engine = std::forward<EngineT>(value);
152 }
153 template <typename EngineT = Aws::String>
154 ServiceUpdate& WithEngine(EngineT&& value) {
155 SetEngine(std::forward<EngineT>(value));
156 return *this;
157 }
159
161
164 inline const Aws::String& GetNodesUpdated() const { return m_nodesUpdated; }
165 inline bool NodesUpdatedHasBeenSet() const { return m_nodesUpdatedHasBeenSet; }
166 template <typename NodesUpdatedT = Aws::String>
167 void SetNodesUpdated(NodesUpdatedT&& value) {
168 m_nodesUpdatedHasBeenSet = true;
169 m_nodesUpdated = std::forward<NodesUpdatedT>(value);
170 }
171 template <typename NodesUpdatedT = Aws::String>
172 ServiceUpdate& WithNodesUpdated(NodesUpdatedT&& value) {
173 SetNodesUpdated(std::forward<NodesUpdatedT>(value));
174 return *this;
175 }
177
179
182 inline const Aws::Utils::DateTime& GetAutoUpdateStartDate() const { return m_autoUpdateStartDate; }
183 inline bool AutoUpdateStartDateHasBeenSet() const { return m_autoUpdateStartDateHasBeenSet; }
184 template <typename AutoUpdateStartDateT = Aws::Utils::DateTime>
185 void SetAutoUpdateStartDate(AutoUpdateStartDateT&& value) {
186 m_autoUpdateStartDateHasBeenSet = true;
187 m_autoUpdateStartDate = std::forward<AutoUpdateStartDateT>(value);
188 }
189 template <typename AutoUpdateStartDateT = Aws::Utils::DateTime>
190 ServiceUpdate& WithAutoUpdateStartDate(AutoUpdateStartDateT&& value) {
191 SetAutoUpdateStartDate(std::forward<AutoUpdateStartDateT>(value));
192 return *this;
193 }
195 private:
196 Aws::String m_clusterName;
197
198 Aws::String m_serviceUpdateName;
199
200 Aws::Utils::DateTime m_releaseDate{};
201
202 Aws::String m_description;
203
205
207
208 Aws::String m_engine;
209
210 Aws::String m_nodesUpdated;
211
212 Aws::Utils::DateTime m_autoUpdateStartDate{};
213 bool m_clusterNameHasBeenSet = false;
214 bool m_serviceUpdateNameHasBeenSet = false;
215 bool m_releaseDateHasBeenSet = false;
216 bool m_descriptionHasBeenSet = false;
217 bool m_statusHasBeenSet = false;
218 bool m_typeHasBeenSet = false;
219 bool m_engineHasBeenSet = false;
220 bool m_nodesUpdatedHasBeenSet = false;
221 bool m_autoUpdateStartDateHasBeenSet = false;
222};
223
224} // namespace Model
225} // namespace MemoryDB
226} // namespace Aws
ServiceUpdate & WithNodesUpdated(NodesUpdatedT &&value)
const Aws::Utils::DateTime & GetReleaseDate() const
void SetClusterName(ClusterNameT &&value)
void SetAutoUpdateStartDate(AutoUpdateStartDateT &&value)
ServiceUpdate & WithStatus(ServiceUpdateStatus value)
ServiceUpdate & WithServiceUpdateName(ServiceUpdateNameT &&value)
AWS_MEMORYDB_API ServiceUpdate()=default
ServiceUpdateType GetType() const
void SetDescription(DescriptionT &&value)
ServiceUpdate & WithEngine(EngineT &&value)
const Aws::String & GetServiceUpdateName() const
void SetServiceUpdateName(ServiceUpdateNameT &&value)
void SetType(ServiceUpdateType value)
ServiceUpdate & WithType(ServiceUpdateType value)
const Aws::String & GetDescription() const
AWS_MEMORYDB_API ServiceUpdate(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
ServiceUpdateStatus GetStatus() const
void SetNodesUpdated(NodesUpdatedT &&value)
const Aws::String & GetEngine() const
AWS_MEMORYDB_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
void SetStatus(ServiceUpdateStatus value)
ServiceUpdate & WithClusterName(ClusterNameT &&value)
void SetReleaseDate(ReleaseDateT &&value)
const Aws::String & GetClusterName() const
ServiceUpdate & WithReleaseDate(ReleaseDateT &&value)
ServiceUpdate & WithAutoUpdateStartDate(AutoUpdateStartDateT &&value)
ServiceUpdate & WithDescription(DescriptionT &&value)
const Aws::Utils::DateTime & GetAutoUpdateStartDate() const
const Aws::String & GetNodesUpdated() const
AWS_MEMORYDB_API ServiceUpdate & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String