AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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
33 {
34 public:
35 AWS_OPENSEARCHSERVICE_API NodeOption();
36 AWS_OPENSEARCHSERVICE_API NodeOption(Aws::Utils::Json::JsonView jsonValue);
37 AWS_OPENSEARCHSERVICE_API NodeOption& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const NodeOptionsNodeType& GetNodeType() const{ return m_nodeType; }
46 inline bool NodeTypeHasBeenSet() const { return m_nodeTypeHasBeenSet; }
47 inline void SetNodeType(const NodeOptionsNodeType& value) { m_nodeTypeHasBeenSet = true; m_nodeType = value; }
48 inline void SetNodeType(NodeOptionsNodeType&& value) { m_nodeTypeHasBeenSet = true; m_nodeType = std::move(value); }
49 inline NodeOption& WithNodeType(const NodeOptionsNodeType& value) { SetNodeType(value); return *this;}
50 inline NodeOption& WithNodeType(NodeOptionsNodeType&& value) { SetNodeType(std::move(value)); return *this;}
52
54
57 inline const NodeConfig& GetNodeConfig() const{ return m_nodeConfig; }
58 inline bool NodeConfigHasBeenSet() const { return m_nodeConfigHasBeenSet; }
59 inline void SetNodeConfig(const NodeConfig& value) { m_nodeConfigHasBeenSet = true; m_nodeConfig = value; }
60 inline void SetNodeConfig(NodeConfig&& value) { m_nodeConfigHasBeenSet = true; m_nodeConfig = std::move(value); }
61 inline NodeOption& WithNodeConfig(const NodeConfig& value) { SetNodeConfig(value); return *this;}
62 inline NodeOption& WithNodeConfig(NodeConfig&& value) { SetNodeConfig(std::move(value)); return *this;}
64 private:
65
66 NodeOptionsNodeType m_nodeType;
67 bool m_nodeTypeHasBeenSet = false;
68
69 NodeConfig m_nodeConfig;
70 bool m_nodeConfigHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace OpenSearchService
75} // namespace Aws
NodeOption & WithNodeType(NodeOptionsNodeType &&value)
Definition NodeOption.h:50
NodeOption & WithNodeConfig(NodeConfig &&value)
Definition NodeOption.h:62
const NodeConfig & GetNodeConfig() const
Definition NodeOption.h:57
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()
NodeOption & WithNodeConfig(const NodeConfig &value)
Definition NodeOption.h:61
void SetNodeType(NodeOptionsNodeType &&value)
Definition NodeOption.h:48
void SetNodeConfig(const NodeConfig &value)
Definition NodeOption.h:59
void SetNodeType(const NodeOptionsNodeType &value)
Definition NodeOption.h:47
void SetNodeConfig(NodeConfig &&value)
Definition NodeOption.h:60
const NodeOptionsNodeType & GetNodeType() const
Definition NodeOption.h:45
NodeOption & WithNodeType(const NodeOptionsNodeType &value)
Definition NodeOption.h:49
Aws::Utils::Json::JsonValue JsonValue