AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ChangeProgressStatusDetails.h
1
6#pragma once
7#include <aws/opensearch/OpenSearchService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/opensearch/model/OverallChangeStatus.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/opensearch/model/ConfigChangeStatus.h>
13#include <aws/opensearch/model/InitiatedBy.h>
14#include <aws/opensearch/model/ChangeProgressStage.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace OpenSearchService
28{
29namespace Model
30{
31
39 {
40 public:
41 AWS_OPENSEARCHSERVICE_API ChangeProgressStatusDetails() = default;
42 AWS_OPENSEARCHSERVICE_API ChangeProgressStatusDetails(Aws::Utils::Json::JsonView jsonValue);
44 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
52 inline const Aws::String& GetChangeId() const { return m_changeId; }
53 inline bool ChangeIdHasBeenSet() const { return m_changeIdHasBeenSet; }
54 template<typename ChangeIdT = Aws::String>
55 void SetChangeId(ChangeIdT&& value) { m_changeIdHasBeenSet = true; m_changeId = std::forward<ChangeIdT>(value); }
56 template<typename ChangeIdT = Aws::String>
57 ChangeProgressStatusDetails& WithChangeId(ChangeIdT&& value) { SetChangeId(std::forward<ChangeIdT>(value)); return *this;}
59
61
64 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
65 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
66 template<typename StartTimeT = Aws::Utils::DateTime>
67 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
68 template<typename StartTimeT = Aws::Utils::DateTime>
69 ChangeProgressStatusDetails& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
71
73
76 inline OverallChangeStatus GetStatus() const { return m_status; }
77 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
78 inline void SetStatus(OverallChangeStatus value) { m_statusHasBeenSet = true; m_status = value; }
81
83
87 inline const Aws::Vector<Aws::String>& GetPendingProperties() const { return m_pendingProperties; }
88 inline bool PendingPropertiesHasBeenSet() const { return m_pendingPropertiesHasBeenSet; }
89 template<typename PendingPropertiesT = Aws::Vector<Aws::String>>
90 void SetPendingProperties(PendingPropertiesT&& value) { m_pendingPropertiesHasBeenSet = true; m_pendingProperties = std::forward<PendingPropertiesT>(value); }
91 template<typename PendingPropertiesT = Aws::Vector<Aws::String>>
92 ChangeProgressStatusDetails& WithPendingProperties(PendingPropertiesT&& value) { SetPendingProperties(std::forward<PendingPropertiesT>(value)); return *this;}
93 template<typename PendingPropertiesT = Aws::String>
94 ChangeProgressStatusDetails& AddPendingProperties(PendingPropertiesT&& value) { m_pendingPropertiesHasBeenSet = true; m_pendingProperties.emplace_back(std::forward<PendingPropertiesT>(value)); return *this; }
96
98
102 inline const Aws::Vector<Aws::String>& GetCompletedProperties() const { return m_completedProperties; }
103 inline bool CompletedPropertiesHasBeenSet() const { return m_completedPropertiesHasBeenSet; }
104 template<typename CompletedPropertiesT = Aws::Vector<Aws::String>>
105 void SetCompletedProperties(CompletedPropertiesT&& value) { m_completedPropertiesHasBeenSet = true; m_completedProperties = std::forward<CompletedPropertiesT>(value); }
106 template<typename CompletedPropertiesT = Aws::Vector<Aws::String>>
107 ChangeProgressStatusDetails& WithCompletedProperties(CompletedPropertiesT&& value) { SetCompletedProperties(std::forward<CompletedPropertiesT>(value)); return *this;}
108 template<typename CompletedPropertiesT = Aws::String>
109 ChangeProgressStatusDetails& AddCompletedProperties(CompletedPropertiesT&& value) { m_completedPropertiesHasBeenSet = true; m_completedProperties.emplace_back(std::forward<CompletedPropertiesT>(value)); return *this; }
111
113
116 inline int GetTotalNumberOfStages() const { return m_totalNumberOfStages; }
117 inline bool TotalNumberOfStagesHasBeenSet() const { return m_totalNumberOfStagesHasBeenSet; }
118 inline void SetTotalNumberOfStages(int value) { m_totalNumberOfStagesHasBeenSet = true; m_totalNumberOfStages = value; }
121
123
127 inline const Aws::Vector<ChangeProgressStage>& GetChangeProgressStages() const { return m_changeProgressStages; }
128 inline bool ChangeProgressStagesHasBeenSet() const { return m_changeProgressStagesHasBeenSet; }
129 template<typename ChangeProgressStagesT = Aws::Vector<ChangeProgressStage>>
130 void SetChangeProgressStages(ChangeProgressStagesT&& value) { m_changeProgressStagesHasBeenSet = true; m_changeProgressStages = std::forward<ChangeProgressStagesT>(value); }
131 template<typename ChangeProgressStagesT = Aws::Vector<ChangeProgressStage>>
132 ChangeProgressStatusDetails& WithChangeProgressStages(ChangeProgressStagesT&& value) { SetChangeProgressStages(std::forward<ChangeProgressStagesT>(value)); return *this;}
133 template<typename ChangeProgressStagesT = ChangeProgressStage>
134 ChangeProgressStatusDetails& AddChangeProgressStages(ChangeProgressStagesT&& value) { m_changeProgressStagesHasBeenSet = true; m_changeProgressStages.emplace_back(std::forward<ChangeProgressStagesT>(value)); return *this; }
136
138
141 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
142 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
143 template<typename LastUpdatedTimeT = Aws::Utils::DateTime>
144 void SetLastUpdatedTime(LastUpdatedTimeT&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value); }
145 template<typename LastUpdatedTimeT = Aws::Utils::DateTime>
146 ChangeProgressStatusDetails& WithLastUpdatedTime(LastUpdatedTimeT&& value) { SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value)); return *this;}
148
150
153 inline ConfigChangeStatus GetConfigChangeStatus() const { return m_configChangeStatus; }
154 inline bool ConfigChangeStatusHasBeenSet() const { return m_configChangeStatusHasBeenSet; }
155 inline void SetConfigChangeStatus(ConfigChangeStatus value) { m_configChangeStatusHasBeenSet = true; m_configChangeStatus = value; }
158
160
163 inline InitiatedBy GetInitiatedBy() const { return m_initiatedBy; }
164 inline bool InitiatedByHasBeenSet() const { return m_initiatedByHasBeenSet; }
165 inline void SetInitiatedBy(InitiatedBy value) { m_initiatedByHasBeenSet = true; m_initiatedBy = value; }
168 private:
169
170 Aws::String m_changeId;
171 bool m_changeIdHasBeenSet = false;
172
173 Aws::Utils::DateTime m_startTime{};
174 bool m_startTimeHasBeenSet = false;
175
177 bool m_statusHasBeenSet = false;
178
179 Aws::Vector<Aws::String> m_pendingProperties;
180 bool m_pendingPropertiesHasBeenSet = false;
181
182 Aws::Vector<Aws::String> m_completedProperties;
183 bool m_completedPropertiesHasBeenSet = false;
184
185 int m_totalNumberOfStages{0};
186 bool m_totalNumberOfStagesHasBeenSet = false;
187
188 Aws::Vector<ChangeProgressStage> m_changeProgressStages;
189 bool m_changeProgressStagesHasBeenSet = false;
190
191 Aws::Utils::DateTime m_lastUpdatedTime{};
192 bool m_lastUpdatedTimeHasBeenSet = false;
193
195 bool m_configChangeStatusHasBeenSet = false;
196
197 InitiatedBy m_initiatedBy{InitiatedBy::NOT_SET};
198 bool m_initiatedByHasBeenSet = false;
199 };
200
201} // namespace Model
202} // namespace OpenSearchService
203} // 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 & WithChangeProgressStages(ChangeProgressStagesT &&value)
ChangeProgressStatusDetails & WithCompletedProperties(CompletedPropertiesT &&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