AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename NetworkIdT = Aws::String>
53 void SetNetworkId(NetworkIdT&& value) { m_networkIdHasBeenSet = true; m_networkId = std::forward<NetworkIdT>(value); }
54 template<typename NetworkIdT = Aws::String>
55 Node& WithNetworkId(NetworkIdT&& value) { SetNetworkId(std::forward<NetworkIdT>(value)); return *this;}
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) { m_memberIdHasBeenSet = true; m_memberId = std::forward<MemberIdT>(value); }
67 template<typename MemberIdT = Aws::String>
68 Node& WithMemberId(MemberIdT&& value) { SetMemberId(std::forward<MemberIdT>(value)); return *this;}
70
72
75 inline const Aws::String& GetId() const { return m_id; }
76 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
77 template<typename IdT = Aws::String>
78 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
79 template<typename IdT = Aws::String>
80 Node& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
82
84
87 inline const Aws::String& GetInstanceType() const { return m_instanceType; }
88 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
89 template<typename InstanceTypeT = Aws::String>
90 void SetInstanceType(InstanceTypeT&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::forward<InstanceTypeT>(value); }
91 template<typename InstanceTypeT = Aws::String>
92 Node& WithInstanceType(InstanceTypeT&& value) { SetInstanceType(std::forward<InstanceTypeT>(value)); return *this;}
94
96
100 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
101 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
102 template<typename AvailabilityZoneT = Aws::String>
103 void SetAvailabilityZone(AvailabilityZoneT&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::forward<AvailabilityZoneT>(value); }
104 template<typename AvailabilityZoneT = Aws::String>
105 Node& WithAvailabilityZone(AvailabilityZoneT&& value) { SetAvailabilityZone(std::forward<AvailabilityZoneT>(value)); return *this;}
107
109
112 inline const NodeFrameworkAttributes& GetFrameworkAttributes() const { return m_frameworkAttributes; }
113 inline bool FrameworkAttributesHasBeenSet() const { return m_frameworkAttributesHasBeenSet; }
114 template<typename FrameworkAttributesT = NodeFrameworkAttributes>
115 void SetFrameworkAttributes(FrameworkAttributesT&& value) { m_frameworkAttributesHasBeenSet = true; m_frameworkAttributes = std::forward<FrameworkAttributesT>(value); }
116 template<typename FrameworkAttributesT = NodeFrameworkAttributes>
117 Node& WithFrameworkAttributes(FrameworkAttributesT&& value) { SetFrameworkAttributes(std::forward<FrameworkAttributesT>(value)); return *this;}
119
121
125 inline const NodeLogPublishingConfiguration& GetLogPublishingConfiguration() const { return m_logPublishingConfiguration; }
126 inline bool LogPublishingConfigurationHasBeenSet() const { return m_logPublishingConfigurationHasBeenSet; }
127 template<typename LogPublishingConfigurationT = NodeLogPublishingConfiguration>
128 void SetLogPublishingConfiguration(LogPublishingConfigurationT&& value) { m_logPublishingConfigurationHasBeenSet = true; m_logPublishingConfiguration = std::forward<LogPublishingConfigurationT>(value); }
129 template<typename LogPublishingConfigurationT = NodeLogPublishingConfiguration>
130 Node& WithLogPublishingConfiguration(LogPublishingConfigurationT&& value) { SetLogPublishingConfiguration(std::forward<LogPublishingConfigurationT>(value)); return *this;}
132
134
138 inline StateDBType GetStateDB() const { return m_stateDB; }
139 inline bool StateDBHasBeenSet() const { return m_stateDBHasBeenSet; }
140 inline void SetStateDB(StateDBType value) { m_stateDBHasBeenSet = true; m_stateDB = value; }
141 inline Node& WithStateDB(StateDBType value) { SetStateDB(value); return *this;}
143
145
169 inline NodeStatus GetStatus() const { return m_status; }
170 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
171 inline void SetStatus(NodeStatus value) { m_statusHasBeenSet = true; m_status = value; }
172 inline Node& WithStatus(NodeStatus value) { SetStatus(value); return *this;}
174
176
179 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
180 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
181 template<typename CreationDateT = Aws::Utils::DateTime>
182 void SetCreationDate(CreationDateT&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::forward<CreationDateT>(value); }
183 template<typename CreationDateT = Aws::Utils::DateTime>
184 Node& WithCreationDate(CreationDateT&& value) { SetCreationDate(std::forward<CreationDateT>(value)); return *this;}
186
188
198 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
199 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
200 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
201 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
202 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
203 Node& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
204 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
205 Node& AddTags(TagsKeyT&& key, TagsValueT&& value) {
206 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
207 }
209
211
218 inline const Aws::String& GetArn() const { return m_arn; }
219 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
220 template<typename ArnT = Aws::String>
221 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
222 template<typename ArnT = Aws::String>
223 Node& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
225
227
237 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
238 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
239 template<typename KmsKeyArnT = Aws::String>
240 void SetKmsKeyArn(KmsKeyArnT&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::forward<KmsKeyArnT>(value); }
241 template<typename KmsKeyArnT = Aws::String>
242 Node& WithKmsKeyArn(KmsKeyArnT&& value) { SetKmsKeyArn(std::forward<KmsKeyArnT>(value)); return *this;}
244 private:
245
246 Aws::String m_networkId;
247 bool m_networkIdHasBeenSet = false;
248
249 Aws::String m_memberId;
250 bool m_memberIdHasBeenSet = false;
251
252 Aws::String m_id;
253 bool m_idHasBeenSet = false;
254
255 Aws::String m_instanceType;
256 bool m_instanceTypeHasBeenSet = false;
257
258 Aws::String m_availabilityZone;
259 bool m_availabilityZoneHasBeenSet = false;
260
261 NodeFrameworkAttributes m_frameworkAttributes;
262 bool m_frameworkAttributesHasBeenSet = false;
263
264 NodeLogPublishingConfiguration m_logPublishingConfiguration;
265 bool m_logPublishingConfigurationHasBeenSet = false;
266
268 bool m_stateDBHasBeenSet = false;
269
271 bool m_statusHasBeenSet = false;
272
273 Aws::Utils::DateTime m_creationDate{};
274 bool m_creationDateHasBeenSet = false;
275
277 bool m_tagsHasBeenSet = false;
278
279 Aws::String m_arn;
280 bool m_arnHasBeenSet = false;
281
282 Aws::String m_kmsKeyArn;
283 bool m_kmsKeyArnHasBeenSet = false;
284 };
285
286} // namespace Model
287} // namespace ManagedBlockchain
288} // namespace Aws
Node & WithAvailabilityZone(AvailabilityZoneT &&value)
Definition Node.h:105
Node & WithFrameworkAttributes(FrameworkAttributesT &&value)
Definition Node.h:117
Node & WithLogPublishingConfiguration(LogPublishingConfigurationT &&value)
Definition Node.h:130
AWS_MANAGEDBLOCKCHAIN_API Node()=default
const NodeLogPublishingConfiguration & GetLogPublishingConfiguration() const
Definition Node.h:125
Node & WithInstanceType(InstanceTypeT &&value)
Definition Node.h:92
void SetInstanceType(InstanceTypeT &&value)
Definition Node.h:90
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Node.h:198
const Aws::String & GetNetworkId() const
Definition Node.h:50
Node & WithStateDB(StateDBType value)
Definition Node.h:141
const Aws::String & GetKmsKeyArn() const
Definition Node.h:237
void SetArn(ArnT &&value)
Definition Node.h:221
NodeStatus GetStatus() const
Definition Node.h:169
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:218
Node & WithNetworkId(NetworkIdT &&value)
Definition Node.h:55
void SetNetworkId(NetworkIdT &&value)
Definition Node.h:53
void SetStatus(NodeStatus value)
Definition Node.h:171
bool AvailabilityZoneHasBeenSet() const
Definition Node.h:101
bool FrameworkAttributesHasBeenSet() const
Definition Node.h:113
AWS_MANAGEDBLOCKCHAIN_API Node & operator=(Aws::Utils::Json::JsonView jsonValue)
Node & WithStatus(NodeStatus value)
Definition Node.h:172
const Aws::String & GetInstanceType() const
Definition Node.h:87
void SetCreationDate(CreationDateT &&value)
Definition Node.h:182
const Aws::String & GetMemberId() const
Definition Node.h:63
const Aws::String & GetAvailabilityZone() const
Definition Node.h:100
void SetStateDB(StateDBType value)
Definition Node.h:140
Node & WithArn(ArnT &&value)
Definition Node.h:223
void SetId(IdT &&value)
Definition Node.h:78
const NodeFrameworkAttributes & GetFrameworkAttributes() const
Definition Node.h:112
bool InstanceTypeHasBeenSet() const
Definition Node.h:88
Node & WithId(IdT &&value)
Definition Node.h:80
Node & WithTags(TagsT &&value)
Definition Node.h:203
bool LogPublishingConfigurationHasBeenSet() const
Definition Node.h:126
AWS_MANAGEDBLOCKCHAIN_API Node(Aws::Utils::Json::JsonView jsonValue)
void SetLogPublishingConfiguration(LogPublishingConfigurationT &&value)
Definition Node.h:128
const Aws::Utils::DateTime & GetCreationDate() const
Definition Node.h:179
void SetAvailabilityZone(AvailabilityZoneT &&value)
Definition Node.h:103
bool CreationDateHasBeenSet() const
Definition Node.h:180
void SetKmsKeyArn(KmsKeyArnT &&value)
Definition Node.h:240
Node & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Node.h:205
void SetFrameworkAttributes(FrameworkAttributesT &&value)
Definition Node.h:115
Node & WithKmsKeyArn(KmsKeyArnT &&value)
Definition Node.h:242
StateDBType GetStateDB() const
Definition Node.h:138
Node & WithCreationDate(CreationDateT &&value)
Definition Node.h:184
Node & WithMemberId(MemberIdT &&value)
Definition Node.h:68
void SetTags(TagsT &&value)
Definition Node.h:201
const Aws::String & GetId() const
Definition Node.h:75
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