AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
GetNodeResult.h
1
6#pragma once
7#include <aws/backup-external/BackupExternal_EXPORTS.h>
8#include <aws/backup-external/model/ApplianceEnvironmentType.h>
9#include <aws/backup-external/model/NodeHealthStatus.h>
10#include <aws/backup-external/model/NodeManagementStatus.h>
11#include <aws/backup-external/model/Notification.h>
12#include <aws/core/http/HttpResponse.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <aws/core/utils/memory/stl/AWSString.h>
16#include <aws/core/utils/memory/stl/AWSVector.h>
17
18#include <utility>
19
20namespace Aws {
21template <typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils {
25namespace Json {
26class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace BackupExternal {
30namespace Model {
32 public:
33 AWS_BACKUPEXTERNAL_API GetNodeResult() = default;
36
38
41 inline const Aws::String& GetApplianceArn() const { return m_applianceArn; }
42 template <typename ApplianceArnT = Aws::String>
43 void SetApplianceArn(ApplianceArnT&& value) {
44 m_applianceArnHasBeenSet = true;
45 m_applianceArn = std::forward<ApplianceArnT>(value);
46 }
47 template <typename ApplianceArnT = Aws::String>
48 GetNodeResult& WithApplianceArn(ApplianceArnT&& value) {
49 SetApplianceArn(std::forward<ApplianceArnT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetNodeArn() const { return m_nodeArn; }
59 template <typename NodeArnT = Aws::String>
60 void SetNodeArn(NodeArnT&& value) {
61 m_nodeArnHasBeenSet = true;
62 m_nodeArn = std::forward<NodeArnT>(value);
63 }
64 template <typename NodeArnT = Aws::String>
65 GetNodeResult& WithNodeArn(NodeArnT&& value) {
66 SetNodeArn(std::forward<NodeArnT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetIpAddress() const { return m_ipAddress; }
76 template <typename IpAddressT = Aws::String>
77 void SetIpAddress(IpAddressT&& value) {
78 m_ipAddressHasBeenSet = true;
79 m_ipAddress = std::forward<IpAddressT>(value);
80 }
81 template <typename IpAddressT = Aws::String>
82 GetNodeResult& WithIpAddress(IpAddressT&& value) {
83 SetIpAddress(std::forward<IpAddressT>(value));
84 return *this;
85 }
87
89
92 inline ApplianceEnvironmentType GetEnvironmentType() const { return m_environmentType; }
94 m_environmentTypeHasBeenSet = true;
95 m_environmentType = value;
96 }
98 SetEnvironmentType(value);
99 return *this;
100 }
102
104
107 inline NodeManagementStatus GetNodeManagementStatus() const { return m_nodeManagementStatus; }
109 m_nodeManagementStatusHasBeenSet = true;
110 m_nodeManagementStatus = value;
111 }
114 return *this;
115 }
117
119
122 inline NodeHealthStatus GetHealthStatus() const { return m_healthStatus; }
124 m_healthStatusHasBeenSet = true;
125 m_healthStatus = value;
126 }
128 SetHealthStatus(value);
129 return *this;
130 }
132
134
137 inline const Aws::Vector<Notification>& GetNotifications() const { return m_notifications; }
138 template <typename NotificationsT = Aws::Vector<Notification>>
139 void SetNotifications(NotificationsT&& value) {
140 m_notificationsHasBeenSet = true;
141 m_notifications = std::forward<NotificationsT>(value);
142 }
143 template <typename NotificationsT = Aws::Vector<Notification>>
144 GetNodeResult& WithNotifications(NotificationsT&& value) {
145 SetNotifications(std::forward<NotificationsT>(value));
146 return *this;
147 }
148 template <typename NotificationsT = Notification>
149 GetNodeResult& AddNotifications(NotificationsT&& value) {
150 m_notificationsHasBeenSet = true;
151 m_notifications.emplace_back(std::forward<NotificationsT>(value));
152 return *this;
153 }
155
157
160 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
161 template <typename CreatedAtT = Aws::Utils::DateTime>
162 void SetCreatedAt(CreatedAtT&& value) {
163 m_createdAtHasBeenSet = true;
164 m_createdAt = std::forward<CreatedAtT>(value);
165 }
166 template <typename CreatedAtT = Aws::Utils::DateTime>
167 GetNodeResult& WithCreatedAt(CreatedAtT&& value) {
168 SetCreatedAt(std::forward<CreatedAtT>(value));
169 return *this;
170 }
172
174
177 inline const Aws::Utils::DateTime& GetDeletedAt() const { return m_deletedAt; }
178 template <typename DeletedAtT = Aws::Utils::DateTime>
179 void SetDeletedAt(DeletedAtT&& value) {
180 m_deletedAtHasBeenSet = true;
181 m_deletedAt = std::forward<DeletedAtT>(value);
182 }
183 template <typename DeletedAtT = Aws::Utils::DateTime>
184 GetNodeResult& WithDeletedAt(DeletedAtT&& value) {
185 SetDeletedAt(std::forward<DeletedAtT>(value));
186 return *this;
187 }
189
191
194 inline const Aws::String& GetSoftwareVersion() const { return m_softwareVersion; }
195 template <typename SoftwareVersionT = Aws::String>
196 void SetSoftwareVersion(SoftwareVersionT&& value) {
197 m_softwareVersionHasBeenSet = true;
198 m_softwareVersion = std::forward<SoftwareVersionT>(value);
199 }
200 template <typename SoftwareVersionT = Aws::String>
201 GetNodeResult& WithSoftwareVersion(SoftwareVersionT&& value) {
202 SetSoftwareVersion(std::forward<SoftwareVersionT>(value));
203 return *this;
204 }
206
208
211 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
212 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
213 void SetTags(TagsT&& value) {
214 m_tagsHasBeenSet = true;
215 m_tags = std::forward<TagsT>(value);
216 }
217 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
218 GetNodeResult& WithTags(TagsT&& value) {
219 SetTags(std::forward<TagsT>(value));
220 return *this;
221 }
222 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
223 GetNodeResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
224 m_tagsHasBeenSet = true;
225 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
226 return *this;
227 }
229
231
232 inline const Aws::String& GetRequestId() const { return m_requestId; }
233 template <typename RequestIdT = Aws::String>
234 void SetRequestId(RequestIdT&& value) {
235 m_requestIdHasBeenSet = true;
236 m_requestId = std::forward<RequestIdT>(value);
237 }
238 template <typename RequestIdT = Aws::String>
239 GetNodeResult& WithRequestId(RequestIdT&& value) {
240 SetRequestId(std::forward<RequestIdT>(value));
241 return *this;
242 }
244 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
245
246 private:
247 Aws::String m_applianceArn;
248
249 Aws::String m_nodeArn;
250
251 Aws::String m_ipAddress;
252
254
256
258
259 Aws::Vector<Notification> m_notifications;
260
261 Aws::Utils::DateTime m_createdAt{};
262
263 Aws::Utils::DateTime m_deletedAt{};
264
265 Aws::String m_softwareVersion;
266
268
269 Aws::String m_requestId;
270 Aws::Http::HttpResponseCode m_HttpResponseCode;
271 bool m_applianceArnHasBeenSet = false;
272 bool m_nodeArnHasBeenSet = false;
273 bool m_ipAddressHasBeenSet = false;
274 bool m_environmentTypeHasBeenSet = false;
275 bool m_nodeManagementStatusHasBeenSet = false;
276 bool m_healthStatusHasBeenSet = false;
277 bool m_notificationsHasBeenSet = false;
278 bool m_createdAtHasBeenSet = false;
279 bool m_deletedAtHasBeenSet = false;
280 bool m_softwareVersionHasBeenSet = false;
281 bool m_tagsHasBeenSet = false;
282 bool m_requestIdHasBeenSet = false;
283};
284
285} // namespace Model
286} // namespace BackupExternal
287} // namespace Aws
GetNodeResult & WithDeletedAt(DeletedAtT &&value)
ApplianceEnvironmentType GetEnvironmentType() const
const Aws::String & GetNodeArn() const
GetNodeResult & WithNodeArn(NodeArnT &&value)
GetNodeResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
GetNodeResult & WithRequestId(RequestIdT &&value)
GetNodeResult & WithSoftwareVersion(SoftwareVersionT &&value)
void SetNodeManagementStatus(NodeManagementStatus value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::String & GetSoftwareVersion() const
GetNodeResult & WithHealthStatus(NodeHealthStatus value)
GetNodeResult & WithTags(TagsT &&value)
const Aws::Vector< Notification > & GetNotifications() const
void SetSoftwareVersion(SoftwareVersionT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
NodeManagementStatus GetNodeManagementStatus() const
GetNodeResult & AddNotifications(NotificationsT &&value)
const Aws::String & GetRequestId() const
const Aws::Utils::DateTime & GetDeletedAt() const
GetNodeResult & WithEnvironmentType(ApplianceEnvironmentType value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetNotifications(NotificationsT &&value)
GetNodeResult & WithCreatedAt(CreatedAtT &&value)
AWS_BACKUPEXTERNAL_API GetNodeResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetApplianceArn(ApplianceArnT &&value)
const Aws::String & GetApplianceArn() const
void SetHealthStatus(NodeHealthStatus value)
GetNodeResult & WithNodeManagementStatus(NodeManagementStatus value)
AWS_BACKUPEXTERNAL_API GetNodeResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_BACKUPEXTERNAL_API GetNodeResult()=default
const Aws::String & GetIpAddress() const
void SetEnvironmentType(ApplianceEnvironmentType value)
GetNodeResult & WithIpAddress(IpAddressT &&value)
GetNodeResult & WithApplianceArn(ApplianceArnT &&value)
GetNodeResult & WithNotifications(NotificationsT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue