AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace OpenSearchService {
20namespace Model {
21
29 public:
30 AWS_OPENSEARCHSERVICE_API NodeConfig() = default;
31 AWS_OPENSEARCHSERVICE_API NodeConfig(Aws::Utils::Json::JsonView jsonValue);
32 AWS_OPENSEARCHSERVICE_API NodeConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline bool GetEnabled() const { return m_enabled; }
41 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
42 inline void SetEnabled(bool value) {
43 m_enabledHasBeenSet = true;
44 m_enabled = value;
45 }
46 inline NodeConfig& WithEnabled(bool value) {
47 SetEnabled(value);
48 return *this;
49 }
51
53
56 inline OpenSearchPartitionInstanceType GetType() const { return m_type; }
57 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
59 m_typeHasBeenSet = true;
60 m_type = value;
61 }
63 SetType(value);
64 return *this;
65 }
67
69
72 inline int GetCount() const { return m_count; }
73 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
74 inline void SetCount(int value) {
75 m_countHasBeenSet = true;
76 m_count = value;
77 }
78 inline NodeConfig& WithCount(int value) {
79 SetCount(value);
80 return *this;
81 }
83 private:
84 bool m_enabled{false};
85
87
88 int m_count{0};
89 bool m_enabledHasBeenSet = false;
90 bool m_typeHasBeenSet = false;
91 bool m_countHasBeenSet = false;
92};
93
94} // namespace Model
95} // namespace OpenSearchService
96} // 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:46
NodeConfig & WithType(OpenSearchPartitionInstanceType value)
Definition NodeConfig.h:62
AWS_OPENSEARCHSERVICE_API NodeConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVICE_API NodeConfig()=default
Aws::Utils::Json::JsonValue JsonValue