AWS SDK for C++

AWS SDK for C++ Version 1.11.750

Loading...
Searching...
No Matches
ElasticsearchClusterConfig.h
1
6#pragma once
7#include <aws/es/ElasticsearchService_EXPORTS.h>
8#include <aws/es/model/ColdStorageOptions.h>
9#include <aws/es/model/ESPartitionInstanceType.h>
10#include <aws/es/model/ESWarmPartitionInstanceType.h>
11#include <aws/es/model/ZoneAwarenessConfig.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ElasticsearchService {
23namespace Model {
24
32 public:
33 AWS_ELASTICSEARCHSERVICE_API ElasticsearchClusterConfig() = default;
34 AWS_ELASTICSEARCHSERVICE_API ElasticsearchClusterConfig(Aws::Utils::Json::JsonView jsonValue);
35 AWS_ELASTICSEARCHSERVICE_API ElasticsearchClusterConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline ESPartitionInstanceType GetInstanceType() const { return m_instanceType; }
44 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
46 m_instanceTypeHasBeenSet = true;
47 m_instanceType = value;
48 }
50 SetInstanceType(value);
51 return *this;
52 }
54
56
59 inline int GetInstanceCount() const { return m_instanceCount; }
60 inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
61 inline void SetInstanceCount(int value) {
62 m_instanceCountHasBeenSet = true;
63 m_instanceCount = value;
64 }
66 SetInstanceCount(value);
67 return *this;
68 }
70
72
78 inline bool GetDedicatedMasterEnabled() const { return m_dedicatedMasterEnabled; }
79 inline bool DedicatedMasterEnabledHasBeenSet() const { return m_dedicatedMasterEnabledHasBeenSet; }
80 inline void SetDedicatedMasterEnabled(bool value) {
81 m_dedicatedMasterEnabledHasBeenSet = true;
82 m_dedicatedMasterEnabled = value;
83 }
86 return *this;
87 }
89
91
96 inline bool GetZoneAwarenessEnabled() const { return m_zoneAwarenessEnabled; }
97 inline bool ZoneAwarenessEnabledHasBeenSet() const { return m_zoneAwarenessEnabledHasBeenSet; }
98 inline void SetZoneAwarenessEnabled(bool value) {
99 m_zoneAwarenessEnabledHasBeenSet = true;
100 m_zoneAwarenessEnabled = value;
101 }
104 return *this;
105 }
107
109
113 inline const ZoneAwarenessConfig& GetZoneAwarenessConfig() const { return m_zoneAwarenessConfig; }
114 inline bool ZoneAwarenessConfigHasBeenSet() const { return m_zoneAwarenessConfigHasBeenSet; }
115 template <typename ZoneAwarenessConfigT = ZoneAwarenessConfig>
116 void SetZoneAwarenessConfig(ZoneAwarenessConfigT&& value) {
117 m_zoneAwarenessConfigHasBeenSet = true;
118 m_zoneAwarenessConfig = std::forward<ZoneAwarenessConfigT>(value);
119 }
120 template <typename ZoneAwarenessConfigT = ZoneAwarenessConfig>
122 SetZoneAwarenessConfig(std::forward<ZoneAwarenessConfigT>(value));
123 return *this;
124 }
126
128
131 inline ESPartitionInstanceType GetDedicatedMasterType() const { return m_dedicatedMasterType; }
132 inline bool DedicatedMasterTypeHasBeenSet() const { return m_dedicatedMasterTypeHasBeenSet; }
134 m_dedicatedMasterTypeHasBeenSet = true;
135 m_dedicatedMasterType = value;
136 }
139 return *this;
140 }
142
144
148 inline int GetDedicatedMasterCount() const { return m_dedicatedMasterCount; }
149 inline bool DedicatedMasterCountHasBeenSet() const { return m_dedicatedMasterCountHasBeenSet; }
150 inline void SetDedicatedMasterCount(int value) {
151 m_dedicatedMasterCountHasBeenSet = true;
152 m_dedicatedMasterCount = value;
153 }
156 return *this;
157 }
159
161
164 inline bool GetWarmEnabled() const { return m_warmEnabled; }
165 inline bool WarmEnabledHasBeenSet() const { return m_warmEnabledHasBeenSet; }
166 inline void SetWarmEnabled(bool value) {
167 m_warmEnabledHasBeenSet = true;
168 m_warmEnabled = value;
169 }
171 SetWarmEnabled(value);
172 return *this;
173 }
175
177
180 inline ESWarmPartitionInstanceType GetWarmType() const { return m_warmType; }
181 inline bool WarmTypeHasBeenSet() const { return m_warmTypeHasBeenSet; }
183 m_warmTypeHasBeenSet = true;
184 m_warmType = value;
185 }
187 SetWarmType(value);
188 return *this;
189 }
191
193
196 inline int GetWarmCount() const { return m_warmCount; }
197 inline bool WarmCountHasBeenSet() const { return m_warmCountHasBeenSet; }
198 inline void SetWarmCount(int value) {
199 m_warmCountHasBeenSet = true;
200 m_warmCount = value;
201 }
203 SetWarmCount(value);
204 return *this;
205 }
207
209
213 inline const ColdStorageOptions& GetColdStorageOptions() const { return m_coldStorageOptions; }
214 inline bool ColdStorageOptionsHasBeenSet() const { return m_coldStorageOptionsHasBeenSet; }
215 template <typename ColdStorageOptionsT = ColdStorageOptions>
216 void SetColdStorageOptions(ColdStorageOptionsT&& value) {
217 m_coldStorageOptionsHasBeenSet = true;
218 m_coldStorageOptions = std::forward<ColdStorageOptionsT>(value);
219 }
220 template <typename ColdStorageOptionsT = ColdStorageOptions>
222 SetColdStorageOptions(std::forward<ColdStorageOptionsT>(value));
223 return *this;
224 }
226 private:
228
229 int m_instanceCount{0};
230
231 bool m_dedicatedMasterEnabled{false};
232
233 bool m_zoneAwarenessEnabled{false};
234
235 ZoneAwarenessConfig m_zoneAwarenessConfig;
236
238
239 int m_dedicatedMasterCount{0};
240
241 bool m_warmEnabled{false};
242
244
245 int m_warmCount{0};
246
247 ColdStorageOptions m_coldStorageOptions;
248 bool m_instanceTypeHasBeenSet = false;
249 bool m_instanceCountHasBeenSet = false;
250 bool m_dedicatedMasterEnabledHasBeenSet = false;
251 bool m_zoneAwarenessEnabledHasBeenSet = false;
252 bool m_zoneAwarenessConfigHasBeenSet = false;
253 bool m_dedicatedMasterTypeHasBeenSet = false;
254 bool m_dedicatedMasterCountHasBeenSet = false;
255 bool m_warmEnabledHasBeenSet = false;
256 bool m_warmTypeHasBeenSet = false;
257 bool m_warmCountHasBeenSet = false;
258 bool m_coldStorageOptionsHasBeenSet = false;
259};
260
261} // namespace Model
262} // namespace ElasticsearchService
263} // namespace Aws
ElasticsearchClusterConfig & WithInstanceType(ESPartitionInstanceType value)
AWS_ELASTICSEARCHSERVICE_API ElasticsearchClusterConfig(Aws::Utils::Json::JsonView jsonValue)
ElasticsearchClusterConfig & WithZoneAwarenessConfig(ZoneAwarenessConfigT &&value)
ElasticsearchClusterConfig & WithDedicatedMasterType(ESPartitionInstanceType value)
AWS_ELASTICSEARCHSERVICE_API ElasticsearchClusterConfig()=default
AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
ElasticsearchClusterConfig & WithWarmType(ESWarmPartitionInstanceType value)
AWS_ELASTICSEARCHSERVICE_API ElasticsearchClusterConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
ElasticsearchClusterConfig & WithColdStorageOptions(ColdStorageOptionsT &&value)
Aws::Utils::Json::JsonValue JsonValue