AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const OpenSearchPartitionInstanceType& GetInstanceType() const{ return m_instanceType; }
54 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
55 inline void SetInstanceType(const OpenSearchPartitionInstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
56 inline void SetInstanceType(OpenSearchPartitionInstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
58 inline ClusterConfig& WithInstanceType(OpenSearchPartitionInstanceType&& value) { SetInstanceType(std::move(value)); return *this;}
60
62
66 inline int GetInstanceCount() const{ return m_instanceCount; }
67 inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
68 inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; }
69 inline ClusterConfig& WithInstanceCount(int value) { SetInstanceCount(value); return *this;}
71
73
78 inline bool GetDedicatedMasterEnabled() const{ return m_dedicatedMasterEnabled; }
79 inline bool DedicatedMasterEnabledHasBeenSet() const { return m_dedicatedMasterEnabledHasBeenSet; }
80 inline void SetDedicatedMasterEnabled(bool value) { m_dedicatedMasterEnabledHasBeenSet = true; m_dedicatedMasterEnabled = value; }
81 inline ClusterConfig& WithDedicatedMasterEnabled(bool value) { SetDedicatedMasterEnabled(value); return *this;}
83
85
91 inline bool GetZoneAwarenessEnabled() const{ return m_zoneAwarenessEnabled; }
92 inline bool ZoneAwarenessEnabledHasBeenSet() const { return m_zoneAwarenessEnabledHasBeenSet; }
93 inline void SetZoneAwarenessEnabled(bool value) { m_zoneAwarenessEnabledHasBeenSet = true; m_zoneAwarenessEnabled = value; }
94 inline ClusterConfig& WithZoneAwarenessEnabled(bool value) { SetZoneAwarenessEnabled(value); return *this;}
96
98
102 inline const ZoneAwarenessConfig& GetZoneAwarenessConfig() const{ return m_zoneAwarenessConfig; }
103 inline bool ZoneAwarenessConfigHasBeenSet() const { return m_zoneAwarenessConfigHasBeenSet; }
104 inline void SetZoneAwarenessConfig(const ZoneAwarenessConfig& value) { m_zoneAwarenessConfigHasBeenSet = true; m_zoneAwarenessConfig = value; }
105 inline void SetZoneAwarenessConfig(ZoneAwarenessConfig&& value) { m_zoneAwarenessConfigHasBeenSet = true; m_zoneAwarenessConfig = std::move(value); }
107 inline ClusterConfig& WithZoneAwarenessConfig(ZoneAwarenessConfig&& value) { SetZoneAwarenessConfig(std::move(value)); return *this;}
109
111
115 inline const OpenSearchPartitionInstanceType& GetDedicatedMasterType() const{ return m_dedicatedMasterType; }
116 inline bool DedicatedMasterTypeHasBeenSet() const { return m_dedicatedMasterTypeHasBeenSet; }
117 inline void SetDedicatedMasterType(const OpenSearchPartitionInstanceType& value) { m_dedicatedMasterTypeHasBeenSet = true; m_dedicatedMasterType = value; }
118 inline void SetDedicatedMasterType(OpenSearchPartitionInstanceType&& value) { m_dedicatedMasterTypeHasBeenSet = true; m_dedicatedMasterType = std::move(value); }
122
124
128 inline int GetDedicatedMasterCount() const{ return m_dedicatedMasterCount; }
129 inline bool DedicatedMasterCountHasBeenSet() const { return m_dedicatedMasterCountHasBeenSet; }
130 inline void SetDedicatedMasterCount(int value) { m_dedicatedMasterCountHasBeenSet = true; m_dedicatedMasterCount = value; }
131 inline ClusterConfig& WithDedicatedMasterCount(int value) { SetDedicatedMasterCount(value); return *this;}
133
135
138 inline bool GetWarmEnabled() const{ return m_warmEnabled; }
139 inline bool WarmEnabledHasBeenSet() const { return m_warmEnabledHasBeenSet; }
140 inline void SetWarmEnabled(bool value) { m_warmEnabledHasBeenSet = true; m_warmEnabled = value; }
141 inline ClusterConfig& WithWarmEnabled(bool value) { SetWarmEnabled(value); return *this;}
143
145
148 inline const OpenSearchWarmPartitionInstanceType& GetWarmType() const{ return m_warmType; }
149 inline bool WarmTypeHasBeenSet() const { return m_warmTypeHasBeenSet; }
150 inline void SetWarmType(const OpenSearchWarmPartitionInstanceType& value) { m_warmTypeHasBeenSet = true; m_warmType = value; }
151 inline void SetWarmType(OpenSearchWarmPartitionInstanceType&& value) { m_warmTypeHasBeenSet = true; m_warmType = std::move(value); }
152 inline ClusterConfig& WithWarmType(const OpenSearchWarmPartitionInstanceType& value) { SetWarmType(value); return *this;}
153 inline ClusterConfig& WithWarmType(OpenSearchWarmPartitionInstanceType&& value) { SetWarmType(std::move(value)); return *this;}
155
157
160 inline int GetWarmCount() const{ return m_warmCount; }
161 inline bool WarmCountHasBeenSet() const { return m_warmCountHasBeenSet; }
162 inline void SetWarmCount(int value) { m_warmCountHasBeenSet = true; m_warmCount = value; }
163 inline ClusterConfig& WithWarmCount(int value) { SetWarmCount(value); return *this;}
165
167
170 inline const ColdStorageOptions& GetColdStorageOptions() const{ return m_coldStorageOptions; }
171 inline bool ColdStorageOptionsHasBeenSet() const { return m_coldStorageOptionsHasBeenSet; }
172 inline void SetColdStorageOptions(const ColdStorageOptions& value) { m_coldStorageOptionsHasBeenSet = true; m_coldStorageOptions = value; }
173 inline void SetColdStorageOptions(ColdStorageOptions&& value) { m_coldStorageOptionsHasBeenSet = true; m_coldStorageOptions = std::move(value); }
175 inline ClusterConfig& WithColdStorageOptions(ColdStorageOptions&& value) { SetColdStorageOptions(std::move(value)); return *this;}
177
179
185 inline bool GetMultiAZWithStandbyEnabled() const{ return m_multiAZWithStandbyEnabled; }
186 inline bool MultiAZWithStandbyEnabledHasBeenSet() const { return m_multiAZWithStandbyEnabledHasBeenSet; }
187 inline void SetMultiAZWithStandbyEnabled(bool value) { m_multiAZWithStandbyEnabledHasBeenSet = true; m_multiAZWithStandbyEnabled = value; }
190
192
195 inline const Aws::Vector<NodeOption>& GetNodeOptions() const{ return m_nodeOptions; }
196 inline bool NodeOptionsHasBeenSet() const { return m_nodeOptionsHasBeenSet; }
197 inline void SetNodeOptions(const Aws::Vector<NodeOption>& value) { m_nodeOptionsHasBeenSet = true; m_nodeOptions = value; }
198 inline void SetNodeOptions(Aws::Vector<NodeOption>&& value) { m_nodeOptionsHasBeenSet = true; m_nodeOptions = std::move(value); }
199 inline ClusterConfig& WithNodeOptions(const Aws::Vector<NodeOption>& value) { SetNodeOptions(value); return *this;}
200 inline ClusterConfig& WithNodeOptions(Aws::Vector<NodeOption>&& value) { SetNodeOptions(std::move(value)); return *this;}
201 inline ClusterConfig& AddNodeOptions(const NodeOption& value) { m_nodeOptionsHasBeenSet = true; m_nodeOptions.push_back(value); return *this; }
202 inline ClusterConfig& AddNodeOptions(NodeOption&& value) { m_nodeOptionsHasBeenSet = true; m_nodeOptions.push_back(std::move(value)); return *this; }
204 private:
205
206 OpenSearchPartitionInstanceType m_instanceType;
207 bool m_instanceTypeHasBeenSet = false;
208
209 int m_instanceCount;
210 bool m_instanceCountHasBeenSet = false;
211
212 bool m_dedicatedMasterEnabled;
213 bool m_dedicatedMasterEnabledHasBeenSet = false;
214
215 bool m_zoneAwarenessEnabled;
216 bool m_zoneAwarenessEnabledHasBeenSet = false;
217
218 ZoneAwarenessConfig m_zoneAwarenessConfig;
219 bool m_zoneAwarenessConfigHasBeenSet = false;
220
221 OpenSearchPartitionInstanceType m_dedicatedMasterType;
222 bool m_dedicatedMasterTypeHasBeenSet = false;
223
224 int m_dedicatedMasterCount;
225 bool m_dedicatedMasterCountHasBeenSet = false;
226
227 bool m_warmEnabled;
228 bool m_warmEnabledHasBeenSet = false;
229
231 bool m_warmTypeHasBeenSet = false;
232
233 int m_warmCount;
234 bool m_warmCountHasBeenSet = false;
235
236 ColdStorageOptions m_coldStorageOptions;
237 bool m_coldStorageOptionsHasBeenSet = false;
238
239 bool m_multiAZWithStandbyEnabled;
240 bool m_multiAZWithStandbyEnabledHasBeenSet = false;
241
242 Aws::Vector<NodeOption> m_nodeOptions;
243 bool m_nodeOptionsHasBeenSet = false;
244 };
245
246} // namespace Model
247} // namespace OpenSearchService
248} // namespace Aws
const OpenSearchPartitionInstanceType & GetInstanceType() const
void SetWarmType(const OpenSearchWarmPartitionInstanceType &value)
ClusterConfig & WithDedicatedMasterCount(int value)
AWS_OPENSEARCHSERVICE_API ClusterConfig()
void SetColdStorageOptions(const ColdStorageOptions &value)
ClusterConfig & WithInstanceType(const OpenSearchPartitionInstanceType &value)
void SetColdStorageOptions(ColdStorageOptions &&value)
ClusterConfig & WithNodeOptions(Aws::Vector< NodeOption > &&value)
const ZoneAwarenessConfig & GetZoneAwarenessConfig() const
void SetNodeOptions(const Aws::Vector< NodeOption > &value)
ClusterConfig & WithDedicatedMasterType(const OpenSearchPartitionInstanceType &value)
ClusterConfig & AddNodeOptions(const NodeOption &value)
ClusterConfig & WithInstanceCount(int value)
ClusterConfig & WithNodeOptions(const Aws::Vector< NodeOption > &value)
void SetDedicatedMasterType(const OpenSearchPartitionInstanceType &value)
void SetInstanceType(OpenSearchPartitionInstanceType &&value)
ClusterConfig & WithZoneAwarenessEnabled(bool value)
ClusterConfig & WithWarmType(const OpenSearchWarmPartitionInstanceType &value)
void SetWarmType(OpenSearchWarmPartitionInstanceType &&value)
void SetDedicatedMasterType(OpenSearchPartitionInstanceType &&value)
ClusterConfig & WithZoneAwarenessConfig(const ZoneAwarenessConfig &value)
void SetZoneAwarenessConfig(ZoneAwarenessConfig &&value)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
ClusterConfig & WithWarmType(OpenSearchWarmPartitionInstanceType &&value)
const ColdStorageOptions & GetColdStorageOptions() const
ClusterConfig & WithDedicatedMasterEnabled(bool value)
void SetInstanceType(const OpenSearchPartitionInstanceType &value)
ClusterConfig & WithZoneAwarenessConfig(ZoneAwarenessConfig &&value)
void SetZoneAwarenessConfig(const ZoneAwarenessConfig &value)
ClusterConfig & WithInstanceType(OpenSearchPartitionInstanceType &&value)
ClusterConfig & WithDedicatedMasterType(OpenSearchPartitionInstanceType &&value)
AWS_OPENSEARCHSERVICE_API ClusterConfig(Aws::Utils::Json::JsonView jsonValue)
ClusterConfig & WithMultiAZWithStandbyEnabled(bool value)
ClusterConfig & WithColdStorageOptions(const ColdStorageOptions &value)
ClusterConfig & WithColdStorageOptions(ColdStorageOptions &&value)
const OpenSearchPartitionInstanceType & GetDedicatedMasterType() const
void SetNodeOptions(Aws::Vector< NodeOption > &&value)
AWS_OPENSEARCHSERVICE_API ClusterConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
const OpenSearchWarmPartitionInstanceType & GetWarmType() const
ClusterConfig & AddNodeOptions(NodeOption &&value)
const Aws::Vector< NodeOption > & GetNodeOptions() const
ClusterConfig & WithWarmEnabled(bool value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue