AWS SDK for C++

AWS SDK for C++ Version 1.11.910

Loading...
Searching...
No Matches
ChangeProgressStatusDetails.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/opensearch/OpenSearchService_EXPORTS.h>
11#include <aws/opensearch/model/ChangeProgressStage.h>
12#include <aws/opensearch/model/ConfigChangeStatus.h>
13#include <aws/opensearch/model/InitiatedBy.h>
14#include <aws/opensearch/model/OverallChangeStatus.h>
15#include <aws/opensearch/model/ValidationFailure.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace OpenSearchService {
27namespace Model {
28
36 public:
37 AWS_OPENSEARCHSERVICE_API ChangeProgressStatusDetails() = default;
38 AWS_OPENSEARCHSERVICE_API ChangeProgressStatusDetails(Aws::Utils::Json::JsonView jsonValue);
40 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
47 inline const Aws::String& GetChangeId() const { return m_changeId; }
48 inline bool ChangeIdHasBeenSet() const { return m_changeIdHasBeenSet; }
49 template <typename ChangeIdT = Aws::String>
50 void SetChangeId(ChangeIdT&& value) {
51 m_changeIdHasBeenSet = true;
52 m_changeId = std::forward<ChangeIdT>(value);
53 }
54 template <typename ChangeIdT = Aws::String>
56 SetChangeId(std::forward<ChangeIdT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
66 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
67 template <typename StartTimeT = Aws::Utils::DateTime>
68 void SetStartTime(StartTimeT&& value) {
69 m_startTimeHasBeenSet = true;
70 m_startTime = std::forward<StartTimeT>(value);
71 }
72 template <typename StartTimeT = Aws::Utils::DateTime>
74 SetStartTime(std::forward<StartTimeT>(value));
75 return *this;
76 }
78
80
83 inline OverallChangeStatus GetStatus() const { return m_status; }
84 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
85 inline void SetStatus(OverallChangeStatus value) {
86 m_statusHasBeenSet = true;
87 m_status = value;
88 }
90 SetStatus(value);
91 return *this;
92 }
94
96
100 inline const Aws::Vector<Aws::String>& GetPendingProperties() const { return m_pendingProperties; }
101 inline bool PendingPropertiesHasBeenSet() const { return m_pendingPropertiesHasBeenSet; }
102 template <typename PendingPropertiesT = Aws::Vector<Aws::String>>
103 void SetPendingProperties(PendingPropertiesT&& value) {
104 m_pendingPropertiesHasBeenSet = true;
105 m_pendingProperties = std::forward<PendingPropertiesT>(value);
106 }
107 template <typename PendingPropertiesT = Aws::Vector<Aws::String>>
109 SetPendingProperties(std::forward<PendingPropertiesT>(value));
110 return *this;
111 }
112 template <typename PendingPropertiesT = Aws::String>
114 m_pendingPropertiesHasBeenSet = true;
115 m_pendingProperties.emplace_back(std::forward<PendingPropertiesT>(value));
116 return *this;
117 }
119
121
125 inline const Aws::Vector<Aws::String>& GetCompletedProperties() const { return m_completedProperties; }
126 inline bool CompletedPropertiesHasBeenSet() const { return m_completedPropertiesHasBeenSet; }
127 template <typename CompletedPropertiesT = Aws::Vector<Aws::String>>
128 void SetCompletedProperties(CompletedPropertiesT&& value) {
129 m_completedPropertiesHasBeenSet = true;
130 m_completedProperties = std::forward<CompletedPropertiesT>(value);
131 }
132 template <typename CompletedPropertiesT = Aws::Vector<Aws::String>>
134 SetCompletedProperties(std::forward<CompletedPropertiesT>(value));
135 return *this;
136 }
137 template <typename CompletedPropertiesT = Aws::String>
139 m_completedPropertiesHasBeenSet = true;
140 m_completedProperties.emplace_back(std::forward<CompletedPropertiesT>(value));
141 return *this;
142 }
144
146
149 inline int GetTotalNumberOfStages() const { return m_totalNumberOfStages; }
150 inline bool TotalNumberOfStagesHasBeenSet() const { return m_totalNumberOfStagesHasBeenSet; }
151 inline void SetTotalNumberOfStages(int value) {
152 m_totalNumberOfStagesHasBeenSet = true;
153 m_totalNumberOfStages = value;
154 }
157 return *this;
158 }
160
162
166 inline const Aws::Vector<ChangeProgressStage>& GetChangeProgressStages() const { return m_changeProgressStages; }
167 inline bool ChangeProgressStagesHasBeenSet() const { return m_changeProgressStagesHasBeenSet; }
168 template <typename ChangeProgressStagesT = Aws::Vector<ChangeProgressStage>>
169 void SetChangeProgressStages(ChangeProgressStagesT&& value) {
170 m_changeProgressStagesHasBeenSet = true;
171 m_changeProgressStages = std::forward<ChangeProgressStagesT>(value);
172 }
173 template <typename ChangeProgressStagesT = Aws::Vector<ChangeProgressStage>>
175 SetChangeProgressStages(std::forward<ChangeProgressStagesT>(value));
176 return *this;
177 }
178 template <typename ChangeProgressStagesT = ChangeProgressStage>
179 ChangeProgressStatusDetails& AddChangeProgressStages(ChangeProgressStagesT&& value) {
180 m_changeProgressStagesHasBeenSet = true;
181 m_changeProgressStages.emplace_back(std::forward<ChangeProgressStagesT>(value));
182 return *this;
183 }
185
187
190 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
191 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
192 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
193 void SetLastUpdatedTime(LastUpdatedTimeT&& value) {
194 m_lastUpdatedTimeHasBeenSet = true;
195 m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
196 }
197 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
199 SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value));
200 return *this;
201 }
203
205
208 inline ConfigChangeStatus GetConfigChangeStatus() const { return m_configChangeStatus; }
209 inline bool ConfigChangeStatusHasBeenSet() const { return m_configChangeStatusHasBeenSet; }
211 m_configChangeStatusHasBeenSet = true;
212 m_configChangeStatus = value;
213 }
216 return *this;
217 }
219
221
224 inline InitiatedBy GetInitiatedBy() const { return m_initiatedBy; }
225 inline bool InitiatedByHasBeenSet() const { return m_initiatedByHasBeenSet; }
226 inline void SetInitiatedBy(InitiatedBy value) {
227 m_initiatedByHasBeenSet = true;
228 m_initiatedBy = value;
229 }
231 SetInitiatedBy(value);
232 return *this;
233 }
235
237
241 inline const Aws::Vector<ValidationFailure>& GetValidationFailures() const { return m_validationFailures; }
242 inline bool ValidationFailuresHasBeenSet() const { return m_validationFailuresHasBeenSet; }
243 template <typename ValidationFailuresT = Aws::Vector<ValidationFailure>>
244 void SetValidationFailures(ValidationFailuresT&& value) {
245 m_validationFailuresHasBeenSet = true;
246 m_validationFailures = std::forward<ValidationFailuresT>(value);
247 }
248 template <typename ValidationFailuresT = Aws::Vector<ValidationFailure>>
250 SetValidationFailures(std::forward<ValidationFailuresT>(value));
251 return *this;
252 }
253 template <typename ValidationFailuresT = ValidationFailure>
255 m_validationFailuresHasBeenSet = true;
256 m_validationFailures.emplace_back(std::forward<ValidationFailuresT>(value));
257 return *this;
258 }
260
262
266 inline const Aws::Vector<Aws::String>& GetAcceptedWarnings() const { return m_acceptedWarnings; }
267 inline bool AcceptedWarningsHasBeenSet() const { return m_acceptedWarningsHasBeenSet; }
268 template <typename AcceptedWarningsT = Aws::Vector<Aws::String>>
269 void SetAcceptedWarnings(AcceptedWarningsT&& value) {
270 m_acceptedWarningsHasBeenSet = true;
271 m_acceptedWarnings = std::forward<AcceptedWarningsT>(value);
272 }
273 template <typename AcceptedWarningsT = Aws::Vector<Aws::String>>
275 SetAcceptedWarnings(std::forward<AcceptedWarningsT>(value));
276 return *this;
277 }
278 template <typename AcceptedWarningsT = Aws::String>
280 m_acceptedWarningsHasBeenSet = true;
281 m_acceptedWarnings.emplace_back(std::forward<AcceptedWarningsT>(value));
282 return *this;
283 }
285 private:
286 Aws::String m_changeId;
287
288 Aws::Utils::DateTime m_startTime{};
289
291
292 Aws::Vector<Aws::String> m_pendingProperties;
293
294 Aws::Vector<Aws::String> m_completedProperties;
295
296 int m_totalNumberOfStages{0};
297
298 Aws::Vector<ChangeProgressStage> m_changeProgressStages;
299
300 Aws::Utils::DateTime m_lastUpdatedTime{};
301
303
304 InitiatedBy m_initiatedBy{InitiatedBy::NOT_SET};
305
306 Aws::Vector<ValidationFailure> m_validationFailures;
307
308 Aws::Vector<Aws::String> m_acceptedWarnings;
309 bool m_changeIdHasBeenSet = false;
310 bool m_startTimeHasBeenSet = false;
311 bool m_statusHasBeenSet = false;
312 bool m_pendingPropertiesHasBeenSet = false;
313 bool m_completedPropertiesHasBeenSet = false;
314 bool m_totalNumberOfStagesHasBeenSet = false;
315 bool m_changeProgressStagesHasBeenSet = false;
316 bool m_lastUpdatedTimeHasBeenSet = false;
317 bool m_configChangeStatusHasBeenSet = false;
318 bool m_initiatedByHasBeenSet = false;
319 bool m_validationFailuresHasBeenSet = false;
320 bool m_acceptedWarningsHasBeenSet = false;
321};
322
323} // namespace Model
324} // namespace OpenSearchService
325} // namespace Aws
ChangeProgressStatusDetails & WithStartTime(StartTimeT &&value)
ChangeProgressStatusDetails & WithLastUpdatedTime(LastUpdatedTimeT &&value)
ChangeProgressStatusDetails & AddChangeProgressStages(ChangeProgressStagesT &&value)
AWS_OPENSEARCHSERVICE_API ChangeProgressStatusDetails()=default
ChangeProgressStatusDetails & WithInitiatedBy(InitiatedBy value)
ChangeProgressStatusDetails & AddCompletedProperties(CompletedPropertiesT &&value)
AWS_OPENSEARCHSERVICE_API ChangeProgressStatusDetails(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< ChangeProgressStage > & GetChangeProgressStages() const
ChangeProgressStatusDetails & WithConfigChangeStatus(ConfigChangeStatus value)
ChangeProgressStatusDetails & WithChangeId(ChangeIdT &&value)
ChangeProgressStatusDetails & WithPendingProperties(PendingPropertiesT &&value)
ChangeProgressStatusDetails & AddPendingProperties(PendingPropertiesT &&value)
ChangeProgressStatusDetails & WithStatus(OverallChangeStatus value)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_OPENSEARCHSERVICE_API ChangeProgressStatusDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
ChangeProgressStatusDetails & WithValidationFailures(ValidationFailuresT &&value)
ChangeProgressStatusDetails & WithChangeProgressStages(ChangeProgressStagesT &&value)
ChangeProgressStatusDetails & AddValidationFailures(ValidationFailuresT &&value)
ChangeProgressStatusDetails & WithCompletedProperties(CompletedPropertiesT &&value)
ChangeProgressStatusDetails & WithAcceptedWarnings(AcceptedWarningsT &&value)
const Aws::Vector< ValidationFailure > & GetValidationFailures() const
ChangeProgressStatusDetails & AddAcceptedWarnings(AcceptedWarningsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue