AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const ESPartitionInstanceType& GetInstanceType() const{ return m_instanceType; }
50 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
51 inline void SetInstanceType(const ESPartitionInstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
52 inline void SetInstanceType(ESPartitionInstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
54 inline ElasticsearchClusterConfig& WithInstanceType(ESPartitionInstanceType&& value) { SetInstanceType(std::move(value)); return *this;}
56
58
61 inline int GetInstanceCount() const{ return m_instanceCount; }
62 inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
63 inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; }
64 inline ElasticsearchClusterConfig& WithInstanceCount(int value) { SetInstanceCount(value); return *this;}
66
68
74 inline bool GetDedicatedMasterEnabled() const{ return m_dedicatedMasterEnabled; }
75 inline bool DedicatedMasterEnabledHasBeenSet() const { return m_dedicatedMasterEnabledHasBeenSet; }
76 inline void SetDedicatedMasterEnabled(bool value) { m_dedicatedMasterEnabledHasBeenSet = true; m_dedicatedMasterEnabled = value; }
79
81
86 inline bool GetZoneAwarenessEnabled() const{ return m_zoneAwarenessEnabled; }
87 inline bool ZoneAwarenessEnabledHasBeenSet() const { return m_zoneAwarenessEnabledHasBeenSet; }
88 inline void SetZoneAwarenessEnabled(bool value) { m_zoneAwarenessEnabledHasBeenSet = true; m_zoneAwarenessEnabled = value; }
91
93
97 inline const ZoneAwarenessConfig& GetZoneAwarenessConfig() const{ return m_zoneAwarenessConfig; }
98 inline bool ZoneAwarenessConfigHasBeenSet() const { return m_zoneAwarenessConfigHasBeenSet; }
99 inline void SetZoneAwarenessConfig(const ZoneAwarenessConfig& value) { m_zoneAwarenessConfigHasBeenSet = true; m_zoneAwarenessConfig = value; }
100 inline void SetZoneAwarenessConfig(ZoneAwarenessConfig&& value) { m_zoneAwarenessConfigHasBeenSet = true; m_zoneAwarenessConfig = std::move(value); }
104
106
109 inline const ESPartitionInstanceType& GetDedicatedMasterType() const{ return m_dedicatedMasterType; }
110 inline bool DedicatedMasterTypeHasBeenSet() const { return m_dedicatedMasterTypeHasBeenSet; }
111 inline void SetDedicatedMasterType(const ESPartitionInstanceType& value) { m_dedicatedMasterTypeHasBeenSet = true; m_dedicatedMasterType = value; }
112 inline void SetDedicatedMasterType(ESPartitionInstanceType&& value) { m_dedicatedMasterTypeHasBeenSet = true; m_dedicatedMasterType = std::move(value); }
116
118
122 inline int GetDedicatedMasterCount() const{ return m_dedicatedMasterCount; }
123 inline bool DedicatedMasterCountHasBeenSet() const { return m_dedicatedMasterCountHasBeenSet; }
124 inline void SetDedicatedMasterCount(int value) { m_dedicatedMasterCountHasBeenSet = true; m_dedicatedMasterCount = value; }
127
129
132 inline bool GetWarmEnabled() const{ return m_warmEnabled; }
133 inline bool WarmEnabledHasBeenSet() const { return m_warmEnabledHasBeenSet; }
134 inline void SetWarmEnabled(bool value) { m_warmEnabledHasBeenSet = true; m_warmEnabled = value; }
135 inline ElasticsearchClusterConfig& WithWarmEnabled(bool value) { SetWarmEnabled(value); return *this;}
137
139
142 inline const ESWarmPartitionInstanceType& GetWarmType() const{ return m_warmType; }
143 inline bool WarmTypeHasBeenSet() const { return m_warmTypeHasBeenSet; }
144 inline void SetWarmType(const ESWarmPartitionInstanceType& value) { m_warmTypeHasBeenSet = true; m_warmType = value; }
145 inline void SetWarmType(ESWarmPartitionInstanceType&& value) { m_warmTypeHasBeenSet = true; m_warmType = std::move(value); }
147 inline ElasticsearchClusterConfig& WithWarmType(ESWarmPartitionInstanceType&& value) { SetWarmType(std::move(value)); return *this;}
149
151
154 inline int GetWarmCount() const{ return m_warmCount; }
155 inline bool WarmCountHasBeenSet() const { return m_warmCountHasBeenSet; }
156 inline void SetWarmCount(int value) { m_warmCountHasBeenSet = true; m_warmCount = value; }
157 inline ElasticsearchClusterConfig& WithWarmCount(int value) { SetWarmCount(value); return *this;}
159
161
165 inline const ColdStorageOptions& GetColdStorageOptions() const{ return m_coldStorageOptions; }
166 inline bool ColdStorageOptionsHasBeenSet() const { return m_coldStorageOptionsHasBeenSet; }
167 inline void SetColdStorageOptions(const ColdStorageOptions& value) { m_coldStorageOptionsHasBeenSet = true; m_coldStorageOptions = value; }
168 inline void SetColdStorageOptions(ColdStorageOptions&& value) { m_coldStorageOptionsHasBeenSet = true; m_coldStorageOptions = std::move(value); }
172 private:
173
174 ESPartitionInstanceType m_instanceType;
175 bool m_instanceTypeHasBeenSet = false;
176
177 int m_instanceCount;
178 bool m_instanceCountHasBeenSet = false;
179
180 bool m_dedicatedMasterEnabled;
181 bool m_dedicatedMasterEnabledHasBeenSet = false;
182
183 bool m_zoneAwarenessEnabled;
184 bool m_zoneAwarenessEnabledHasBeenSet = false;
185
186 ZoneAwarenessConfig m_zoneAwarenessConfig;
187 bool m_zoneAwarenessConfigHasBeenSet = false;
188
189 ESPartitionInstanceType m_dedicatedMasterType;
190 bool m_dedicatedMasterTypeHasBeenSet = false;
191
192 int m_dedicatedMasterCount;
193 bool m_dedicatedMasterCountHasBeenSet = false;
194
195 bool m_warmEnabled;
196 bool m_warmEnabledHasBeenSet = false;
197
199 bool m_warmTypeHasBeenSet = false;
200
201 int m_warmCount;
202 bool m_warmCountHasBeenSet = false;
203
204 ColdStorageOptions m_coldStorageOptions;
205 bool m_coldStorageOptionsHasBeenSet = false;
206 };
207
208} // namespace Model
209} // namespace ElasticsearchService
210} // namespace Aws
ElasticsearchClusterConfig & WithWarmType(ESWarmPartitionInstanceType &&value)
ElasticsearchClusterConfig & WithDedicatedMasterType(const ESPartitionInstanceType &value)
ElasticsearchClusterConfig & WithDedicatedMasterType(ESPartitionInstanceType &&value)
ElasticsearchClusterConfig & WithZoneAwarenessConfig(const ZoneAwarenessConfig &value)
ElasticsearchClusterConfig & WithColdStorageOptions(const ColdStorageOptions &value)
AWS_ELASTICSEARCHSERVICE_API ElasticsearchClusterConfig(Aws::Utils::Json::JsonView jsonValue)
ElasticsearchClusterConfig & WithInstanceType(const ESPartitionInstanceType &value)
AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ELASTICSEARCHSERVICE_API ElasticsearchClusterConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
ElasticsearchClusterConfig & WithInstanceType(ESPartitionInstanceType &&value)
ElasticsearchClusterConfig & WithZoneAwarenessConfig(ZoneAwarenessConfig &&value)
ElasticsearchClusterConfig & WithWarmType(const ESWarmPartitionInstanceType &value)
ElasticsearchClusterConfig & WithColdStorageOptions(ColdStorageOptions &&value)
Aws::Utils::Json::JsonValue JsonValue