7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/opensearch/OpenSearchService_EXPORTS.h>
9#include <aws/opensearch/model/ColdStorageOptions.h>
10#include <aws/opensearch/model/NodeOption.h>
11#include <aws/opensearch/model/OpenSearchPartitionInstanceType.h>
12#include <aws/opensearch/model/OpenSearchWarmPartitionInstanceType.h>
13#include <aws/opensearch/model/ZoneAwarenessConfig.h>
24namespace OpenSearchService {
50 m_instanceTypeHasBeenSet =
true;
51 m_instanceType = value;
67 m_instanceCountHasBeenSet =
true;
68 m_instanceCount = value;
85 m_dedicatedMasterEnabledHasBeenSet =
true;
86 m_dedicatedMasterEnabled = value;
104 m_zoneAwarenessEnabledHasBeenSet =
true;
105 m_zoneAwarenessEnabled = value;
120 template <
typename ZoneAwarenessConfigT = ZoneAwarenessConfig>
122 m_zoneAwarenessConfigHasBeenSet =
true;
123 m_zoneAwarenessConfig = std::forward<ZoneAwarenessConfigT>(value);
125 template <
typename ZoneAwarenessConfigT = ZoneAwarenessConfig>
140 m_dedicatedMasterTypeHasBeenSet =
true;
141 m_dedicatedMasterType = value;
157 m_dedicatedMasterCountHasBeenSet =
true;
158 m_dedicatedMasterCount = value;
173 m_warmEnabledHasBeenSet =
true;
174 m_warmEnabled = value;
189 m_warmTypeHasBeenSet =
true;
205 m_warmCountHasBeenSet =
true;
220 template <
typename ColdStorageOptionsT = ColdStorageOptions>
222 m_coldStorageOptionsHasBeenSet =
true;
223 m_coldStorageOptions = std::forward<ColdStorageOptionsT>(value);
225 template <
typename ColdStorageOptionsT = ColdStorageOptions>
242 m_multiAZWithStandbyEnabledHasBeenSet =
true;
243 m_multiAZWithStandbyEnabled = value;
257 template <
typename NodeOptionsT = Aws::Vector<NodeOption>>
259 m_nodeOptionsHasBeenSet =
true;
260 m_nodeOptions = std::forward<NodeOptionsT>(value);
262 template <
typename NodeOptionsT = Aws::Vector<NodeOption>>
267 template <
typename NodeOptionsT = NodeOption>
269 m_nodeOptionsHasBeenSet =
true;
270 m_nodeOptions.emplace_back(std::forward<NodeOptionsT>(value));
277 int m_instanceCount{0};
279 bool m_dedicatedMasterEnabled{
false};
281 bool m_zoneAwarenessEnabled{
false};
283 ZoneAwarenessConfig m_zoneAwarenessConfig;
287 int m_dedicatedMasterCount{0};
289 bool m_warmEnabled{
false};
295 ColdStorageOptions m_coldStorageOptions;
297 bool m_multiAZWithStandbyEnabled{
false};
300 bool m_instanceTypeHasBeenSet =
false;
301 bool m_instanceCountHasBeenSet =
false;
302 bool m_dedicatedMasterEnabledHasBeenSet =
false;
303 bool m_zoneAwarenessEnabledHasBeenSet =
false;
304 bool m_zoneAwarenessConfigHasBeenSet =
false;
305 bool m_dedicatedMasterTypeHasBeenSet =
false;
306 bool m_dedicatedMasterCountHasBeenSet =
false;
307 bool m_warmEnabledHasBeenSet =
false;
308 bool m_warmTypeHasBeenSet =
false;
309 bool m_warmCountHasBeenSet =
false;
310 bool m_coldStorageOptionsHasBeenSet =
false;
311 bool m_multiAZWithStandbyEnabledHasBeenSet =
false;
312 bool m_nodeOptionsHasBeenSet =
false;
ClusterConfig & WithWarmCount(int value)
bool WarmTypeHasBeenSet() const
ClusterConfig & WithInstanceType(OpenSearchPartitionInstanceType value)
bool ZoneAwarenessEnabledHasBeenSet() const
ClusterConfig & WithDedicatedMasterCount(int value)
void SetDedicatedMasterType(OpenSearchPartitionInstanceType value)
const ZoneAwarenessConfig & GetZoneAwarenessConfig() const
bool NodeOptionsHasBeenSet() const
bool MultiAZWithStandbyEnabledHasBeenSet() const
void SetZoneAwarenessConfig(ZoneAwarenessConfigT &&value)
int GetInstanceCount() const
void SetDedicatedMasterCount(int value)
void SetDedicatedMasterEnabled(bool value)
bool InstanceCountHasBeenSet() const
void SetMultiAZWithStandbyEnabled(bool value)
ClusterConfig & WithInstanceCount(int value)
OpenSearchWarmPartitionInstanceType GetWarmType() const
bool GetDedicatedMasterEnabled() const
OpenSearchPartitionInstanceType GetDedicatedMasterType() const
ClusterConfig & WithZoneAwarenessEnabled(bool value)
void SetWarmEnabled(bool value)
void SetNodeOptions(NodeOptionsT &&value)
void SetColdStorageOptions(ColdStorageOptionsT &&value)
bool DedicatedMasterEnabledHasBeenSet() const
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
bool DedicatedMasterTypeHasBeenSet() const
void SetInstanceType(OpenSearchPartitionInstanceType value)
bool GetWarmEnabled() const
int GetDedicatedMasterCount() const
bool DedicatedMasterCountHasBeenSet() const
void SetZoneAwarenessEnabled(bool value)
ClusterConfig & WithDedicatedMasterType(OpenSearchPartitionInstanceType value)
void SetWarmType(OpenSearchWarmPartitionInstanceType value)
bool ZoneAwarenessConfigHasBeenSet() const
bool WarmCountHasBeenSet() const
AWS_OPENSEARCHSERVICE_API ClusterConfig(Aws::Utils::Json::JsonView jsonValue)
bool ColdStorageOptionsHasBeenSet() const
ClusterConfig & WithMultiAZWithStandbyEnabled(bool value)
ClusterConfig & WithColdStorageOptions(ColdStorageOptionsT &&value)
bool WarmEnabledHasBeenSet() const
void SetInstanceCount(int value)
bool GetMultiAZWithStandbyEnabled() const
AWS_OPENSEARCHSERVICE_API ClusterConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetWarmCount(int value)
ClusterConfig & AddNodeOptions(NodeOptionsT &&value)
OpenSearchPartitionInstanceType GetInstanceType() const
const Aws::Vector< NodeOption > & GetNodeOptions() const
ClusterConfig & WithWarmEnabled(bool value)
bool InstanceTypeHasBeenSet() const
bool GetZoneAwarenessEnabled() const
ClusterConfig & WithNodeOptions(NodeOptionsT &&value)
OpenSearchWarmPartitionInstanceType
OpenSearchPartitionInstanceType
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue