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>
26namespace OpenSearchService
66 inline void SetInstanceCount(
int value) { m_instanceCountHasBeenSet =
true; m_instanceCount = value; }
91 inline void SetZoneAwarenessEnabled(
bool value) { m_zoneAwarenessEnabledHasBeenSet =
true; m_zoneAwarenessEnabled = value; }
102 template<
typename ZoneAwarenessConfigT = ZoneAwarenessConfig>
103 void SetZoneAwarenessConfig(ZoneAwarenessConfigT&& value) { m_zoneAwarenessConfigHasBeenSet =
true; m_zoneAwarenessConfig = std::forward<ZoneAwarenessConfigT>(value); }
104 template<
typename ZoneAwarenessConfigT = ZoneAwarenessConfig>
136 inline void SetWarmEnabled(
bool value) { m_warmEnabledHasBeenSet =
true; m_warmEnabled = value; }
156 inline void SetWarmCount(
int value) { m_warmCountHasBeenSet =
true; m_warmCount = value; }
166 template<
typename ColdStorageOptionsT = ColdStorageOptions>
167 void SetColdStorageOptions(ColdStorageOptionsT&& value) { m_coldStorageOptionsHasBeenSet =
true; m_coldStorageOptions = std::forward<ColdStorageOptionsT>(value); }
168 template<
typename ColdStorageOptionsT = ColdStorageOptions>
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>>
195 template<
typename NodeOptionsT = NodeOption>
196 ClusterConfig&
AddNodeOptions(NodeOptionsT&& value) { m_nodeOptionsHasBeenSet =
true; m_nodeOptions.emplace_back(std::forward<NodeOptionsT>(value));
return *
this; }
201 bool m_instanceTypeHasBeenSet =
false;
203 int m_instanceCount{0};
204 bool m_instanceCountHasBeenSet =
false;
206 bool m_dedicatedMasterEnabled{
false};
207 bool m_dedicatedMasterEnabledHasBeenSet =
false;
209 bool m_zoneAwarenessEnabled{
false};
210 bool m_zoneAwarenessEnabledHasBeenSet =
false;
212 ZoneAwarenessConfig m_zoneAwarenessConfig;
213 bool m_zoneAwarenessConfigHasBeenSet =
false;
216 bool m_dedicatedMasterTypeHasBeenSet =
false;
218 int m_dedicatedMasterCount{0};
219 bool m_dedicatedMasterCountHasBeenSet =
false;
221 bool m_warmEnabled{
false};
222 bool m_warmEnabledHasBeenSet =
false;
225 bool m_warmTypeHasBeenSet =
false;
228 bool m_warmCountHasBeenSet =
false;
230 ColdStorageOptions m_coldStorageOptions;
231 bool m_coldStorageOptionsHasBeenSet =
false;
233 bool m_multiAZWithStandbyEnabled{
false};
234 bool m_multiAZWithStandbyEnabledHasBeenSet =
false;
237 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