AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
NodeOption.h
1
6#pragma once
7#include <aws/opensearch/OpenSearchService_EXPORTS.h>
8#include <aws/opensearch/model/NodeConfig.h>
9#include <aws/opensearch/model/NodeOptionsNodeType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace OpenSearchService {
21namespace Model {
22
30 public:
31 AWS_OPENSEARCHSERVICE_API NodeOption() = default;
32 AWS_OPENSEARCHSERVICE_API NodeOption(Aws::Utils::Json::JsonView jsonValue);
33 AWS_OPENSEARCHSERVICE_API NodeOption& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline NodeOptionsNodeType GetNodeType() const { return m_nodeType; }
41 inline bool NodeTypeHasBeenSet() const { return m_nodeTypeHasBeenSet; }
42 inline void SetNodeType(NodeOptionsNodeType value) {
43 m_nodeTypeHasBeenSet = true;
44 m_nodeType = value;
45 }
47 SetNodeType(value);
48 return *this;
49 }
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) {
60 m_nodeConfigHasBeenSet = true;
61 m_nodeConfig = std::forward<NodeConfigT>(value);
62 }
63 template <typename NodeConfigT = NodeConfig>
64 NodeOption& WithNodeConfig(NodeConfigT&& value) {
65 SetNodeConfig(std::forward<NodeConfigT>(value));
66 return *this;
67 }
69 private:
71
72 NodeConfig m_nodeConfig;
73 bool m_nodeTypeHasBeenSet = false;
74 bool m_nodeConfigHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace OpenSearchService
79} // 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:46
void SetNodeConfig(NodeConfigT &&value)
Definition NodeOption.h:59
NodeOption & WithNodeConfig(NodeConfigT &&value)
Definition NodeOption.h:64
NodeOptionsNodeType GetNodeType() const
Definition NodeOption.h:40
void SetNodeType(NodeOptionsNodeType value)
Definition NodeOption.h:42
Aws::Utils::Json::JsonValue JsonValue