AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ClusterConfig.h
1
6#pragma once
7#include <aws/opensearch/OpenSearchService_EXPORTS.h>
8#include <aws/opensearch/model/OpenSearchPartitionInstanceType.h>
9#include <aws/opensearch/model/ZoneAwarenessConfig.h>
10#include <aws/opensearch/model/OpenSearchWarmPartitionInstanceType.h>
11#include <aws/opensearch/model/ColdStorageOptions.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/opensearch/model/NodeOption.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace OpenSearchService
27{
28namespace Model
29{
30
41 {
42 public:
43 AWS_OPENSEARCHSERVICE_API ClusterConfig() = default;
44 AWS_OPENSEARCHSERVICE_API ClusterConfig(Aws::Utils::Json::JsonView jsonValue);
45 AWS_OPENSEARCHSERVICE_API ClusterConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
46 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
53 inline OpenSearchPartitionInstanceType GetInstanceType() const { return m_instanceType; }
54 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
55 inline void SetInstanceType(OpenSearchPartitionInstanceType value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
58
60
64 inline int GetInstanceCount() const { return m_instanceCount; }
65 inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
66 inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; }
67 inline ClusterConfig& WithInstanceCount(int value) { SetInstanceCount(value); return *this;}
69
71
76 inline bool GetDedicatedMasterEnabled() const { return m_dedicatedMasterEnabled; }
77 inline bool DedicatedMasterEnabledHasBeenSet() const { return m_dedicatedMasterEnabledHasBeenSet; }
78 inline void SetDedicatedMasterEnabled(bool value) { m_dedicatedMasterEnabledHasBeenSet = true; m_dedicatedMasterEnabled = value; }
79 inline ClusterConfig& WithDedicatedMasterEnabled(bool value) { SetDedicatedMasterEnabled(value); return *this;}
81
83
89 inline bool GetZoneAwarenessEnabled() const { return m_zoneAwarenessEnabled; }
90 inline bool ZoneAwarenessEnabledHasBeenSet() const { return m_zoneAwarenessEnabledHasBeenSet; }
91 inline void SetZoneAwarenessEnabled(bool value) { m_zoneAwarenessEnabledHasBeenSet = true; m_zoneAwarenessEnabled = value; }
92 inline ClusterConfig& WithZoneAwarenessEnabled(bool value) { SetZoneAwarenessEnabled(value); return *this;}
94
96
100 inline const ZoneAwarenessConfig& GetZoneAwarenessConfig() const { return m_zoneAwarenessConfig; }
101 inline bool ZoneAwarenessConfigHasBeenSet() const { return m_zoneAwarenessConfigHasBeenSet; }
102 template<typename ZoneAwarenessConfigT = ZoneAwarenessConfig>
103 void SetZoneAwarenessConfig(ZoneAwarenessConfigT&& value) { m_zoneAwarenessConfigHasBeenSet = true; m_zoneAwarenessConfig = std::forward<ZoneAwarenessConfigT>(value); }
104 template<typename ZoneAwarenessConfigT = ZoneAwarenessConfig>
105 ClusterConfig& WithZoneAwarenessConfig(ZoneAwarenessConfigT&& value) { SetZoneAwarenessConfig(std::forward<ZoneAwarenessConfigT>(value)); return *this;}
107
109
113 inline OpenSearchPartitionInstanceType GetDedicatedMasterType() const { return m_dedicatedMasterType; }
114 inline bool DedicatedMasterTypeHasBeenSet() const { return m_dedicatedMasterTypeHasBeenSet; }
115 inline void SetDedicatedMasterType(OpenSearchPartitionInstanceType value) { m_dedicatedMasterTypeHasBeenSet = true; m_dedicatedMasterType = value; }
118
120
124 inline int GetDedicatedMasterCount() const { return m_dedicatedMasterCount; }
125 inline bool DedicatedMasterCountHasBeenSet() const { return m_dedicatedMasterCountHasBeenSet; }
126 inline void SetDedicatedMasterCount(int value) { m_dedicatedMasterCountHasBeenSet = true; m_dedicatedMasterCount = value; }
127 inline ClusterConfig& WithDedicatedMasterCount(int value) { SetDedicatedMasterCount(value); return *this;}
129
131
134 inline bool GetWarmEnabled() const { return m_warmEnabled; }
135 inline bool WarmEnabledHasBeenSet() const { return m_warmEnabledHasBeenSet; }
136 inline void SetWarmEnabled(bool value) { m_warmEnabledHasBeenSet = true; m_warmEnabled = value; }
137 inline ClusterConfig& WithWarmEnabled(bool value) { SetWarmEnabled(value); return *this;}
139
141
144 inline OpenSearchWarmPartitionInstanceType GetWarmType() const { return m_warmType; }
145 inline bool WarmTypeHasBeenSet() const { return m_warmTypeHasBeenSet; }
146 inline void SetWarmType(OpenSearchWarmPartitionInstanceType value) { m_warmTypeHasBeenSet = true; m_warmType = value; }
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 ClusterConfig& WithWarmCount(int value) { SetWarmCount(value); return *this;}
159
161
164 inline const ColdStorageOptions& GetColdStorageOptions() const { return m_coldStorageOptions; }
165 inline bool ColdStorageOptionsHasBeenSet() const { return m_coldStorageOptionsHasBeenSet; }
166 template<typename ColdStorageOptionsT = ColdStorageOptions>
167 void SetColdStorageOptions(ColdStorageOptionsT&& value) { m_coldStorageOptionsHasBeenSet = true; m_coldStorageOptions = std::forward<ColdStorageOptionsT>(value); }
168 template<typename ColdStorageOptionsT = ColdStorageOptions>
169 ClusterConfig& WithColdStorageOptions(ColdStorageOptionsT&& value) { SetColdStorageOptions(std::forward<ColdStorageOptionsT>(value)); return *this;}
171
173
179 inline bool GetMultiAZWithStandbyEnabled() const { return m_multiAZWithStandbyEnabled; }
180 inline bool MultiAZWithStandbyEnabledHasBeenSet() const { return m_multiAZWithStandbyEnabledHasBeenSet; }
181 inline void SetMultiAZWithStandbyEnabled(bool value) { m_multiAZWithStandbyEnabledHasBeenSet = true; m_multiAZWithStandbyEnabled = value; }
184
186
189 inline const Aws::Vector<NodeOption>& GetNodeOptions() const { return m_nodeOptions; }
190 inline bool NodeOptionsHasBeenSet() const { return m_nodeOptionsHasBeenSet; }
191 template<typename NodeOptionsT = Aws::Vector<NodeOption>>
192 void SetNodeOptions(NodeOptionsT&& value) { m_nodeOptionsHasBeenSet = true; m_nodeOptions = std::forward<NodeOptionsT>(value); }
193 template<typename NodeOptionsT = Aws::Vector<NodeOption>>
194 ClusterConfig& WithNodeOptions(NodeOptionsT&& value) { SetNodeOptions(std::forward<NodeOptionsT>(value)); return *this;}
195 template<typename NodeOptionsT = NodeOption>
196 ClusterConfig& AddNodeOptions(NodeOptionsT&& value) { m_nodeOptionsHasBeenSet = true; m_nodeOptions.emplace_back(std::forward<NodeOptionsT>(value)); return *this; }
198 private:
199
201 bool m_instanceTypeHasBeenSet = false;
202
203 int m_instanceCount{0};
204 bool m_instanceCountHasBeenSet = false;
205
206 bool m_dedicatedMasterEnabled{false};
207 bool m_dedicatedMasterEnabledHasBeenSet = false;
208
209 bool m_zoneAwarenessEnabled{false};
210 bool m_zoneAwarenessEnabledHasBeenSet = false;
211
212 ZoneAwarenessConfig m_zoneAwarenessConfig;
213 bool m_zoneAwarenessConfigHasBeenSet = false;
214
216 bool m_dedicatedMasterTypeHasBeenSet = false;
217
218 int m_dedicatedMasterCount{0};
219 bool m_dedicatedMasterCountHasBeenSet = false;
220
221 bool m_warmEnabled{false};
222 bool m_warmEnabledHasBeenSet = false;
223
225 bool m_warmTypeHasBeenSet = false;
226
227 int m_warmCount{0};
228 bool m_warmCountHasBeenSet = false;
229
230 ColdStorageOptions m_coldStorageOptions;
231 bool m_coldStorageOptionsHasBeenSet = false;
232
233 bool m_multiAZWithStandbyEnabled{false};
234 bool m_multiAZWithStandbyEnabledHasBeenSet = false;
235
236 Aws::Vector<NodeOption> m_nodeOptions;
237 bool m_nodeOptionsHasBeenSet = false;
238 };
239
240} // namespace Model
241} // namespace OpenSearchService
242} // namespace Aws
ClusterConfig & WithInstanceType(OpenSearchPartitionInstanceType value)
ClusterConfig & WithDedicatedMasterCount(int value)
void SetDedicatedMasterType(OpenSearchPartitionInstanceType value)
const ZoneAwarenessConfig & GetZoneAwarenessConfig() const
void SetZoneAwarenessConfig(ZoneAwarenessConfigT &&value)
ClusterConfig & WithInstanceCount(int value)
OpenSearchWarmPartitionInstanceType GetWarmType() const
OpenSearchPartitionInstanceType GetDedicatedMasterType() const
ClusterConfig & WithZoneAwarenessEnabled(bool value)
void SetColdStorageOptions(ColdStorageOptionsT &&value)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
ClusterConfig & WithZoneAwarenessConfig(ZoneAwarenessConfigT &&value)
const ColdStorageOptions & GetColdStorageOptions() const
ClusterConfig & WithWarmType(OpenSearchWarmPartitionInstanceType value)
ClusterConfig & WithDedicatedMasterEnabled(bool value)
AWS_OPENSEARCHSERVICE_API ClusterConfig()=default
void SetInstanceType(OpenSearchPartitionInstanceType value)
ClusterConfig & WithDedicatedMasterType(OpenSearchPartitionInstanceType value)
void SetWarmType(OpenSearchWarmPartitionInstanceType value)
AWS_OPENSEARCHSERVICE_API ClusterConfig(Aws::Utils::Json::JsonView jsonValue)
ClusterConfig & WithMultiAZWithStandbyEnabled(bool value)
ClusterConfig & WithColdStorageOptions(ColdStorageOptionsT &&value)
AWS_OPENSEARCHSERVICE_API ClusterConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
ClusterConfig & AddNodeOptions(NodeOptionsT &&value)
OpenSearchPartitionInstanceType GetInstanceType() const
const Aws::Vector< NodeOption > & GetNodeOptions() const
ClusterConfig & WithWarmEnabled(bool value)
ClusterConfig & WithNodeOptions(NodeOptionsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue