AWS SDK for C++

AWS SDK for C++ Version 1.11.764

Loading...
Searching...
No Matches
DescribeDomainHealthResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.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/DomainHealth.h>
12#include <aws/opensearch/model/DomainState.h>
13#include <aws/opensearch/model/EnvironmentInfo.h>
14#include <aws/opensearch/model/MasterNodeStatus.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace OpenSearchService {
28namespace Model {
36 public:
37 AWS_OPENSEARCHSERVICE_API DescribeDomainHealthResult() = default;
40
42
48 inline DomainState GetDomainState() const { return m_domainState; }
49 inline void SetDomainState(DomainState value) {
50 m_domainStateHasBeenSet = true;
51 m_domainState = value;
52 }
54 SetDomainState(value);
55 return *this;
56 }
58
60
64 inline const Aws::String& GetAvailabilityZoneCount() const { return m_availabilityZoneCount; }
65 template <typename AvailabilityZoneCountT = Aws::String>
66 void SetAvailabilityZoneCount(AvailabilityZoneCountT&& value) {
67 m_availabilityZoneCountHasBeenSet = true;
68 m_availabilityZoneCount = std::forward<AvailabilityZoneCountT>(value);
69 }
70 template <typename AvailabilityZoneCountT = Aws::String>
71 DescribeDomainHealthResult& WithAvailabilityZoneCount(AvailabilityZoneCountT&& value) {
72 SetAvailabilityZoneCount(std::forward<AvailabilityZoneCountT>(value));
73 return *this;
74 }
76
78
83 inline const Aws::String& GetActiveAvailabilityZoneCount() const { return m_activeAvailabilityZoneCount; }
84 template <typename ActiveAvailabilityZoneCountT = Aws::String>
85 void SetActiveAvailabilityZoneCount(ActiveAvailabilityZoneCountT&& value) {
86 m_activeAvailabilityZoneCountHasBeenSet = true;
87 m_activeAvailabilityZoneCount = std::forward<ActiveAvailabilityZoneCountT>(value);
88 }
89 template <typename ActiveAvailabilityZoneCountT = Aws::String>
90 DescribeDomainHealthResult& WithActiveAvailabilityZoneCount(ActiveAvailabilityZoneCountT&& value) {
91 SetActiveAvailabilityZoneCount(std::forward<ActiveAvailabilityZoneCountT>(value));
92 return *this;
93 }
95
97
102 inline const Aws::String& GetStandByAvailabilityZoneCount() const { return m_standByAvailabilityZoneCount; }
103 template <typename StandByAvailabilityZoneCountT = Aws::String>
104 void SetStandByAvailabilityZoneCount(StandByAvailabilityZoneCountT&& value) {
105 m_standByAvailabilityZoneCountHasBeenSet = true;
106 m_standByAvailabilityZoneCount = std::forward<StandByAvailabilityZoneCountT>(value);
107 }
108 template <typename StandByAvailabilityZoneCountT = Aws::String>
109 DescribeDomainHealthResult& WithStandByAvailabilityZoneCount(StandByAvailabilityZoneCountT&& value) {
110 SetStandByAvailabilityZoneCount(std::forward<StandByAvailabilityZoneCountT>(value));
111 return *this;
112 }
114
116
120 inline const Aws::String& GetDataNodeCount() const { return m_dataNodeCount; }
121 template <typename DataNodeCountT = Aws::String>
122 void SetDataNodeCount(DataNodeCountT&& value) {
123 m_dataNodeCountHasBeenSet = true;
124 m_dataNodeCount = std::forward<DataNodeCountT>(value);
125 }
126 template <typename DataNodeCountT = Aws::String>
128 SetDataNodeCount(std::forward<DataNodeCountT>(value));
129 return *this;
130 }
132
134
138 inline bool GetDedicatedMaster() const { return m_dedicatedMaster; }
139 inline void SetDedicatedMaster(bool value) {
140 m_dedicatedMasterHasBeenSet = true;
141 m_dedicatedMaster = value;
142 }
144 SetDedicatedMaster(value);
145 return *this;
146 }
148
150
156 inline const Aws::String& GetMasterEligibleNodeCount() const { return m_masterEligibleNodeCount; }
157 template <typename MasterEligibleNodeCountT = Aws::String>
158 void SetMasterEligibleNodeCount(MasterEligibleNodeCountT&& value) {
159 m_masterEligibleNodeCountHasBeenSet = true;
160 m_masterEligibleNodeCount = std::forward<MasterEligibleNodeCountT>(value);
161 }
162 template <typename MasterEligibleNodeCountT = Aws::String>
163 DescribeDomainHealthResult& WithMasterEligibleNodeCount(MasterEligibleNodeCountT&& value) {
164 SetMasterEligibleNodeCount(std::forward<MasterEligibleNodeCountT>(value));
165 return *this;
166 }
168
170
173 inline const Aws::String& GetWarmNodeCount() const { return m_warmNodeCount; }
174 template <typename WarmNodeCountT = Aws::String>
175 void SetWarmNodeCount(WarmNodeCountT&& value) {
176 m_warmNodeCountHasBeenSet = true;
177 m_warmNodeCount = std::forward<WarmNodeCountT>(value);
178 }
179 template <typename WarmNodeCountT = Aws::String>
181 SetWarmNodeCount(std::forward<WarmNodeCountT>(value));
182 return *this;
183 }
185
187
193 inline MasterNodeStatus GetMasterNode() const { return m_masterNode; }
194 inline void SetMasterNode(MasterNodeStatus value) {
195 m_masterNodeHasBeenSet = true;
196 m_masterNode = value;
197 }
199 SetMasterNode(value);
200 return *this;
201 }
203
205
213 inline DomainHealth GetClusterHealth() const { return m_clusterHealth; }
214 inline void SetClusterHealth(DomainHealth value) {
215 m_clusterHealthHasBeenSet = true;
216 m_clusterHealth = value;
217 }
219 SetClusterHealth(value);
220 return *this;
221 }
223
225
228 inline const Aws::String& GetTotalShards() const { return m_totalShards; }
229 template <typename TotalShardsT = Aws::String>
230 void SetTotalShards(TotalShardsT&& value) {
231 m_totalShardsHasBeenSet = true;
232 m_totalShards = std::forward<TotalShardsT>(value);
233 }
234 template <typename TotalShardsT = Aws::String>
236 SetTotalShards(std::forward<TotalShardsT>(value));
237 return *this;
238 }
240
242
246 inline const Aws::String& GetTotalUnAssignedShards() const { return m_totalUnAssignedShards; }
247 template <typename TotalUnAssignedShardsT = Aws::String>
248 void SetTotalUnAssignedShards(TotalUnAssignedShardsT&& value) {
249 m_totalUnAssignedShardsHasBeenSet = true;
250 m_totalUnAssignedShards = std::forward<TotalUnAssignedShardsT>(value);
251 }
252 template <typename TotalUnAssignedShardsT = Aws::String>
253 DescribeDomainHealthResult& WithTotalUnAssignedShards(TotalUnAssignedShardsT&& value) {
254 SetTotalUnAssignedShards(std::forward<TotalUnAssignedShardsT>(value));
255 return *this;
256 }
258
260
263 inline const Aws::Vector<EnvironmentInfo>& GetEnvironmentInformation() const { return m_environmentInformation; }
264 template <typename EnvironmentInformationT = Aws::Vector<EnvironmentInfo>>
265 void SetEnvironmentInformation(EnvironmentInformationT&& value) {
266 m_environmentInformationHasBeenSet = true;
267 m_environmentInformation = std::forward<EnvironmentInformationT>(value);
268 }
269 template <typename EnvironmentInformationT = Aws::Vector<EnvironmentInfo>>
270 DescribeDomainHealthResult& WithEnvironmentInformation(EnvironmentInformationT&& value) {
271 SetEnvironmentInformation(std::forward<EnvironmentInformationT>(value));
272 return *this;
273 }
274 template <typename EnvironmentInformationT = EnvironmentInfo>
275 DescribeDomainHealthResult& AddEnvironmentInformation(EnvironmentInformationT&& value) {
276 m_environmentInformationHasBeenSet = true;
277 m_environmentInformation.emplace_back(std::forward<EnvironmentInformationT>(value));
278 return *this;
279 }
281
283
284 inline const Aws::String& GetRequestId() const { return m_requestId; }
285 template <typename RequestIdT = Aws::String>
286 void SetRequestId(RequestIdT&& value) {
287 m_requestIdHasBeenSet = true;
288 m_requestId = std::forward<RequestIdT>(value);
289 }
290 template <typename RequestIdT = Aws::String>
292 SetRequestId(std::forward<RequestIdT>(value));
293 return *this;
294 }
296 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
297
298 private:
299 DomainState m_domainState{DomainState::NOT_SET};
300
301 Aws::String m_availabilityZoneCount;
302
303 Aws::String m_activeAvailabilityZoneCount;
304
305 Aws::String m_standByAvailabilityZoneCount;
306
307 Aws::String m_dataNodeCount;
308
309 bool m_dedicatedMaster{false};
310
311 Aws::String m_masterEligibleNodeCount;
312
313 Aws::String m_warmNodeCount;
314
316
317 DomainHealth m_clusterHealth{DomainHealth::NOT_SET};
318
319 Aws::String m_totalShards;
320
321 Aws::String m_totalUnAssignedShards;
322
323 Aws::Vector<EnvironmentInfo> m_environmentInformation;
324
325 Aws::String m_requestId;
326 Aws::Http::HttpResponseCode m_HttpResponseCode;
327 bool m_domainStateHasBeenSet = false;
328 bool m_availabilityZoneCountHasBeenSet = false;
329 bool m_activeAvailabilityZoneCountHasBeenSet = false;
330 bool m_standByAvailabilityZoneCountHasBeenSet = false;
331 bool m_dataNodeCountHasBeenSet = false;
332 bool m_dedicatedMasterHasBeenSet = false;
333 bool m_masterEligibleNodeCountHasBeenSet = false;
334 bool m_warmNodeCountHasBeenSet = false;
335 bool m_masterNodeHasBeenSet = false;
336 bool m_clusterHealthHasBeenSet = false;
337 bool m_totalShardsHasBeenSet = false;
338 bool m_totalUnAssignedShardsHasBeenSet = false;
339 bool m_environmentInformationHasBeenSet = false;
340 bool m_requestIdHasBeenSet = false;
341};
342
343} // namespace Model
344} // namespace OpenSearchService
345} // namespace Aws
void SetStandByAvailabilityZoneCount(StandByAvailabilityZoneCountT &&value)
DescribeDomainHealthResult & WithRequestId(RequestIdT &&value)
DescribeDomainHealthResult & WithStandByAvailabilityZoneCount(StandByAvailabilityZoneCountT &&value)
DescribeDomainHealthResult & WithMasterNode(MasterNodeStatus value)
DescribeDomainHealthResult & WithTotalShards(TotalShardsT &&value)
DescribeDomainHealthResult & AddEnvironmentInformation(EnvironmentInformationT &&value)
AWS_OPENSEARCHSERVICE_API DescribeDomainHealthResult()=default
DescribeDomainHealthResult & WithDataNodeCount(DataNodeCountT &&value)
DescribeDomainHealthResult & WithMasterEligibleNodeCount(MasterEligibleNodeCountT &&value)
DescribeDomainHealthResult & WithAvailabilityZoneCount(AvailabilityZoneCountT &&value)
const Aws::Vector< EnvironmentInfo > & GetEnvironmentInformation() const
DescribeDomainHealthResult & WithEnvironmentInformation(EnvironmentInformationT &&value)
DescribeDomainHealthResult & WithTotalUnAssignedShards(TotalUnAssignedShardsT &&value)
AWS_OPENSEARCHSERVICE_API DescribeDomainHealthResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetActiveAvailabilityZoneCount(ActiveAvailabilityZoneCountT &&value)
DescribeDomainHealthResult & WithClusterHealth(DomainHealth value)
DescribeDomainHealthResult & WithDomainState(DomainState value)
DescribeDomainHealthResult & WithActiveAvailabilityZoneCount(ActiveAvailabilityZoneCountT &&value)
AWS_OPENSEARCHSERVICE_API DescribeDomainHealthResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeDomainHealthResult & WithWarmNodeCount(WarmNodeCountT &&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