AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DomainNodesStatus.h
1
6#pragma once
7#include <aws/opensearch/OpenSearchService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/opensearch/model/NodeType.h>
10#include <aws/opensearch/model/OpenSearchPartitionInstanceType.h>
11#include <aws/opensearch/model/NodeStatus.h>
12#include <aws/opensearch/model/VolumeType.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace OpenSearchService
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_OPENSEARCHSERVICE_API DomainNodesStatus() = default;
40 AWS_OPENSEARCHSERVICE_API DomainNodesStatus(Aws::Utils::Json::JsonView jsonValue);
41 AWS_OPENSEARCHSERVICE_API DomainNodesStatus& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetNodeId() const { return m_nodeId; }
50 inline bool NodeIdHasBeenSet() const { return m_nodeIdHasBeenSet; }
51 template<typename NodeIdT = Aws::String>
52 void SetNodeId(NodeIdT&& value) { m_nodeIdHasBeenSet = true; m_nodeId = std::forward<NodeIdT>(value); }
53 template<typename NodeIdT = Aws::String>
54 DomainNodesStatus& WithNodeId(NodeIdT&& value) { SetNodeId(std::forward<NodeIdT>(value)); return *this;}
56
58
61 inline NodeType GetNodeType() const { return m_nodeType; }
62 inline bool NodeTypeHasBeenSet() const { return m_nodeTypeHasBeenSet; }
63 inline void SetNodeType(NodeType value) { m_nodeTypeHasBeenSet = true; m_nodeType = value; }
64 inline DomainNodesStatus& WithNodeType(NodeType value) { SetNodeType(value); return *this;}
66
68
71 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
72 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
73 template<typename AvailabilityZoneT = Aws::String>
74 void SetAvailabilityZone(AvailabilityZoneT&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::forward<AvailabilityZoneT>(value); }
75 template<typename AvailabilityZoneT = Aws::String>
76 DomainNodesStatus& WithAvailabilityZone(AvailabilityZoneT&& value) { SetAvailabilityZone(std::forward<AvailabilityZoneT>(value)); return *this;}
78
80
83 inline OpenSearchPartitionInstanceType GetInstanceType() const { return m_instanceType; }
84 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
85 inline void SetInstanceType(OpenSearchPartitionInstanceType value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
88
90
93 inline NodeStatus GetNodeStatus() const { return m_nodeStatus; }
94 inline bool NodeStatusHasBeenSet() const { return m_nodeStatusHasBeenSet; }
95 inline void SetNodeStatus(NodeStatus value) { m_nodeStatusHasBeenSet = true; m_nodeStatus = value; }
96 inline DomainNodesStatus& WithNodeStatus(NodeStatus value) { SetNodeStatus(value); return *this;}
98
100
103 inline const Aws::String& GetStorageType() const { return m_storageType; }
104 inline bool StorageTypeHasBeenSet() const { return m_storageTypeHasBeenSet; }
105 template<typename StorageTypeT = Aws::String>
106 void SetStorageType(StorageTypeT&& value) { m_storageTypeHasBeenSet = true; m_storageType = std::forward<StorageTypeT>(value); }
107 template<typename StorageTypeT = Aws::String>
108 DomainNodesStatus& WithStorageType(StorageTypeT&& value) { SetStorageType(std::forward<StorageTypeT>(value)); return *this;}
110
112
116 inline VolumeType GetStorageVolumeType() const { return m_storageVolumeType; }
117 inline bool StorageVolumeTypeHasBeenSet() const { return m_storageVolumeTypeHasBeenSet; }
118 inline void SetStorageVolumeType(VolumeType value) { m_storageVolumeTypeHasBeenSet = true; m_storageVolumeType = value; }
121
123
126 inline const Aws::String& GetStorageSize() const { return m_storageSize; }
127 inline bool StorageSizeHasBeenSet() const { return m_storageSizeHasBeenSet; }
128 template<typename StorageSizeT = Aws::String>
129 void SetStorageSize(StorageSizeT&& value) { m_storageSizeHasBeenSet = true; m_storageSize = std::forward<StorageSizeT>(value); }
130 template<typename StorageSizeT = Aws::String>
131 DomainNodesStatus& WithStorageSize(StorageSizeT&& value) { SetStorageSize(std::forward<StorageSizeT>(value)); return *this;}
133 private:
134
135 Aws::String m_nodeId;
136 bool m_nodeIdHasBeenSet = false;
137
138 NodeType m_nodeType{NodeType::NOT_SET};
139 bool m_nodeTypeHasBeenSet = false;
140
141 Aws::String m_availabilityZone;
142 bool m_availabilityZoneHasBeenSet = false;
143
145 bool m_instanceTypeHasBeenSet = false;
146
147 NodeStatus m_nodeStatus{NodeStatus::NOT_SET};
148 bool m_nodeStatusHasBeenSet = false;
149
150 Aws::String m_storageType;
151 bool m_storageTypeHasBeenSet = false;
152
153 VolumeType m_storageVolumeType{VolumeType::NOT_SET};
154 bool m_storageVolumeTypeHasBeenSet = false;
155
156 Aws::String m_storageSize;
157 bool m_storageSizeHasBeenSet = false;
158 };
159
160} // namespace Model
161} // namespace OpenSearchService
162} // 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