AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Node.h
1
6#pragma once
7#include <aws/managedblockchain/ManagedBlockchain_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/managedblockchain/model/NodeFrameworkAttributes.h>
10#include <aws/managedblockchain/model/NodeLogPublishingConfiguration.h>
11#include <aws/managedblockchain/model/StateDBType.h>
12#include <aws/managedblockchain/model/NodeStatus.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace ManagedBlockchain
28{
29namespace Model
30{
31
37 class Node
38 {
39 public:
40 AWS_MANAGEDBLOCKCHAIN_API Node();
41 AWS_MANAGEDBLOCKCHAIN_API Node(Aws::Utils::Json::JsonView jsonValue);
42 AWS_MANAGEDBLOCKCHAIN_API Node& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_MANAGEDBLOCKCHAIN_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetNetworkId() const{ return m_networkId; }
51 inline bool NetworkIdHasBeenSet() const { return m_networkIdHasBeenSet; }
52 inline void SetNetworkId(const Aws::String& value) { m_networkIdHasBeenSet = true; m_networkId = value; }
53 inline void SetNetworkId(Aws::String&& value) { m_networkIdHasBeenSet = true; m_networkId = std::move(value); }
54 inline void SetNetworkId(const char* value) { m_networkIdHasBeenSet = true; m_networkId.assign(value); }
55 inline Node& WithNetworkId(const Aws::String& value) { SetNetworkId(value); return *this;}
56 inline Node& WithNetworkId(Aws::String&& value) { SetNetworkId(std::move(value)); return *this;}
57 inline Node& WithNetworkId(const char* value) { SetNetworkId(value); return *this;}
59
61
65 inline const Aws::String& GetMemberId() const{ return m_memberId; }
66 inline bool MemberIdHasBeenSet() const { return m_memberIdHasBeenSet; }
67 inline void SetMemberId(const Aws::String& value) { m_memberIdHasBeenSet = true; m_memberId = value; }
68 inline void SetMemberId(Aws::String&& value) { m_memberIdHasBeenSet = true; m_memberId = std::move(value); }
69 inline void SetMemberId(const char* value) { m_memberIdHasBeenSet = true; m_memberId.assign(value); }
70 inline Node& WithMemberId(const Aws::String& value) { SetMemberId(value); return *this;}
71 inline Node& WithMemberId(Aws::String&& value) { SetMemberId(std::move(value)); return *this;}
72 inline Node& WithMemberId(const char* value) { SetMemberId(value); return *this;}
74
76
79 inline const Aws::String& GetId() const{ return m_id; }
80 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
81 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
82 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
83 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
84 inline Node& WithId(const Aws::String& value) { SetId(value); return *this;}
85 inline Node& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
86 inline Node& WithId(const char* value) { SetId(value); return *this;}
88
90
93 inline const Aws::String& GetInstanceType() const{ return m_instanceType; }
94 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
95 inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
96 inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
97 inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); }
98 inline Node& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;}
99 inline Node& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
100 inline Node& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
102
104
108 inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
109 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
110 inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
111 inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
112 inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
113 inline Node& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
114 inline Node& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
115 inline Node& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
117
119
122 inline const NodeFrameworkAttributes& GetFrameworkAttributes() const{ return m_frameworkAttributes; }
123 inline bool FrameworkAttributesHasBeenSet() const { return m_frameworkAttributesHasBeenSet; }
124 inline void SetFrameworkAttributes(const NodeFrameworkAttributes& value) { m_frameworkAttributesHasBeenSet = true; m_frameworkAttributes = value; }
125 inline void SetFrameworkAttributes(NodeFrameworkAttributes&& value) { m_frameworkAttributesHasBeenSet = true; m_frameworkAttributes = std::move(value); }
126 inline Node& WithFrameworkAttributes(const NodeFrameworkAttributes& value) { SetFrameworkAttributes(value); return *this;}
127 inline Node& WithFrameworkAttributes(NodeFrameworkAttributes&& value) { SetFrameworkAttributes(std::move(value)); return *this;}
129
131
135 inline const NodeLogPublishingConfiguration& GetLogPublishingConfiguration() const{ return m_logPublishingConfiguration; }
136 inline bool LogPublishingConfigurationHasBeenSet() const { return m_logPublishingConfigurationHasBeenSet; }
137 inline void SetLogPublishingConfiguration(const NodeLogPublishingConfiguration& value) { m_logPublishingConfigurationHasBeenSet = true; m_logPublishingConfiguration = value; }
138 inline void SetLogPublishingConfiguration(NodeLogPublishingConfiguration&& value) { m_logPublishingConfigurationHasBeenSet = true; m_logPublishingConfiguration = std::move(value); }
142
144
148 inline const StateDBType& GetStateDB() const{ return m_stateDB; }
149 inline bool StateDBHasBeenSet() const { return m_stateDBHasBeenSet; }
150 inline void SetStateDB(const StateDBType& value) { m_stateDBHasBeenSet = true; m_stateDB = value; }
151 inline void SetStateDB(StateDBType&& value) { m_stateDBHasBeenSet = true; m_stateDB = std::move(value); }
152 inline Node& WithStateDB(const StateDBType& value) { SetStateDB(value); return *this;}
153 inline Node& WithStateDB(StateDBType&& value) { SetStateDB(std::move(value)); return *this;}
155
157
181 inline const NodeStatus& GetStatus() const{ return m_status; }
182 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
183 inline void SetStatus(const NodeStatus& value) { m_statusHasBeenSet = true; m_status = value; }
184 inline void SetStatus(NodeStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
185 inline Node& WithStatus(const NodeStatus& value) { SetStatus(value); return *this;}
186 inline Node& WithStatus(NodeStatus&& value) { SetStatus(std::move(value)); return *this;}
188
190
193 inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; }
194 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
195 inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
196 inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); }
197 inline Node& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;}
198 inline Node& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;}
200
202
212 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
213 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
214 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
215 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
216 inline Node& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
217 inline Node& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
218 inline Node& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
219 inline Node& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
220 inline Node& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
221 inline Node& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
222 inline Node& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
223 inline Node& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
224 inline Node& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
226
228
235 inline const Aws::String& GetArn() const{ return m_arn; }
236 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
237 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
238 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
239 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
240 inline Node& WithArn(const Aws::String& value) { SetArn(value); return *this;}
241 inline Node& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
242 inline Node& WithArn(const char* value) { SetArn(value); return *this;}
244
246
256 inline const Aws::String& GetKmsKeyArn() const{ return m_kmsKeyArn; }
257 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
258 inline void SetKmsKeyArn(const Aws::String& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = value; }
259 inline void SetKmsKeyArn(Aws::String&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::move(value); }
260 inline void SetKmsKeyArn(const char* value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn.assign(value); }
261 inline Node& WithKmsKeyArn(const Aws::String& value) { SetKmsKeyArn(value); return *this;}
262 inline Node& WithKmsKeyArn(Aws::String&& value) { SetKmsKeyArn(std::move(value)); return *this;}
263 inline Node& WithKmsKeyArn(const char* value) { SetKmsKeyArn(value); return *this;}
265 private:
266
267 Aws::String m_networkId;
268 bool m_networkIdHasBeenSet = false;
269
270 Aws::String m_memberId;
271 bool m_memberIdHasBeenSet = false;
272
273 Aws::String m_id;
274 bool m_idHasBeenSet = false;
275
276 Aws::String m_instanceType;
277 bool m_instanceTypeHasBeenSet = false;
278
279 Aws::String m_availabilityZone;
280 bool m_availabilityZoneHasBeenSet = false;
281
282 NodeFrameworkAttributes m_frameworkAttributes;
283 bool m_frameworkAttributesHasBeenSet = false;
284
285 NodeLogPublishingConfiguration m_logPublishingConfiguration;
286 bool m_logPublishingConfigurationHasBeenSet = false;
287
288 StateDBType m_stateDB;
289 bool m_stateDBHasBeenSet = false;
290
291 NodeStatus m_status;
292 bool m_statusHasBeenSet = false;
293
294 Aws::Utils::DateTime m_creationDate;
295 bool m_creationDateHasBeenSet = false;
296
298 bool m_tagsHasBeenSet = false;
299
300 Aws::String m_arn;
301 bool m_arnHasBeenSet = false;
302
303 Aws::String m_kmsKeyArn;
304 bool m_kmsKeyArnHasBeenSet = false;
305 };
306
307} // namespace Model
308} // namespace ManagedBlockchain
309} // namespace Aws
Node & WithId(const char *value)
Definition Node.h:86
void SetInstanceType(Aws::String &&value)
Definition Node.h:96
Node & WithMemberId(const char *value)
Definition Node.h:72
void SetCreationDate(const Aws::Utils::DateTime &value)
Definition Node.h:195
void SetArn(const Aws::String &value)
Definition Node.h:237
const NodeLogPublishingConfiguration & GetLogPublishingConfiguration() const
Definition Node.h:135
void SetFrameworkAttributes(const NodeFrameworkAttributes &value)
Definition Node.h:124
AWS_MANAGEDBLOCKCHAIN_API Node()
Node & WithLogPublishingConfiguration(NodeLogPublishingConfiguration &&value)
Definition Node.h:140
Node & WithFrameworkAttributes(NodeFrameworkAttributes &&value)
Definition Node.h:127
void SetKmsKeyArn(const char *value)
Definition Node.h:260
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Node.h:212
Node & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition Node.h:216
const Aws::String & GetNetworkId() const
Definition Node.h:50
Node & WithLogPublishingConfiguration(const NodeLogPublishingConfiguration &value)
Definition Node.h:139
void SetId(const char *value)
Definition Node.h:83
Node & WithStatus(NodeStatus &&value)
Definition Node.h:186
Node & WithId(Aws::String &&value)
Definition Node.h:85
Node & WithMemberId(Aws::String &&value)
Definition Node.h:71
const StateDBType & GetStateDB() const
Definition Node.h:148
const Aws::String & GetKmsKeyArn() const
Definition Node.h:256
void SetId(const Aws::String &value)
Definition Node.h:81
void SetInstanceType(const Aws::String &value)
Definition Node.h:95
Node & WithCreationDate(Aws::Utils::DateTime &&value)
Definition Node.h:198
void SetArn(const char *value)
Definition Node.h:239
AWS_MANAGEDBLOCKCHAIN_API Aws::Utils::Json::JsonValue Jsonize() const
void SetNetworkId(const Aws::String &value)
Definition Node.h:52
const Aws::String & GetArn() const
Definition Node.h:235
Node & WithAvailabilityZone(Aws::String &&value)
Definition Node.h:114
Node & WithAvailabilityZone(const char *value)
Definition Node.h:115
Node & AddTags(Aws::String &&key, const char *value)
Definition Node.h:223
void SetStatus(const NodeStatus &value)
Definition Node.h:183
Node & WithCreationDate(const Aws::Utils::DateTime &value)
Definition Node.h:197
bool AvailabilityZoneHasBeenSet() const
Definition Node.h:109
bool FrameworkAttributesHasBeenSet() const
Definition Node.h:123
AWS_MANAGEDBLOCKCHAIN_API Node & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetMemberId(const char *value)
Definition Node.h:69
void SetInstanceType(const char *value)
Definition Node.h:97
Node & AddTags(const Aws::String &key, Aws::String &&value)
Definition Node.h:220
Node & WithNetworkId(const char *value)
Definition Node.h:57
Node & WithFrameworkAttributes(const NodeFrameworkAttributes &value)
Definition Node.h:126
Node & WithInstanceType(const Aws::String &value)
Definition Node.h:98
Node & WithKmsKeyArn(Aws::String &&value)
Definition Node.h:262
const Aws::String & GetInstanceType() const
Definition Node.h:93
const Aws::String & GetMemberId() const
Definition Node.h:65
void SetStateDB(StateDBType &&value)
Definition Node.h:151
const Aws::String & GetAvailabilityZone() const
Definition Node.h:108
Node & WithStatus(const NodeStatus &value)
Definition Node.h:185
void SetMemberId(Aws::String &&value)
Definition Node.h:68
Node & WithId(const Aws::String &value)
Definition Node.h:84
void SetMemberId(const Aws::String &value)
Definition Node.h:67
void SetAvailabilityZone(const Aws::String &value)
Definition Node.h:110
const NodeFrameworkAttributes & GetFrameworkAttributes() const
Definition Node.h:122
Node & WithMemberId(const Aws::String &value)
Definition Node.h:70
Node & WithInstanceType(Aws::String &&value)
Definition Node.h:99
void SetKmsKeyArn(const Aws::String &value)
Definition Node.h:258
bool InstanceTypeHasBeenSet() const
Definition Node.h:94
Node & WithKmsKeyArn(const char *value)
Definition Node.h:263
Node & AddTags(const char *key, Aws::String &&value)
Definition Node.h:222
Node & WithArn(Aws::String &&value)
Definition Node.h:241
Node & AddTags(Aws::String &&key, const Aws::String &value)
Definition Node.h:219
void SetNetworkId(const char *value)
Definition Node.h:54
bool LogPublishingConfigurationHasBeenSet() const
Definition Node.h:136
AWS_MANAGEDBLOCKCHAIN_API Node(Aws::Utils::Json::JsonView jsonValue)
void SetAvailabilityZone(Aws::String &&value)
Definition Node.h:111
const Aws::Utils::DateTime & GetCreationDate() const
Definition Node.h:193
void SetFrameworkAttributes(NodeFrameworkAttributes &&value)
Definition Node.h:125
void SetNetworkId(Aws::String &&value)
Definition Node.h:53
Node & WithNetworkId(Aws::String &&value)
Definition Node.h:56
Node & WithNetworkId(const Aws::String &value)
Definition Node.h:55
bool CreationDateHasBeenSet() const
Definition Node.h:194
void SetCreationDate(Aws::Utils::DateTime &&value)
Definition Node.h:196
void SetLogPublishingConfiguration(const NodeLogPublishingConfiguration &value)
Definition Node.h:137
Node & WithKmsKeyArn(const Aws::String &value)
Definition Node.h:261
void SetStateDB(const StateDBType &value)
Definition Node.h:150
void SetStatus(NodeStatus &&value)
Definition Node.h:184
void SetLogPublishingConfiguration(NodeLogPublishingConfiguration &&value)
Definition Node.h:138
Node & AddTags(const Aws::String &key, const Aws::String &value)
Definition Node.h:218
Node & WithAvailabilityZone(const Aws::String &value)
Definition Node.h:113
Node & AddTags(const char *key, const char *value)
Definition Node.h:224
void SetAvailabilityZone(const char *value)
Definition Node.h:112
void SetKmsKeyArn(Aws::String &&value)
Definition Node.h:259
Node & WithInstanceType(const char *value)
Definition Node.h:100
const NodeStatus & GetStatus() const
Definition Node.h:181
Node & WithArn(const Aws::String &value)
Definition Node.h:240
void SetId(Aws::String &&value)
Definition Node.h:82
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition Node.h:214
Node & WithStateDB(StateDBType &&value)
Definition Node.h:153
void SetArn(Aws::String &&value)
Definition Node.h:238
Node & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition Node.h:217
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition Node.h:215
Node & AddTags(Aws::String &&key, Aws::String &&value)
Definition Node.h:221
Node & WithArn(const char *value)
Definition Node.h:242
Node & WithStateDB(const StateDBType &value)
Definition Node.h:152
const Aws::String & GetId() const
Definition Node.h:79
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