AWS SDK for C++  1.9.107
AWS SDK for C++
ElasticsearchClusterConfig.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace ElasticsearchService
25 {
26 namespace Model
27 {
28 
36  {
37  public:
42 
43 
48  inline const ESPartitionInstanceType& GetInstanceType() const{ return m_instanceType; }
49 
54  inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
55 
60  inline void SetInstanceType(const ESPartitionInstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
61 
66  inline void SetInstanceType(ESPartitionInstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
67 
72  inline ElasticsearchClusterConfig& WithInstanceType(const ESPartitionInstanceType& value) { SetInstanceType(value); return *this;}
73 
78  inline ElasticsearchClusterConfig& WithInstanceType(ESPartitionInstanceType&& value) { SetInstanceType(std::move(value)); return *this;}
79 
80 
84  inline int GetInstanceCount() const{ return m_instanceCount; }
85 
89  inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
90 
94  inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; }
95 
99  inline ElasticsearchClusterConfig& WithInstanceCount(int value) { SetInstanceCount(value); return *this;}
100 
101 
108  inline bool GetDedicatedMasterEnabled() const{ return m_dedicatedMasterEnabled; }
109 
116  inline bool DedicatedMasterEnabledHasBeenSet() const { return m_dedicatedMasterEnabledHasBeenSet; }
117 
124  inline void SetDedicatedMasterEnabled(bool value) { m_dedicatedMasterEnabledHasBeenSet = true; m_dedicatedMasterEnabled = value; }
125 
132  inline ElasticsearchClusterConfig& WithDedicatedMasterEnabled(bool value) { SetDedicatedMasterEnabled(value); return *this;}
133 
134 
140  inline bool GetZoneAwarenessEnabled() const{ return m_zoneAwarenessEnabled; }
141 
147  inline bool ZoneAwarenessEnabledHasBeenSet() const { return m_zoneAwarenessEnabledHasBeenSet; }
148 
154  inline void SetZoneAwarenessEnabled(bool value) { m_zoneAwarenessEnabledHasBeenSet = true; m_zoneAwarenessEnabled = value; }
155 
161  inline ElasticsearchClusterConfig& WithZoneAwarenessEnabled(bool value) { SetZoneAwarenessEnabled(value); return *this;}
162 
163 
168  inline const ZoneAwarenessConfig& GetZoneAwarenessConfig() const{ return m_zoneAwarenessConfig; }
169 
174  inline bool ZoneAwarenessConfigHasBeenSet() const { return m_zoneAwarenessConfigHasBeenSet; }
175 
180  inline void SetZoneAwarenessConfig(const ZoneAwarenessConfig& value) { m_zoneAwarenessConfigHasBeenSet = true; m_zoneAwarenessConfig = value; }
181 
186  inline void SetZoneAwarenessConfig(ZoneAwarenessConfig&& value) { m_zoneAwarenessConfigHasBeenSet = true; m_zoneAwarenessConfig = std::move(value); }
187 
192  inline ElasticsearchClusterConfig& WithZoneAwarenessConfig(const ZoneAwarenessConfig& value) { SetZoneAwarenessConfig(value); return *this;}
193 
198  inline ElasticsearchClusterConfig& WithZoneAwarenessConfig(ZoneAwarenessConfig&& value) { SetZoneAwarenessConfig(std::move(value)); return *this;}
199 
200 
204  inline const ESPartitionInstanceType& GetDedicatedMasterType() const{ return m_dedicatedMasterType; }
205 
209  inline bool DedicatedMasterTypeHasBeenSet() const { return m_dedicatedMasterTypeHasBeenSet; }
210 
214  inline void SetDedicatedMasterType(const ESPartitionInstanceType& value) { m_dedicatedMasterTypeHasBeenSet = true; m_dedicatedMasterType = value; }
215 
219  inline void SetDedicatedMasterType(ESPartitionInstanceType&& value) { m_dedicatedMasterTypeHasBeenSet = true; m_dedicatedMasterType = std::move(value); }
220 
224  inline ElasticsearchClusterConfig& WithDedicatedMasterType(const ESPartitionInstanceType& value) { SetDedicatedMasterType(value); return *this;}
225 
229  inline ElasticsearchClusterConfig& WithDedicatedMasterType(ESPartitionInstanceType&& value) { SetDedicatedMasterType(std::move(value)); return *this;}
230 
231 
236  inline int GetDedicatedMasterCount() const{ return m_dedicatedMasterCount; }
237 
242  inline bool DedicatedMasterCountHasBeenSet() const { return m_dedicatedMasterCountHasBeenSet; }
243 
248  inline void SetDedicatedMasterCount(int value) { m_dedicatedMasterCountHasBeenSet = true; m_dedicatedMasterCount = value; }
249 
254  inline ElasticsearchClusterConfig& WithDedicatedMasterCount(int value) { SetDedicatedMasterCount(value); return *this;}
255 
256 
260  inline bool GetWarmEnabled() const{ return m_warmEnabled; }
261 
265  inline bool WarmEnabledHasBeenSet() const { return m_warmEnabledHasBeenSet; }
266 
270  inline void SetWarmEnabled(bool value) { m_warmEnabledHasBeenSet = true; m_warmEnabled = value; }
271 
275  inline ElasticsearchClusterConfig& WithWarmEnabled(bool value) { SetWarmEnabled(value); return *this;}
276 
277 
281  inline const ESWarmPartitionInstanceType& GetWarmType() const{ return m_warmType; }
282 
286  inline bool WarmTypeHasBeenSet() const { return m_warmTypeHasBeenSet; }
287 
291  inline void SetWarmType(const ESWarmPartitionInstanceType& value) { m_warmTypeHasBeenSet = true; m_warmType = value; }
292 
296  inline void SetWarmType(ESWarmPartitionInstanceType&& value) { m_warmTypeHasBeenSet = true; m_warmType = std::move(value); }
297 
301  inline ElasticsearchClusterConfig& WithWarmType(const ESWarmPartitionInstanceType& value) { SetWarmType(value); return *this;}
302 
306  inline ElasticsearchClusterConfig& WithWarmType(ESWarmPartitionInstanceType&& value) { SetWarmType(std::move(value)); return *this;}
307 
308 
312  inline int GetWarmCount() const{ return m_warmCount; }
313 
317  inline bool WarmCountHasBeenSet() const { return m_warmCountHasBeenSet; }
318 
322  inline void SetWarmCount(int value) { m_warmCountHasBeenSet = true; m_warmCount = value; }
323 
327  inline ElasticsearchClusterConfig& WithWarmCount(int value) { SetWarmCount(value); return *this;}
328 
329 
334  inline const ColdStorageOptions& GetColdStorageOptions() const{ return m_coldStorageOptions; }
335 
340  inline bool ColdStorageOptionsHasBeenSet() const { return m_coldStorageOptionsHasBeenSet; }
341 
346  inline void SetColdStorageOptions(const ColdStorageOptions& value) { m_coldStorageOptionsHasBeenSet = true; m_coldStorageOptions = value; }
347 
352  inline void SetColdStorageOptions(ColdStorageOptions&& value) { m_coldStorageOptionsHasBeenSet = true; m_coldStorageOptions = std::move(value); }
353 
358  inline ElasticsearchClusterConfig& WithColdStorageOptions(const ColdStorageOptions& value) { SetColdStorageOptions(value); return *this;}
359 
364  inline ElasticsearchClusterConfig& WithColdStorageOptions(ColdStorageOptions&& value) { SetColdStorageOptions(std::move(value)); return *this;}
365 
366  private:
367 
368  ESPartitionInstanceType m_instanceType;
369  bool m_instanceTypeHasBeenSet;
370 
371  int m_instanceCount;
372  bool m_instanceCountHasBeenSet;
373 
374  bool m_dedicatedMasterEnabled;
375  bool m_dedicatedMasterEnabledHasBeenSet;
376 
377  bool m_zoneAwarenessEnabled;
378  bool m_zoneAwarenessEnabledHasBeenSet;
379 
380  ZoneAwarenessConfig m_zoneAwarenessConfig;
381  bool m_zoneAwarenessConfigHasBeenSet;
382 
383  ESPartitionInstanceType m_dedicatedMasterType;
384  bool m_dedicatedMasterTypeHasBeenSet;
385 
386  int m_dedicatedMasterCount;
387  bool m_dedicatedMasterCountHasBeenSet;
388 
389  bool m_warmEnabled;
390  bool m_warmEnabledHasBeenSet;
391 
392  ESWarmPartitionInstanceType m_warmType;
393  bool m_warmTypeHasBeenSet;
394 
395  int m_warmCount;
396  bool m_warmCountHasBeenSet;
397 
398  ColdStorageOptions m_coldStorageOptions;
399  bool m_coldStorageOptionsHasBeenSet;
400  };
401 
402 } // namespace Model
403 } // namespace ElasticsearchService
404 } // namespace Aws
Aws::ElasticsearchService::Model::ElasticsearchClusterConfig::WithWarmType
ElasticsearchClusterConfig & WithWarmType(ESWarmPartitionInstanceType &&value)
Definition: ElasticsearchClusterConfig.h:306
Aws::ElasticsearchService::Model::ElasticsearchClusterConfig::GetDedicatedMasterEnabled
bool GetDedicatedMasterEnabled() const
Definition: ElasticsearchClusterConfig.h:108
Aws::ElasticsearchService::Model::ElasticsearchClusterConfig::SetWarmEnabled
void SetWarmEnabled(bool value)
Definition: ElasticsearchClusterConfig.h:270
Aws::ElasticsearchService::Model::ElasticsearchClusterConfig::WithZoneAwarenessConfig
ElasticsearchClusterConfig & WithZoneAwarenessConfig(ZoneAwarenessConfig &&value)
Definition: ElasticsearchClusterConfig.h:198
Aws::ElasticsearchService::Model::ElasticsearchClusterConfig::SetDedicatedMasterType
void SetDedicatedMasterType(ESPartitionInstanceType &&value)
Definition: ElasticsearchClusterConfig.h:219
Aws::ElasticsearchService::Model::ElasticsearchClusterConfig::SetColdStorageOptions
void SetColdStorageOptions(const ColdStorageOptions &value)
Definition: ElasticsearchClusterConfig.h:346
ESWarmPartitionInstanceType.h
Aws::ElasticsearchService::Model::ElasticsearchClusterConfig::SetWarmType
void SetWarmType(const ESWarmPartitionInstanceType &value)
Definition: ElasticsearchClusterConfig.h:291
Aws::ElasticsearchService::Model::ElasticsearchClusterConfig::ZoneAwarenessConfigHasBeenSet
bool ZoneAwarenessConfigHasBeenSet() const
Definition: ElasticsearchClusterConfig.h:174
Aws::ElasticsearchService::Model::ElasticsearchClusterConfig::GetZoneAwarenessEnabled
bool GetZoneAwarenessEnabled() const
Definition: ElasticsearchClusterConfig.h:140
Aws::ElasticsearchService::Model::ElasticsearchClusterConfig::ElasticsearchClusterConfig
ElasticsearchClusterConfig()
Aws::ElasticsearchService::Model::ElasticsearchClusterConfig::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ElasticsearchService::Model::ESWarmPartitionInstanceType
ESWarmPartitionInstanceType
Definition: ESWarmPartitionInstanceType.h:17
Aws::ElasticsearchService::Model::ElasticsearchClusterConfig::InstanceCountHasBeenSet
bool InstanceCountHasBeenSet() const
Definition: ElasticsearchClusterConfig.h:89
ESPartitionInstanceType.h
Aws::ElasticsearchService::Model::ElasticsearchClusterConfig::DedicatedMasterEnabledHasBeenSet
bool DedicatedMasterEnabledHasBeenSet() const
Definition: ElasticsearchClusterConfig.h:116
ColdStorageOptions.h
Aws::ElasticsearchService::Model::ElasticsearchClusterConfig::SetDedicatedMasterEnabled
void SetDedicatedMasterEnabled(bool value)
Definition: ElasticsearchClusterConfig.h:124
Aws::ElasticsearchService::Model::ElasticsearchClusterConfig::WarmTypeHasBeenSet
bool WarmTypeHasBeenSet() const
Definition: ElasticsearchClusterConfig.h:286
Aws::ElasticsearchService::Model::ElasticsearchClusterConfig::GetWarmType
const ESWarmPartitionInstanceType & GetWarmType() const
Definition: ElasticsearchClusterConfig.h:281
Aws::ElasticsearchService::Model::ElasticsearchClusterConfig::WithWarmType
ElasticsearchClusterConfig & WithWarmType(const ESWarmPartitionInstanceType &value)
Definition: ElasticsearchClusterConfig.h:301
Aws::ElasticsearchService::Model::ElasticsearchClusterConfig
Definition: ElasticsearchClusterConfig.h:36
Aws::ElasticsearchService::Model::ElasticsearchClusterConfig::SetWarmCount
void SetWarmCount(int value)
Definition: ElasticsearchClusterConfig.h:322
Aws::ElasticsearchService::Model::ElasticsearchClusterConfig::SetZoneAwarenessConfig
void SetZoneAwarenessConfig(ZoneAwarenessConfig &&value)
Definition: ElasticsearchClusterConfig.h:186
Aws::ElasticsearchService::Model::ElasticsearchClusterConfig::GetColdStorageOptions
const ColdStorageOptions & GetColdStorageOptions() const
Definition: ElasticsearchClusterConfig.h:334
Aws::ElasticsearchService::Model::ElasticsearchClusterConfig::WithInstanceType
ElasticsearchClusterConfig & WithInstanceType(ESPartitionInstanceType &&value)
Definition: ElasticsearchClusterConfig.h:78
AWS_ELASTICSEARCHSERVICE_API
#define AWS_ELASTICSEARCHSERVICE_API
Definition: ElasticsearchService_EXPORTS.h:28
Aws::ElasticsearchService::Model::ElasticsearchClusterConfig::WarmCountHasBeenSet
bool WarmCountHasBeenSet() const
Definition: ElasticsearchClusterConfig.h:317
Aws::ElasticsearchService::Model::ElasticsearchClusterConfig::DedicatedMasterTypeHasBeenSet
bool DedicatedMasterTypeHasBeenSet() const
Definition: ElasticsearchClusterConfig.h:209
Aws::ElasticsearchService::Model::ElasticsearchClusterConfig::ColdStorageOptionsHasBeenSet
bool ColdStorageOptionsHasBeenSet() const
Definition: ElasticsearchClusterConfig.h:340
Aws::ElasticsearchService::Model::ElasticsearchClusterConfig::WithDedicatedMasterCount
ElasticsearchClusterConfig & WithDedicatedMasterCount(int value)
Definition: ElasticsearchClusterConfig.h:254
Aws::ElasticsearchService::Model::ElasticsearchClusterConfig::WithInstanceType
ElasticsearchClusterConfig & WithInstanceType(const ESPartitionInstanceType &value)
Definition: ElasticsearchClusterConfig.h:72
ElasticsearchService_EXPORTS.h
Aws::ElasticsearchService::Model::ElasticsearchClusterConfig::operator=
ElasticsearchClusterConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ElasticsearchService::Model::ElasticsearchClusterConfig::SetDedicatedMasterCount
void SetDedicatedMasterCount(int value)
Definition: ElasticsearchClusterConfig.h:248
Aws::ElasticsearchService::Model::ElasticsearchClusterConfig::SetDedicatedMasterType
void SetDedicatedMasterType(const ESPartitionInstanceType &value)
Definition: ElasticsearchClusterConfig.h:214
Aws::ElasticsearchService::Model::ElasticsearchClusterConfig::SetInstanceType
void SetInstanceType(ESPartitionInstanceType &&value)
Definition: ElasticsearchClusterConfig.h:66
Aws::ElasticsearchService::Model::ElasticsearchClusterConfig::SetZoneAwarenessEnabled
void SetZoneAwarenessEnabled(bool value)
Definition: ElasticsearchClusterConfig.h:154
Aws::ElasticsearchService::Model::ElasticsearchClusterConfig::WithDedicatedMasterEnabled
ElasticsearchClusterConfig & WithDedicatedMasterEnabled(bool value)
Definition: ElasticsearchClusterConfig.h:132
Aws::ElasticsearchService::Model::ElasticsearchClusterConfig::SetColdStorageOptions
void SetColdStorageOptions(ColdStorageOptions &&value)
Definition: ElasticsearchClusterConfig.h:352
Aws::ElasticsearchService::Model::ElasticsearchClusterConfig::GetDedicatedMasterType
const ESPartitionInstanceType & GetDedicatedMasterType() const
Definition: ElasticsearchClusterConfig.h:204
Aws::ElasticsearchService::Model::ElasticsearchClusterConfig::ZoneAwarenessEnabledHasBeenSet
bool ZoneAwarenessEnabledHasBeenSet() const
Definition: ElasticsearchClusterConfig.h:147
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::ElasticsearchService::Model::ElasticsearchClusterConfig::GetDedicatedMasterCount
int GetDedicatedMasterCount() const
Definition: ElasticsearchClusterConfig.h:236
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ElasticsearchService::Model::ElasticsearchClusterConfig::WithDedicatedMasterType
ElasticsearchClusterConfig & WithDedicatedMasterType(ESPartitionInstanceType &&value)
Definition: ElasticsearchClusterConfig.h:229
Aws::ElasticsearchService::Model::ElasticsearchClusterConfig::GetInstanceType
const ESPartitionInstanceType & GetInstanceType() const
Definition: ElasticsearchClusterConfig.h:48
Aws::ElasticsearchService::Model::ElasticsearchClusterConfig::WarmEnabledHasBeenSet
bool WarmEnabledHasBeenSet() const
Definition: ElasticsearchClusterConfig.h:265
Aws::ElasticsearchService::Model::ElasticsearchClusterConfig::WithWarmEnabled
ElasticsearchClusterConfig & WithWarmEnabled(bool value)
Definition: ElasticsearchClusterConfig.h:275
Aws::ElasticsearchService::Model::ElasticsearchClusterConfig::GetInstanceCount
int GetInstanceCount() const
Definition: ElasticsearchClusterConfig.h:84
Aws::ElasticsearchService::Model::ElasticsearchClusterConfig::DedicatedMasterCountHasBeenSet
bool DedicatedMasterCountHasBeenSet() const
Definition: ElasticsearchClusterConfig.h:242
Aws::ElasticsearchService::Model::ESPartitionInstanceType
ESPartitionInstanceType
Definition: ESPartitionInstanceType.h:17
Aws::ElasticsearchService::Model::ElasticsearchClusterConfig::SetInstanceType
void SetInstanceType(const ESPartitionInstanceType &value)
Definition: ElasticsearchClusterConfig.h:60
Aws::ElasticsearchService::Model::ElasticsearchClusterConfig::InstanceTypeHasBeenSet
bool InstanceTypeHasBeenSet() const
Definition: ElasticsearchClusterConfig.h:54
Aws::ElasticsearchService::Model::ElasticsearchClusterConfig::WithZoneAwarenessConfig
ElasticsearchClusterConfig & WithZoneAwarenessConfig(const ZoneAwarenessConfig &value)
Definition: ElasticsearchClusterConfig.h:192
Aws::ElasticsearchService::Model::ElasticsearchClusterConfig::GetWarmEnabled
bool GetWarmEnabled() const
Definition: ElasticsearchClusterConfig.h:260
Aws
Definition: AccessManagementClient.h:15
Aws::ElasticsearchService::Model::ElasticsearchClusterConfig::WithZoneAwarenessEnabled
ElasticsearchClusterConfig & WithZoneAwarenessEnabled(bool value)
Definition: ElasticsearchClusterConfig.h:161
Aws::ElasticsearchService::Model::ColdStorageOptions
Definition: ColdStorageOptions.h:31
Aws::ElasticsearchService::Model::ElasticsearchClusterConfig::WithWarmCount
ElasticsearchClusterConfig & WithWarmCount(int value)
Definition: ElasticsearchClusterConfig.h:327
Aws::ElasticsearchService::Model::ElasticsearchClusterConfig::WithInstanceCount
ElasticsearchClusterConfig & WithInstanceCount(int value)
Definition: ElasticsearchClusterConfig.h:99
Aws::ElasticsearchService::Model::ElasticsearchClusterConfig::WithColdStorageOptions
ElasticsearchClusterConfig & WithColdStorageOptions(ColdStorageOptions &&value)
Definition: ElasticsearchClusterConfig.h:364
Aws::ElasticsearchService::Model::ElasticsearchClusterConfig::SetWarmType
void SetWarmType(ESWarmPartitionInstanceType &&value)
Definition: ElasticsearchClusterConfig.h:296
Aws::ElasticsearchService::Model::ElasticsearchClusterConfig::ElasticsearchClusterConfig
ElasticsearchClusterConfig(Aws::Utils::Json::JsonView jsonValue)
Aws::ElasticsearchService::Model::ZoneAwarenessConfig
Definition: ZoneAwarenessConfig.h:31
Aws::ElasticsearchService::Model::ElasticsearchClusterConfig::SetZoneAwarenessConfig
void SetZoneAwarenessConfig(const ZoneAwarenessConfig &value)
Definition: ElasticsearchClusterConfig.h:180
Aws::ElasticsearchService::Model::ElasticsearchClusterConfig::GetWarmCount
int GetWarmCount() const
Definition: ElasticsearchClusterConfig.h:312
Aws::ElasticsearchService::Model::ElasticsearchClusterConfig::WithColdStorageOptions
ElasticsearchClusterConfig & WithColdStorageOptions(const ColdStorageOptions &value)
Definition: ElasticsearchClusterConfig.h:358
ZoneAwarenessConfig.h
Aws::ElasticsearchService::Model::ElasticsearchClusterConfig::WithDedicatedMasterType
ElasticsearchClusterConfig & WithDedicatedMasterType(const ESPartitionInstanceType &value)
Definition: ElasticsearchClusterConfig.h:224
Aws::ElasticsearchService::Model::ElasticsearchClusterConfig::SetInstanceCount
void SetInstanceCount(int value)
Definition: ElasticsearchClusterConfig.h:94
Aws::ElasticsearchService::Model::ElasticsearchClusterConfig::GetZoneAwarenessConfig
const ZoneAwarenessConfig & GetZoneAwarenessConfig() const
Definition: ElasticsearchClusterConfig.h:168