AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
DomainNodesStatus.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/opensearch/OpenSearchService_EXPORTS.h>
9#include <aws/opensearch/model/NodeStatus.h>
10#include <aws/opensearch/model/NodeType.h>
11#include <aws/opensearch/model/OpenSearchPartitionInstanceType.h>
12#include <aws/opensearch/model/VolumeType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace OpenSearchService {
24namespace Model {
25
33 public:
34 AWS_OPENSEARCHSERVICE_API DomainNodesStatus() = default;
35 AWS_OPENSEARCHSERVICE_API DomainNodesStatus(Aws::Utils::Json::JsonView jsonValue);
36 AWS_OPENSEARCHSERVICE_API DomainNodesStatus& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetNodeId() const { return m_nodeId; }
44 inline bool NodeIdHasBeenSet() const { return m_nodeIdHasBeenSet; }
45 template <typename NodeIdT = Aws::String>
46 void SetNodeId(NodeIdT&& value) {
47 m_nodeIdHasBeenSet = true;
48 m_nodeId = std::forward<NodeIdT>(value);
49 }
50 template <typename NodeIdT = Aws::String>
51 DomainNodesStatus& WithNodeId(NodeIdT&& value) {
52 SetNodeId(std::forward<NodeIdT>(value));
53 return *this;
54 }
56
58
61 inline NodeType GetNodeType() const { return m_nodeType; }
62 inline bool NodeTypeHasBeenSet() const { return m_nodeTypeHasBeenSet; }
63 inline void SetNodeType(NodeType value) {
64 m_nodeTypeHasBeenSet = true;
65 m_nodeType = value;
66 }
68 SetNodeType(value);
69 return *this;
70 }
72
74
77 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
78 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
79 template <typename AvailabilityZoneT = Aws::String>
80 void SetAvailabilityZone(AvailabilityZoneT&& value) {
81 m_availabilityZoneHasBeenSet = true;
82 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
83 }
84 template <typename AvailabilityZoneT = Aws::String>
85 DomainNodesStatus& WithAvailabilityZone(AvailabilityZoneT&& value) {
86 SetAvailabilityZone(std::forward<AvailabilityZoneT>(value));
87 return *this;
88 }
90
92
95 inline OpenSearchPartitionInstanceType GetInstanceType() const { return m_instanceType; }
96 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
98 m_instanceTypeHasBeenSet = true;
99 m_instanceType = value;
100 }
102 SetInstanceType(value);
103 return *this;
104 }
106
108
111 inline NodeStatus GetNodeStatus() const { return m_nodeStatus; }
112 inline bool NodeStatusHasBeenSet() const { return m_nodeStatusHasBeenSet; }
113 inline void SetNodeStatus(NodeStatus value) {
114 m_nodeStatusHasBeenSet = true;
115 m_nodeStatus = value;
116 }
118 SetNodeStatus(value);
119 return *this;
120 }
122
124
127 inline const Aws::String& GetStorageType() const { return m_storageType; }
128 inline bool StorageTypeHasBeenSet() const { return m_storageTypeHasBeenSet; }
129 template <typename StorageTypeT = Aws::String>
130 void SetStorageType(StorageTypeT&& value) {
131 m_storageTypeHasBeenSet = true;
132 m_storageType = std::forward<StorageTypeT>(value);
133 }
134 template <typename StorageTypeT = Aws::String>
135 DomainNodesStatus& WithStorageType(StorageTypeT&& value) {
136 SetStorageType(std::forward<StorageTypeT>(value));
137 return *this;
138 }
140
142
146 inline VolumeType GetStorageVolumeType() const { return m_storageVolumeType; }
147 inline bool StorageVolumeTypeHasBeenSet() const { return m_storageVolumeTypeHasBeenSet; }
148 inline void SetStorageVolumeType(VolumeType value) {
149 m_storageVolumeTypeHasBeenSet = true;
150 m_storageVolumeType = value;
151 }
154 return *this;
155 }
157
159
162 inline const Aws::String& GetStorageSize() const { return m_storageSize; }
163 inline bool StorageSizeHasBeenSet() const { return m_storageSizeHasBeenSet; }
164 template <typename StorageSizeT = Aws::String>
165 void SetStorageSize(StorageSizeT&& value) {
166 m_storageSizeHasBeenSet = true;
167 m_storageSize = std::forward<StorageSizeT>(value);
168 }
169 template <typename StorageSizeT = Aws::String>
170 DomainNodesStatus& WithStorageSize(StorageSizeT&& value) {
171 SetStorageSize(std::forward<StorageSizeT>(value));
172 return *this;
173 }
175 private:
176 Aws::String m_nodeId;
177
178 NodeType m_nodeType{NodeType::NOT_SET};
179
180 Aws::String m_availabilityZone;
181
183
184 NodeStatus m_nodeStatus{NodeStatus::NOT_SET};
185
186 Aws::String m_storageType;
187
188 VolumeType m_storageVolumeType{VolumeType::NOT_SET};
189
190 Aws::String m_storageSize;
191 bool m_nodeIdHasBeenSet = false;
192 bool m_nodeTypeHasBeenSet = false;
193 bool m_availabilityZoneHasBeenSet = false;
194 bool m_instanceTypeHasBeenSet = false;
195 bool m_nodeStatusHasBeenSet = false;
196 bool m_storageTypeHasBeenSet = false;
197 bool m_storageVolumeTypeHasBeenSet = false;
198 bool m_storageSizeHasBeenSet = false;
199};
200
201} // namespace Model
202} // namespace OpenSearchService
203} // namespace Aws
DomainNodesStatus & WithAvailabilityZone(AvailabilityZoneT &&value)
DomainNodesStatus & WithStorageVolumeType(VolumeType value)
DomainNodesStatus & WithNodeStatus(NodeStatus value)
DomainNodesStatus & WithStorageType(StorageTypeT &&value)
OpenSearchPartitionInstanceType GetInstanceType() const
AWS_OPENSEARCHSERVICE_API DomainNodesStatus()=default
void SetInstanceType(OpenSearchPartitionInstanceType value)
AWS_OPENSEARCHSERVICE_API DomainNodesStatus(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVICE_API DomainNodesStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
DomainNodesStatus & WithNodeType(NodeType value)
DomainNodesStatus & WithNodeId(NodeIdT &&value)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
DomainNodesStatus & WithStorageSize(StorageSizeT &&value)
void SetAvailabilityZone(AvailabilityZoneT &&value)
DomainNodesStatus & WithInstanceType(OpenSearchPartitionInstanceType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue