AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DescribeDomainHealthResult.h
1
6#pragma once
7#include <aws/opensearch/OpenSearchService_EXPORTS.h>
8#include <aws/opensearch/model/DomainState.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/opensearch/model/MasterNodeStatus.h>
11#include <aws/opensearch/model/DomainHealth.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/opensearch/model/EnvironmentInfo.h>
14#include <utility>
15
16namespace Aws
17{
18template<typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace OpenSearchService
29{
30namespace Model
31{
39 {
40 public:
41 AWS_OPENSEARCHSERVICE_API DescribeDomainHealthResult() = default;
44
45
47
53 inline DomainState GetDomainState() const { return m_domainState; }
54 inline void SetDomainState(DomainState value) { m_domainStateHasBeenSet = true; m_domainState = value; }
57
59
63 inline const Aws::String& GetAvailabilityZoneCount() const { return m_availabilityZoneCount; }
64 template<typename AvailabilityZoneCountT = Aws::String>
65 void SetAvailabilityZoneCount(AvailabilityZoneCountT&& value) { m_availabilityZoneCountHasBeenSet = true; m_availabilityZoneCount = std::forward<AvailabilityZoneCountT>(value); }
66 template<typename AvailabilityZoneCountT = Aws::String>
67 DescribeDomainHealthResult& WithAvailabilityZoneCount(AvailabilityZoneCountT&& value) { SetAvailabilityZoneCount(std::forward<AvailabilityZoneCountT>(value)); return *this;}
69
71
76 inline const Aws::String& GetActiveAvailabilityZoneCount() const { return m_activeAvailabilityZoneCount; }
77 template<typename ActiveAvailabilityZoneCountT = Aws::String>
78 void SetActiveAvailabilityZoneCount(ActiveAvailabilityZoneCountT&& value) { m_activeAvailabilityZoneCountHasBeenSet = true; m_activeAvailabilityZoneCount = std::forward<ActiveAvailabilityZoneCountT>(value); }
79 template<typename ActiveAvailabilityZoneCountT = Aws::String>
80 DescribeDomainHealthResult& WithActiveAvailabilityZoneCount(ActiveAvailabilityZoneCountT&& value) { SetActiveAvailabilityZoneCount(std::forward<ActiveAvailabilityZoneCountT>(value)); return *this;}
82
84
89 inline const Aws::String& GetStandByAvailabilityZoneCount() const { return m_standByAvailabilityZoneCount; }
90 template<typename StandByAvailabilityZoneCountT = Aws::String>
91 void SetStandByAvailabilityZoneCount(StandByAvailabilityZoneCountT&& value) { m_standByAvailabilityZoneCountHasBeenSet = true; m_standByAvailabilityZoneCount = std::forward<StandByAvailabilityZoneCountT>(value); }
92 template<typename StandByAvailabilityZoneCountT = Aws::String>
93 DescribeDomainHealthResult& WithStandByAvailabilityZoneCount(StandByAvailabilityZoneCountT&& value) { SetStandByAvailabilityZoneCount(std::forward<StandByAvailabilityZoneCountT>(value)); return *this;}
95
97
101 inline const Aws::String& GetDataNodeCount() const { return m_dataNodeCount; }
102 template<typename DataNodeCountT = Aws::String>
103 void SetDataNodeCount(DataNodeCountT&& value) { m_dataNodeCountHasBeenSet = true; m_dataNodeCount = std::forward<DataNodeCountT>(value); }
104 template<typename DataNodeCountT = Aws::String>
105 DescribeDomainHealthResult& WithDataNodeCount(DataNodeCountT&& value) { SetDataNodeCount(std::forward<DataNodeCountT>(value)); return *this;}
107
109
113 inline bool GetDedicatedMaster() const { return m_dedicatedMaster; }
114 inline void SetDedicatedMaster(bool value) { m_dedicatedMasterHasBeenSet = true; m_dedicatedMaster = value; }
115 inline DescribeDomainHealthResult& WithDedicatedMaster(bool value) { SetDedicatedMaster(value); return *this;}
117
119
125 inline const Aws::String& GetMasterEligibleNodeCount() const { return m_masterEligibleNodeCount; }
126 template<typename MasterEligibleNodeCountT = Aws::String>
127 void SetMasterEligibleNodeCount(MasterEligibleNodeCountT&& value) { m_masterEligibleNodeCountHasBeenSet = true; m_masterEligibleNodeCount = std::forward<MasterEligibleNodeCountT>(value); }
128 template<typename MasterEligibleNodeCountT = Aws::String>
129 DescribeDomainHealthResult& WithMasterEligibleNodeCount(MasterEligibleNodeCountT&& value) { SetMasterEligibleNodeCount(std::forward<MasterEligibleNodeCountT>(value)); return *this;}
131
133
136 inline const Aws::String& GetWarmNodeCount() const { return m_warmNodeCount; }
137 template<typename WarmNodeCountT = Aws::String>
138 void SetWarmNodeCount(WarmNodeCountT&& value) { m_warmNodeCountHasBeenSet = true; m_warmNodeCount = std::forward<WarmNodeCountT>(value); }
139 template<typename WarmNodeCountT = Aws::String>
140 DescribeDomainHealthResult& WithWarmNodeCount(WarmNodeCountT&& value) { SetWarmNodeCount(std::forward<WarmNodeCountT>(value)); return *this;}
142
144
150 inline MasterNodeStatus GetMasterNode() const { return m_masterNode; }
151 inline void SetMasterNode(MasterNodeStatus value) { m_masterNodeHasBeenSet = true; m_masterNode = value; }
154
156
164 inline DomainHealth GetClusterHealth() const { return m_clusterHealth; }
165 inline void SetClusterHealth(DomainHealth value) { m_clusterHealthHasBeenSet = true; m_clusterHealth = value; }
168
170
173 inline const Aws::String& GetTotalShards() const { return m_totalShards; }
174 template<typename TotalShardsT = Aws::String>
175 void SetTotalShards(TotalShardsT&& value) { m_totalShardsHasBeenSet = true; m_totalShards = std::forward<TotalShardsT>(value); }
176 template<typename TotalShardsT = Aws::String>
177 DescribeDomainHealthResult& WithTotalShards(TotalShardsT&& value) { SetTotalShards(std::forward<TotalShardsT>(value)); return *this;}
179
181
185 inline const Aws::String& GetTotalUnAssignedShards() const { return m_totalUnAssignedShards; }
186 template<typename TotalUnAssignedShardsT = Aws::String>
187 void SetTotalUnAssignedShards(TotalUnAssignedShardsT&& value) { m_totalUnAssignedShardsHasBeenSet = true; m_totalUnAssignedShards = std::forward<TotalUnAssignedShardsT>(value); }
188 template<typename TotalUnAssignedShardsT = Aws::String>
189 DescribeDomainHealthResult& WithTotalUnAssignedShards(TotalUnAssignedShardsT&& value) { SetTotalUnAssignedShards(std::forward<TotalUnAssignedShardsT>(value)); return *this;}
191
193
196 inline const Aws::Vector<EnvironmentInfo>& GetEnvironmentInformation() const { return m_environmentInformation; }
197 template<typename EnvironmentInformationT = Aws::Vector<EnvironmentInfo>>
198 void SetEnvironmentInformation(EnvironmentInformationT&& value) { m_environmentInformationHasBeenSet = true; m_environmentInformation = std::forward<EnvironmentInformationT>(value); }
199 template<typename EnvironmentInformationT = Aws::Vector<EnvironmentInfo>>
200 DescribeDomainHealthResult& WithEnvironmentInformation(EnvironmentInformationT&& value) { SetEnvironmentInformation(std::forward<EnvironmentInformationT>(value)); return *this;}
201 template<typename EnvironmentInformationT = EnvironmentInfo>
202 DescribeDomainHealthResult& AddEnvironmentInformation(EnvironmentInformationT&& value) { m_environmentInformationHasBeenSet = true; m_environmentInformation.emplace_back(std::forward<EnvironmentInformationT>(value)); return *this; }
204
206
207 inline const Aws::String& GetRequestId() const { return m_requestId; }
208 template<typename RequestIdT = Aws::String>
209 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
210 template<typename RequestIdT = Aws::String>
211 DescribeDomainHealthResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
213 private:
214
215 DomainState m_domainState{DomainState::NOT_SET};
216 bool m_domainStateHasBeenSet = false;
217
218 Aws::String m_availabilityZoneCount;
219 bool m_availabilityZoneCountHasBeenSet = false;
220
221 Aws::String m_activeAvailabilityZoneCount;
222 bool m_activeAvailabilityZoneCountHasBeenSet = false;
223
224 Aws::String m_standByAvailabilityZoneCount;
225 bool m_standByAvailabilityZoneCountHasBeenSet = false;
226
227 Aws::String m_dataNodeCount;
228 bool m_dataNodeCountHasBeenSet = false;
229
230 bool m_dedicatedMaster{false};
231 bool m_dedicatedMasterHasBeenSet = false;
232
233 Aws::String m_masterEligibleNodeCount;
234 bool m_masterEligibleNodeCountHasBeenSet = false;
235
236 Aws::String m_warmNodeCount;
237 bool m_warmNodeCountHasBeenSet = false;
238
240 bool m_masterNodeHasBeenSet = false;
241
242 DomainHealth m_clusterHealth{DomainHealth::NOT_SET};
243 bool m_clusterHealthHasBeenSet = false;
244
245 Aws::String m_totalShards;
246 bool m_totalShardsHasBeenSet = false;
247
248 Aws::String m_totalUnAssignedShards;
249 bool m_totalUnAssignedShardsHasBeenSet = false;
250
251 Aws::Vector<EnvironmentInfo> m_environmentInformation;
252 bool m_environmentInformationHasBeenSet = false;
253
254 Aws::String m_requestId;
255 bool m_requestIdHasBeenSet = false;
256 };
257
258} // namespace Model
259} // namespace OpenSearchService
260} // 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