AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
Node.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/managedblockchain/ManagedBlockchain_EXPORTS.h>
11#include <aws/managedblockchain/model/NodeFrameworkAttributes.h>
12#include <aws/managedblockchain/model/NodeLogPublishingConfiguration.h>
13#include <aws/managedblockchain/model/NodeStatus.h>
14#include <aws/managedblockchain/model/StateDBType.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace ManagedBlockchain {
26namespace Model {
27
33class Node {
34 public:
35 AWS_MANAGEDBLOCKCHAIN_API Node() = default;
36 AWS_MANAGEDBLOCKCHAIN_API Node(Aws::Utils::Json::JsonView jsonValue);
37 AWS_MANAGEDBLOCKCHAIN_API Node& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_MANAGEDBLOCKCHAIN_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetNetworkId() const { return m_networkId; }
45 inline bool NetworkIdHasBeenSet() const { return m_networkIdHasBeenSet; }
46 template <typename NetworkIdT = Aws::String>
47 void SetNetworkId(NetworkIdT&& value) {
48 m_networkIdHasBeenSet = true;
49 m_networkId = std::forward<NetworkIdT>(value);
50 }
51 template <typename NetworkIdT = Aws::String>
52 Node& WithNetworkId(NetworkIdT&& value) {
53 SetNetworkId(std::forward<NetworkIdT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::String& GetMemberId() const { return m_memberId; }
64 inline bool MemberIdHasBeenSet() const { return m_memberIdHasBeenSet; }
65 template <typename MemberIdT = Aws::String>
66 void SetMemberId(MemberIdT&& value) {
67 m_memberIdHasBeenSet = true;
68 m_memberId = std::forward<MemberIdT>(value);
69 }
70 template <typename MemberIdT = Aws::String>
71 Node& WithMemberId(MemberIdT&& value) {
72 SetMemberId(std::forward<MemberIdT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetId() const { return m_id; }
82 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
83 template <typename IdT = Aws::String>
84 void SetId(IdT&& value) {
85 m_idHasBeenSet = true;
86 m_id = std::forward<IdT>(value);
87 }
88 template <typename IdT = Aws::String>
89 Node& WithId(IdT&& value) {
90 SetId(std::forward<IdT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::String& GetInstanceType() const { return m_instanceType; }
100 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
101 template <typename InstanceTypeT = Aws::String>
102 void SetInstanceType(InstanceTypeT&& value) {
103 m_instanceTypeHasBeenSet = true;
104 m_instanceType = std::forward<InstanceTypeT>(value);
105 }
106 template <typename InstanceTypeT = Aws::String>
107 Node& WithInstanceType(InstanceTypeT&& value) {
108 SetInstanceType(std::forward<InstanceTypeT>(value));
109 return *this;
110 }
112
114
118 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
119 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
120 template <typename AvailabilityZoneT = Aws::String>
121 void SetAvailabilityZone(AvailabilityZoneT&& value) {
122 m_availabilityZoneHasBeenSet = true;
123 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
124 }
125 template <typename AvailabilityZoneT = Aws::String>
126 Node& WithAvailabilityZone(AvailabilityZoneT&& value) {
127 SetAvailabilityZone(std::forward<AvailabilityZoneT>(value));
128 return *this;
129 }
131
133
136 inline const NodeFrameworkAttributes& GetFrameworkAttributes() const { return m_frameworkAttributes; }
137 inline bool FrameworkAttributesHasBeenSet() const { return m_frameworkAttributesHasBeenSet; }
138 template <typename FrameworkAttributesT = NodeFrameworkAttributes>
139 void SetFrameworkAttributes(FrameworkAttributesT&& value) {
140 m_frameworkAttributesHasBeenSet = true;
141 m_frameworkAttributes = std::forward<FrameworkAttributesT>(value);
142 }
143 template <typename FrameworkAttributesT = NodeFrameworkAttributes>
144 Node& WithFrameworkAttributes(FrameworkAttributesT&& value) {
145 SetFrameworkAttributes(std::forward<FrameworkAttributesT>(value));
146 return *this;
147 }
149
151
155 inline const NodeLogPublishingConfiguration& GetLogPublishingConfiguration() const { return m_logPublishingConfiguration; }
156 inline bool LogPublishingConfigurationHasBeenSet() const { return m_logPublishingConfigurationHasBeenSet; }
157 template <typename LogPublishingConfigurationT = NodeLogPublishingConfiguration>
158 void SetLogPublishingConfiguration(LogPublishingConfigurationT&& value) {
159 m_logPublishingConfigurationHasBeenSet = true;
160 m_logPublishingConfiguration = std::forward<LogPublishingConfigurationT>(value);
161 }
162 template <typename LogPublishingConfigurationT = NodeLogPublishingConfiguration>
163 Node& WithLogPublishingConfiguration(LogPublishingConfigurationT&& value) {
164 SetLogPublishingConfiguration(std::forward<LogPublishingConfigurationT>(value));
165 return *this;
166 }
168
170
174 inline StateDBType GetStateDB() const { return m_stateDB; }
175 inline bool StateDBHasBeenSet() const { return m_stateDBHasBeenSet; }
176 inline void SetStateDB(StateDBType value) {
177 m_stateDBHasBeenSet = true;
178 m_stateDB = value;
179 }
180 inline Node& WithStateDB(StateDBType value) {
181 SetStateDB(value);
182 return *this;
183 }
185
187
211 inline NodeStatus GetStatus() const { return m_status; }
212 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
213 inline void SetStatus(NodeStatus value) {
214 m_statusHasBeenSet = true;
215 m_status = value;
216 }
217 inline Node& WithStatus(NodeStatus value) {
218 SetStatus(value);
219 return *this;
220 }
222
224
227 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
228 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
229 template <typename CreationDateT = Aws::Utils::DateTime>
230 void SetCreationDate(CreationDateT&& value) {
231 m_creationDateHasBeenSet = true;
232 m_creationDate = std::forward<CreationDateT>(value);
233 }
234 template <typename CreationDateT = Aws::Utils::DateTime>
235 Node& WithCreationDate(CreationDateT&& value) {
236 SetCreationDate(std::forward<CreationDateT>(value));
237 return *this;
238 }
240
242
252 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
253 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
254 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
255 void SetTags(TagsT&& value) {
256 m_tagsHasBeenSet = true;
257 m_tags = std::forward<TagsT>(value);
258 }
259 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
260 Node& WithTags(TagsT&& value) {
261 SetTags(std::forward<TagsT>(value));
262 return *this;
263 }
264 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
265 Node& AddTags(TagsKeyT&& key, TagsValueT&& value) {
266 m_tagsHasBeenSet = true;
267 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
268 return *this;
269 }
271
273
280 inline const Aws::String& GetArn() const { return m_arn; }
281 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
282 template <typename ArnT = Aws::String>
283 void SetArn(ArnT&& value) {
284 m_arnHasBeenSet = true;
285 m_arn = std::forward<ArnT>(value);
286 }
287 template <typename ArnT = Aws::String>
288 Node& WithArn(ArnT&& value) {
289 SetArn(std::forward<ArnT>(value));
290 return *this;
291 }
293
295
305 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
306 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
307 template <typename KmsKeyArnT = Aws::String>
308 void SetKmsKeyArn(KmsKeyArnT&& value) {
309 m_kmsKeyArnHasBeenSet = true;
310 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
311 }
312 template <typename KmsKeyArnT = Aws::String>
313 Node& WithKmsKeyArn(KmsKeyArnT&& value) {
314 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
315 return *this;
316 }
318 private:
319 Aws::String m_networkId;
320
321 Aws::String m_memberId;
322
323 Aws::String m_id;
324
325 Aws::String m_instanceType;
326
327 Aws::String m_availabilityZone;
328
329 NodeFrameworkAttributes m_frameworkAttributes;
330
331 NodeLogPublishingConfiguration m_logPublishingConfiguration;
332
334
336
337 Aws::Utils::DateTime m_creationDate{};
338
340
341 Aws::String m_arn;
342
343 Aws::String m_kmsKeyArn;
344 bool m_networkIdHasBeenSet = false;
345 bool m_memberIdHasBeenSet = false;
346 bool m_idHasBeenSet = false;
347 bool m_instanceTypeHasBeenSet = false;
348 bool m_availabilityZoneHasBeenSet = false;
349 bool m_frameworkAttributesHasBeenSet = false;
350 bool m_logPublishingConfigurationHasBeenSet = false;
351 bool m_stateDBHasBeenSet = false;
352 bool m_statusHasBeenSet = false;
353 bool m_creationDateHasBeenSet = false;
354 bool m_tagsHasBeenSet = false;
355 bool m_arnHasBeenSet = false;
356 bool m_kmsKeyArnHasBeenSet = false;
357};
358
359} // namespace Model
360} // namespace ManagedBlockchain
361} // namespace Aws
Node & WithAvailabilityZone(AvailabilityZoneT &&value)
Definition Node.h:126
Node & WithFrameworkAttributes(FrameworkAttributesT &&value)
Definition Node.h:144
Node & WithLogPublishingConfiguration(LogPublishingConfigurationT &&value)
Definition Node.h:163
AWS_MANAGEDBLOCKCHAIN_API Node()=default
const NodeLogPublishingConfiguration & GetLogPublishingConfiguration() const
Definition Node.h:155
Node & WithInstanceType(InstanceTypeT &&value)
Definition Node.h:107
void SetInstanceType(InstanceTypeT &&value)
Definition Node.h:102
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Node.h:252
const Aws::String & GetNetworkId() const
Definition Node.h:44
Node & WithStateDB(StateDBType value)
Definition Node.h:180
const Aws::String & GetKmsKeyArn() const
Definition Node.h:305
void SetArn(ArnT &&value)
Definition Node.h:283
NodeStatus GetStatus() const
Definition Node.h:211
void SetMemberId(MemberIdT &&value)
Definition Node.h:66
AWS_MANAGEDBLOCKCHAIN_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetArn() const
Definition Node.h:280
Node & WithNetworkId(NetworkIdT &&value)
Definition Node.h:52
void SetNetworkId(NetworkIdT &&value)
Definition Node.h:47
void SetStatus(NodeStatus value)
Definition Node.h:213
bool AvailabilityZoneHasBeenSet() const
Definition Node.h:119
bool FrameworkAttributesHasBeenSet() const
Definition Node.h:137
AWS_MANAGEDBLOCKCHAIN_API Node & operator=(Aws::Utils::Json::JsonView jsonValue)
Node & WithStatus(NodeStatus value)
Definition Node.h:217
const Aws::String & GetInstanceType() const
Definition Node.h:99
void SetCreationDate(CreationDateT &&value)
Definition Node.h:230
const Aws::String & GetMemberId() const
Definition Node.h:63
const Aws::String & GetAvailabilityZone() const
Definition Node.h:118
void SetStateDB(StateDBType value)
Definition Node.h:176
Node & WithArn(ArnT &&value)
Definition Node.h:288
void SetId(IdT &&value)
Definition Node.h:84
const NodeFrameworkAttributes & GetFrameworkAttributes() const
Definition Node.h:136
bool InstanceTypeHasBeenSet() const
Definition Node.h:100
Node & WithId(IdT &&value)
Definition Node.h:89
Node & WithTags(TagsT &&value)
Definition Node.h:260
bool LogPublishingConfigurationHasBeenSet() const
Definition Node.h:156
AWS_MANAGEDBLOCKCHAIN_API Node(Aws::Utils::Json::JsonView jsonValue)
void SetLogPublishingConfiguration(LogPublishingConfigurationT &&value)
Definition Node.h:158
const Aws::Utils::DateTime & GetCreationDate() const
Definition Node.h:227
void SetAvailabilityZone(AvailabilityZoneT &&value)
Definition Node.h:121
bool CreationDateHasBeenSet() const
Definition Node.h:228
void SetKmsKeyArn(KmsKeyArnT &&value)
Definition Node.h:308
Node & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Node.h:265
void SetFrameworkAttributes(FrameworkAttributesT &&value)
Definition Node.h:139
Node & WithKmsKeyArn(KmsKeyArnT &&value)
Definition Node.h:313
StateDBType GetStateDB() const
Definition Node.h:174
Node & WithCreationDate(CreationDateT &&value)
Definition Node.h:235
Node & WithMemberId(MemberIdT &&value)
Definition Node.h:71
void SetTags(TagsT &&value)
Definition Node.h:255
const Aws::String & GetId() const
Definition Node.h:81
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
Aws::Utils::Json::JsonValue JsonValue