AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
DescribeDomainHealthResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/opensearch/OpenSearchService_EXPORTS.h>
10#include <aws/opensearch/model/DomainHealth.h>
11#include <aws/opensearch/model/DomainState.h>
12#include <aws/opensearch/model/EnvironmentInfo.h>
13#include <aws/opensearch/model/MasterNodeStatus.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace OpenSearchService {
27namespace Model {
35 public:
36 AWS_OPENSEARCHSERVICE_API DescribeDomainHealthResult() = default;
39
41
47 inline DomainState GetDomainState() const { return m_domainState; }
48 inline void SetDomainState(DomainState value) {
49 m_domainStateHasBeenSet = true;
50 m_domainState = value;
51 }
53 SetDomainState(value);
54 return *this;
55 }
57
59
63 inline const Aws::String& GetAvailabilityZoneCount() const { return m_availabilityZoneCount; }
64 template <typename AvailabilityZoneCountT = Aws::String>
65 void SetAvailabilityZoneCount(AvailabilityZoneCountT&& value) {
66 m_availabilityZoneCountHasBeenSet = true;
67 m_availabilityZoneCount = std::forward<AvailabilityZoneCountT>(value);
68 }
69 template <typename AvailabilityZoneCountT = Aws::String>
70 DescribeDomainHealthResult& WithAvailabilityZoneCount(AvailabilityZoneCountT&& value) {
71 SetAvailabilityZoneCount(std::forward<AvailabilityZoneCountT>(value));
72 return *this;
73 }
75
77
82 inline const Aws::String& GetActiveAvailabilityZoneCount() const { return m_activeAvailabilityZoneCount; }
83 template <typename ActiveAvailabilityZoneCountT = Aws::String>
84 void SetActiveAvailabilityZoneCount(ActiveAvailabilityZoneCountT&& value) {
85 m_activeAvailabilityZoneCountHasBeenSet = true;
86 m_activeAvailabilityZoneCount = std::forward<ActiveAvailabilityZoneCountT>(value);
87 }
88 template <typename ActiveAvailabilityZoneCountT = Aws::String>
89 DescribeDomainHealthResult& WithActiveAvailabilityZoneCount(ActiveAvailabilityZoneCountT&& value) {
90 SetActiveAvailabilityZoneCount(std::forward<ActiveAvailabilityZoneCountT>(value));
91 return *this;
92 }
94
96
101 inline const Aws::String& GetStandByAvailabilityZoneCount() const { return m_standByAvailabilityZoneCount; }
102 template <typename StandByAvailabilityZoneCountT = Aws::String>
103 void SetStandByAvailabilityZoneCount(StandByAvailabilityZoneCountT&& value) {
104 m_standByAvailabilityZoneCountHasBeenSet = true;
105 m_standByAvailabilityZoneCount = std::forward<StandByAvailabilityZoneCountT>(value);
106 }
107 template <typename StandByAvailabilityZoneCountT = Aws::String>
108 DescribeDomainHealthResult& WithStandByAvailabilityZoneCount(StandByAvailabilityZoneCountT&& value) {
109 SetStandByAvailabilityZoneCount(std::forward<StandByAvailabilityZoneCountT>(value));
110 return *this;
111 }
113
115
119 inline const Aws::String& GetDataNodeCount() const { return m_dataNodeCount; }
120 template <typename DataNodeCountT = Aws::String>
121 void SetDataNodeCount(DataNodeCountT&& value) {
122 m_dataNodeCountHasBeenSet = true;
123 m_dataNodeCount = std::forward<DataNodeCountT>(value);
124 }
125 template <typename DataNodeCountT = Aws::String>
127 SetDataNodeCount(std::forward<DataNodeCountT>(value));
128 return *this;
129 }
131
133
137 inline bool GetDedicatedMaster() const { return m_dedicatedMaster; }
138 inline void SetDedicatedMaster(bool value) {
139 m_dedicatedMasterHasBeenSet = true;
140 m_dedicatedMaster = value;
141 }
143 SetDedicatedMaster(value);
144 return *this;
145 }
147
149
155 inline const Aws::String& GetMasterEligibleNodeCount() const { return m_masterEligibleNodeCount; }
156 template <typename MasterEligibleNodeCountT = Aws::String>
157 void SetMasterEligibleNodeCount(MasterEligibleNodeCountT&& value) {
158 m_masterEligibleNodeCountHasBeenSet = true;
159 m_masterEligibleNodeCount = std::forward<MasterEligibleNodeCountT>(value);
160 }
161 template <typename MasterEligibleNodeCountT = Aws::String>
162 DescribeDomainHealthResult& WithMasterEligibleNodeCount(MasterEligibleNodeCountT&& value) {
163 SetMasterEligibleNodeCount(std::forward<MasterEligibleNodeCountT>(value));
164 return *this;
165 }
167
169
172 inline const Aws::String& GetWarmNodeCount() const { return m_warmNodeCount; }
173 template <typename WarmNodeCountT = Aws::String>
174 void SetWarmNodeCount(WarmNodeCountT&& value) {
175 m_warmNodeCountHasBeenSet = true;
176 m_warmNodeCount = std::forward<WarmNodeCountT>(value);
177 }
178 template <typename WarmNodeCountT = Aws::String>
180 SetWarmNodeCount(std::forward<WarmNodeCountT>(value));
181 return *this;
182 }
184
186
192 inline MasterNodeStatus GetMasterNode() const { return m_masterNode; }
193 inline void SetMasterNode(MasterNodeStatus value) {
194 m_masterNodeHasBeenSet = true;
195 m_masterNode = value;
196 }
198 SetMasterNode(value);
199 return *this;
200 }
202
204
212 inline DomainHealth GetClusterHealth() const { return m_clusterHealth; }
213 inline void SetClusterHealth(DomainHealth value) {
214 m_clusterHealthHasBeenSet = true;
215 m_clusterHealth = value;
216 }
218 SetClusterHealth(value);
219 return *this;
220 }
222
224
227 inline const Aws::String& GetTotalShards() const { return m_totalShards; }
228 template <typename TotalShardsT = Aws::String>
229 void SetTotalShards(TotalShardsT&& value) {
230 m_totalShardsHasBeenSet = true;
231 m_totalShards = std::forward<TotalShardsT>(value);
232 }
233 template <typename TotalShardsT = Aws::String>
235 SetTotalShards(std::forward<TotalShardsT>(value));
236 return *this;
237 }
239
241
245 inline const Aws::String& GetTotalUnAssignedShards() const { return m_totalUnAssignedShards; }
246 template <typename TotalUnAssignedShardsT = Aws::String>
247 void SetTotalUnAssignedShards(TotalUnAssignedShardsT&& value) {
248 m_totalUnAssignedShardsHasBeenSet = true;
249 m_totalUnAssignedShards = std::forward<TotalUnAssignedShardsT>(value);
250 }
251 template <typename TotalUnAssignedShardsT = Aws::String>
252 DescribeDomainHealthResult& WithTotalUnAssignedShards(TotalUnAssignedShardsT&& value) {
253 SetTotalUnAssignedShards(std::forward<TotalUnAssignedShardsT>(value));
254 return *this;
255 }
257
259
262 inline const Aws::Vector<EnvironmentInfo>& GetEnvironmentInformation() const { return m_environmentInformation; }
263 template <typename EnvironmentInformationT = Aws::Vector<EnvironmentInfo>>
264 void SetEnvironmentInformation(EnvironmentInformationT&& value) {
265 m_environmentInformationHasBeenSet = true;
266 m_environmentInformation = std::forward<EnvironmentInformationT>(value);
267 }
268 template <typename EnvironmentInformationT = Aws::Vector<EnvironmentInfo>>
269 DescribeDomainHealthResult& WithEnvironmentInformation(EnvironmentInformationT&& value) {
270 SetEnvironmentInformation(std::forward<EnvironmentInformationT>(value));
271 return *this;
272 }
273 template <typename EnvironmentInformationT = EnvironmentInfo>
274 DescribeDomainHealthResult& AddEnvironmentInformation(EnvironmentInformationT&& value) {
275 m_environmentInformationHasBeenSet = true;
276 m_environmentInformation.emplace_back(std::forward<EnvironmentInformationT>(value));
277 return *this;
278 }
280
282
283 inline const Aws::String& GetRequestId() const { return m_requestId; }
284 template <typename RequestIdT = Aws::String>
285 void SetRequestId(RequestIdT&& value) {
286 m_requestIdHasBeenSet = true;
287 m_requestId = std::forward<RequestIdT>(value);
288 }
289 template <typename RequestIdT = Aws::String>
291 SetRequestId(std::forward<RequestIdT>(value));
292 return *this;
293 }
295 private:
296 DomainState m_domainState{DomainState::NOT_SET};
297
298 Aws::String m_availabilityZoneCount;
299
300 Aws::String m_activeAvailabilityZoneCount;
301
302 Aws::String m_standByAvailabilityZoneCount;
303
304 Aws::String m_dataNodeCount;
305
306 bool m_dedicatedMaster{false};
307
308 Aws::String m_masterEligibleNodeCount;
309
310 Aws::String m_warmNodeCount;
311
313
314 DomainHealth m_clusterHealth{DomainHealth::NOT_SET};
315
316 Aws::String m_totalShards;
317
318 Aws::String m_totalUnAssignedShards;
319
320 Aws::Vector<EnvironmentInfo> m_environmentInformation;
321
322 Aws::String m_requestId;
323 bool m_domainStateHasBeenSet = false;
324 bool m_availabilityZoneCountHasBeenSet = false;
325 bool m_activeAvailabilityZoneCountHasBeenSet = false;
326 bool m_standByAvailabilityZoneCountHasBeenSet = false;
327 bool m_dataNodeCountHasBeenSet = false;
328 bool m_dedicatedMasterHasBeenSet = false;
329 bool m_masterEligibleNodeCountHasBeenSet = false;
330 bool m_warmNodeCountHasBeenSet = false;
331 bool m_masterNodeHasBeenSet = false;
332 bool m_clusterHealthHasBeenSet = false;
333 bool m_totalShardsHasBeenSet = false;
334 bool m_totalUnAssignedShardsHasBeenSet = false;
335 bool m_environmentInformationHasBeenSet = false;
336 bool m_requestIdHasBeenSet = false;
337};
338
339} // namespace Model
340} // namespace OpenSearchService
341} // 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