AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
NodeConfig.h
1
6#pragma once
7#include <aws/opensearch/OpenSearchService_EXPORTS.h>
8#include <aws/opensearch/model/OpenSearchPartitionInstanceType.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace OpenSearchService
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_OPENSEARCHSERVICE_API NodeConfig() = default;
36 AWS_OPENSEARCHSERVICE_API NodeConfig(Aws::Utils::Json::JsonView jsonValue);
37 AWS_OPENSEARCHSERVICE_API NodeConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline bool GetEnabled() const { return m_enabled; }
47 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
48 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
49 inline NodeConfig& WithEnabled(bool value) { SetEnabled(value); return *this;}
51
53
56 inline OpenSearchPartitionInstanceType GetType() const { return m_type; }
57 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
58 inline void SetType(OpenSearchPartitionInstanceType value) { m_typeHasBeenSet = true; m_type = value; }
59 inline NodeConfig& WithType(OpenSearchPartitionInstanceType value) { SetType(value); return *this;}
61
63
66 inline int GetCount() const { return m_count; }
67 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
68 inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; }
69 inline NodeConfig& WithCount(int value) { SetCount(value); return *this;}
71 private:
72
73 bool m_enabled{false};
74 bool m_enabledHasBeenSet = false;
75
77 bool m_typeHasBeenSet = false;
78
79 int m_count{0};
80 bool m_countHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace OpenSearchService
85} // namespace Aws
OpenSearchPartitionInstanceType GetType() const
Definition NodeConfig.h:56
AWS_OPENSEARCHSERVICE_API NodeConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetType(OpenSearchPartitionInstanceType value)
Definition NodeConfig.h:58
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
NodeConfig & WithEnabled(bool value)
Definition NodeConfig.h:49
NodeConfig & WithType(OpenSearchPartitionInstanceType value)
Definition NodeConfig.h:59
AWS_OPENSEARCHSERVICE_API NodeConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVICE_API NodeConfig()=default
Aws::Utils::Json::JsonValue JsonValue