AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
NodeOption.h
1
6#pragma once
7#include <aws/opensearch/OpenSearchService_EXPORTS.h>
8#include <aws/opensearch/model/NodeOptionsNodeType.h>
9#include <aws/opensearch/model/NodeConfig.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace OpenSearchService
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_OPENSEARCHSERVICE_API NodeOption() = default;
37 AWS_OPENSEARCHSERVICE_API NodeOption(Aws::Utils::Json::JsonView jsonValue);
38 AWS_OPENSEARCHSERVICE_API NodeOption& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline NodeOptionsNodeType GetNodeType() const { return m_nodeType; }
47 inline bool NodeTypeHasBeenSet() const { return m_nodeTypeHasBeenSet; }
48 inline void SetNodeType(NodeOptionsNodeType value) { m_nodeTypeHasBeenSet = true; m_nodeType = value; }
49 inline NodeOption& WithNodeType(NodeOptionsNodeType value) { SetNodeType(value); return *this;}
51
53
56 inline const NodeConfig& GetNodeConfig() const { return m_nodeConfig; }
57 inline bool NodeConfigHasBeenSet() const { return m_nodeConfigHasBeenSet; }
58 template<typename NodeConfigT = NodeConfig>
59 void SetNodeConfig(NodeConfigT&& value) { m_nodeConfigHasBeenSet = true; m_nodeConfig = std::forward<NodeConfigT>(value); }
60 template<typename NodeConfigT = NodeConfig>
61 NodeOption& WithNodeConfig(NodeConfigT&& value) { SetNodeConfig(std::forward<NodeConfigT>(value)); return *this;}
63 private:
64
66 bool m_nodeTypeHasBeenSet = false;
67
68 NodeConfig m_nodeConfig;
69 bool m_nodeConfigHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace OpenSearchService
74} // namespace Aws
const NodeConfig & GetNodeConfig() const
Definition NodeOption.h:56
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_OPENSEARCHSERVICE_API NodeOption(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVICE_API NodeOption & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVICE_API NodeOption()=default
NodeOption & WithNodeType(NodeOptionsNodeType value)
Definition NodeOption.h:49
void SetNodeConfig(NodeConfigT &&value)
Definition NodeOption.h:59
NodeOption & WithNodeConfig(NodeConfigT &&value)
Definition NodeOption.h:61
NodeOptionsNodeType GetNodeType() const
Definition NodeOption.h:46
void SetNodeType(NodeOptionsNodeType value)
Definition NodeOption.h:48
Aws::Utils::Json::JsonValue JsonValue