AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const OpenSearchPartitionInstanceType& GetType() const{ return m_type; }
57 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
58 inline void SetType(const OpenSearchPartitionInstanceType& value) { m_typeHasBeenSet = true; m_type = value; }
59 inline void SetType(OpenSearchPartitionInstanceType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
60 inline NodeConfig& WithType(const OpenSearchPartitionInstanceType& value) { SetType(value); return *this;}
61 inline NodeConfig& WithType(OpenSearchPartitionInstanceType&& value) { SetType(std::move(value)); return *this;}
63
65
68 inline int GetCount() const{ return m_count; }
69 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
70 inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; }
71 inline NodeConfig& WithCount(int value) { SetCount(value); return *this;}
73 private:
74
75 bool m_enabled;
76 bool m_enabledHasBeenSet = false;
77
79 bool m_typeHasBeenSet = false;
80
81 int m_count;
82 bool m_countHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace OpenSearchService
87} // namespace Aws
void SetType(const OpenSearchPartitionInstanceType &value)
Definition NodeConfig.h:58
AWS_OPENSEARCHSERVICE_API NodeConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
NodeConfig & WithEnabled(bool value)
Definition NodeConfig.h:49
AWS_OPENSEARCHSERVICE_API NodeConfig()
NodeConfig & WithType(const OpenSearchPartitionInstanceType &value)
Definition NodeConfig.h:60
const OpenSearchPartitionInstanceType & GetType() const
Definition NodeConfig.h:56
AWS_OPENSEARCHSERVICE_API NodeConfig(Aws::Utils::Json::JsonView jsonValue)
NodeConfig & WithType(OpenSearchPartitionInstanceType &&value)
Definition NodeConfig.h:61
void SetType(OpenSearchPartitionInstanceType &&value)
Definition NodeConfig.h:59
Aws::Utils::Json::JsonValue JsonValue