AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ElasticsearchClusterConfig.h
1
6#pragma once
7#include <aws/es/ElasticsearchService_EXPORTS.h>
8#include <aws/es/model/ESPartitionInstanceType.h>
9#include <aws/es/model/ZoneAwarenessConfig.h>
10#include <aws/es/model/ESWarmPartitionInstanceType.h>
11#include <aws/es/model/ColdStorageOptions.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ElasticsearchService
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_ELASTICSEARCHSERVICE_API ElasticsearchClusterConfig() = default;
39 AWS_ELASTICSEARCHSERVICE_API ElasticsearchClusterConfig(Aws::Utils::Json::JsonView jsonValue);
40 AWS_ELASTICSEARCHSERVICE_API ElasticsearchClusterConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline ESPartitionInstanceType GetInstanceType() const { return m_instanceType; }
50 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
51 inline void SetInstanceType(ESPartitionInstanceType value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
54
56
59 inline int GetInstanceCount() const { return m_instanceCount; }
60 inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
61 inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; }
62 inline ElasticsearchClusterConfig& WithInstanceCount(int value) { SetInstanceCount(value); return *this;}
64
66
72 inline bool GetDedicatedMasterEnabled() const { return m_dedicatedMasterEnabled; }
73 inline bool DedicatedMasterEnabledHasBeenSet() const { return m_dedicatedMasterEnabledHasBeenSet; }
74 inline void SetDedicatedMasterEnabled(bool value) { m_dedicatedMasterEnabledHasBeenSet = true; m_dedicatedMasterEnabled = value; }
77
79
84 inline bool GetZoneAwarenessEnabled() const { return m_zoneAwarenessEnabled; }
85 inline bool ZoneAwarenessEnabledHasBeenSet() const { return m_zoneAwarenessEnabledHasBeenSet; }
86 inline void SetZoneAwarenessEnabled(bool value) { m_zoneAwarenessEnabledHasBeenSet = true; m_zoneAwarenessEnabled = value; }
89
91
95 inline const ZoneAwarenessConfig& GetZoneAwarenessConfig() const { return m_zoneAwarenessConfig; }
96 inline bool ZoneAwarenessConfigHasBeenSet() const { return m_zoneAwarenessConfigHasBeenSet; }
97 template<typename ZoneAwarenessConfigT = ZoneAwarenessConfig>
98 void SetZoneAwarenessConfig(ZoneAwarenessConfigT&& value) { m_zoneAwarenessConfigHasBeenSet = true; m_zoneAwarenessConfig = std::forward<ZoneAwarenessConfigT>(value); }
99 template<typename ZoneAwarenessConfigT = ZoneAwarenessConfig>
100 ElasticsearchClusterConfig& WithZoneAwarenessConfig(ZoneAwarenessConfigT&& value) { SetZoneAwarenessConfig(std::forward<ZoneAwarenessConfigT>(value)); return *this;}
102
104
107 inline ESPartitionInstanceType GetDedicatedMasterType() const { return m_dedicatedMasterType; }
108 inline bool DedicatedMasterTypeHasBeenSet() const { return m_dedicatedMasterTypeHasBeenSet; }
109 inline void SetDedicatedMasterType(ESPartitionInstanceType value) { m_dedicatedMasterTypeHasBeenSet = true; m_dedicatedMasterType = value; }
112
114
118 inline int GetDedicatedMasterCount() const { return m_dedicatedMasterCount; }
119 inline bool DedicatedMasterCountHasBeenSet() const { return m_dedicatedMasterCountHasBeenSet; }
120 inline void SetDedicatedMasterCount(int value) { m_dedicatedMasterCountHasBeenSet = true; m_dedicatedMasterCount = value; }
123
125
128 inline bool GetWarmEnabled() const { return m_warmEnabled; }
129 inline bool WarmEnabledHasBeenSet() const { return m_warmEnabledHasBeenSet; }
130 inline void SetWarmEnabled(bool value) { m_warmEnabledHasBeenSet = true; m_warmEnabled = value; }
131 inline ElasticsearchClusterConfig& WithWarmEnabled(bool value) { SetWarmEnabled(value); return *this;}
133
135
138 inline ESWarmPartitionInstanceType GetWarmType() const { return m_warmType; }
139 inline bool WarmTypeHasBeenSet() const { return m_warmTypeHasBeenSet; }
140 inline void SetWarmType(ESWarmPartitionInstanceType value) { m_warmTypeHasBeenSet = true; m_warmType = value; }
143
145
148 inline int GetWarmCount() const { return m_warmCount; }
149 inline bool WarmCountHasBeenSet() const { return m_warmCountHasBeenSet; }
150 inline void SetWarmCount(int value) { m_warmCountHasBeenSet = true; m_warmCount = value; }
151 inline ElasticsearchClusterConfig& WithWarmCount(int value) { SetWarmCount(value); return *this;}
153
155
159 inline const ColdStorageOptions& GetColdStorageOptions() const { return m_coldStorageOptions; }
160 inline bool ColdStorageOptionsHasBeenSet() const { return m_coldStorageOptionsHasBeenSet; }
161 template<typename ColdStorageOptionsT = ColdStorageOptions>
162 void SetColdStorageOptions(ColdStorageOptionsT&& value) { m_coldStorageOptionsHasBeenSet = true; m_coldStorageOptions = std::forward<ColdStorageOptionsT>(value); }
163 template<typename ColdStorageOptionsT = ColdStorageOptions>
164 ElasticsearchClusterConfig& WithColdStorageOptions(ColdStorageOptionsT&& value) { SetColdStorageOptions(std::forward<ColdStorageOptionsT>(value)); return *this;}
166 private:
167
169 bool m_instanceTypeHasBeenSet = false;
170
171 int m_instanceCount{0};
172 bool m_instanceCountHasBeenSet = false;
173
174 bool m_dedicatedMasterEnabled{false};
175 bool m_dedicatedMasterEnabledHasBeenSet = false;
176
177 bool m_zoneAwarenessEnabled{false};
178 bool m_zoneAwarenessEnabledHasBeenSet = false;
179
180 ZoneAwarenessConfig m_zoneAwarenessConfig;
181 bool m_zoneAwarenessConfigHasBeenSet = false;
182
184 bool m_dedicatedMasterTypeHasBeenSet = false;
185
186 int m_dedicatedMasterCount{0};
187 bool m_dedicatedMasterCountHasBeenSet = false;
188
189 bool m_warmEnabled{false};
190 bool m_warmEnabledHasBeenSet = false;
191
193 bool m_warmTypeHasBeenSet = false;
194
195 int m_warmCount{0};
196 bool m_warmCountHasBeenSet = false;
197
198 ColdStorageOptions m_coldStorageOptions;
199 bool m_coldStorageOptionsHasBeenSet = false;
200 };
201
202} // namespace Model
203} // namespace ElasticsearchService
204} // 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