AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Network.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/Framework.h>
10#include <aws/managedblockchain/model/NetworkFrameworkAttributes.h>
11#include <aws/managedblockchain/model/VotingPolicy.h>
12#include <aws/managedblockchain/model/NetworkStatus.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 Network
38 {
39 public:
40 AWS_MANAGEDBLOCKCHAIN_API Network();
41 AWS_MANAGEDBLOCKCHAIN_API Network(Aws::Utils::Json::JsonView jsonValue);
42 AWS_MANAGEDBLOCKCHAIN_API Network& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_MANAGEDBLOCKCHAIN_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetId() const{ return m_id; }
51 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
52 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
53 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
54 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
55 inline Network& WithId(const Aws::String& value) { SetId(value); return *this;}
56 inline Network& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
57 inline Network& WithId(const char* value) { SetId(value); return *this;}
59
61
64 inline const Aws::String& GetName() const{ return m_name; }
65 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
66 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
67 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
68 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
69 inline Network& WithName(const Aws::String& value) { SetName(value); return *this;}
70 inline Network& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
71 inline Network& WithName(const char* value) { SetName(value); return *this;}
73
75
78 inline const Aws::String& GetDescription() const{ return m_description; }
79 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
80 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
81 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
82 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
83 inline Network& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
84 inline Network& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
85 inline Network& WithDescription(const char* value) { SetDescription(value); return *this;}
87
89
92 inline const Framework& GetFramework() const{ return m_framework; }
93 inline bool FrameworkHasBeenSet() const { return m_frameworkHasBeenSet; }
94 inline void SetFramework(const Framework& value) { m_frameworkHasBeenSet = true; m_framework = value; }
95 inline void SetFramework(Framework&& value) { m_frameworkHasBeenSet = true; m_framework = std::move(value); }
96 inline Network& WithFramework(const Framework& value) { SetFramework(value); return *this;}
97 inline Network& WithFramework(Framework&& value) { SetFramework(std::move(value)); return *this;}
99
101
104 inline const Aws::String& GetFrameworkVersion() const{ return m_frameworkVersion; }
105 inline bool FrameworkVersionHasBeenSet() const { return m_frameworkVersionHasBeenSet; }
106 inline void SetFrameworkVersion(const Aws::String& value) { m_frameworkVersionHasBeenSet = true; m_frameworkVersion = value; }
107 inline void SetFrameworkVersion(Aws::String&& value) { m_frameworkVersionHasBeenSet = true; m_frameworkVersion = std::move(value); }
108 inline void SetFrameworkVersion(const char* value) { m_frameworkVersionHasBeenSet = true; m_frameworkVersion.assign(value); }
109 inline Network& WithFrameworkVersion(const Aws::String& value) { SetFrameworkVersion(value); return *this;}
110 inline Network& WithFrameworkVersion(Aws::String&& value) { SetFrameworkVersion(std::move(value)); return *this;}
111 inline Network& WithFrameworkVersion(const char* value) { SetFrameworkVersion(value); return *this;}
113
115
118 inline const NetworkFrameworkAttributes& GetFrameworkAttributes() const{ return m_frameworkAttributes; }
119 inline bool FrameworkAttributesHasBeenSet() const { return m_frameworkAttributesHasBeenSet; }
120 inline void SetFrameworkAttributes(const NetworkFrameworkAttributes& value) { m_frameworkAttributesHasBeenSet = true; m_frameworkAttributes = value; }
121 inline void SetFrameworkAttributes(NetworkFrameworkAttributes&& value) { m_frameworkAttributesHasBeenSet = true; m_frameworkAttributes = std::move(value); }
123 inline Network& WithFrameworkAttributes(NetworkFrameworkAttributes&& value) { SetFrameworkAttributes(std::move(value)); return *this;}
125
127
132 inline const Aws::String& GetVpcEndpointServiceName() const{ return m_vpcEndpointServiceName; }
133 inline bool VpcEndpointServiceNameHasBeenSet() const { return m_vpcEndpointServiceNameHasBeenSet; }
134 inline void SetVpcEndpointServiceName(const Aws::String& value) { m_vpcEndpointServiceNameHasBeenSet = true; m_vpcEndpointServiceName = value; }
135 inline void SetVpcEndpointServiceName(Aws::String&& value) { m_vpcEndpointServiceNameHasBeenSet = true; m_vpcEndpointServiceName = std::move(value); }
136 inline void SetVpcEndpointServiceName(const char* value) { m_vpcEndpointServiceNameHasBeenSet = true; m_vpcEndpointServiceName.assign(value); }
137 inline Network& WithVpcEndpointServiceName(const Aws::String& value) { SetVpcEndpointServiceName(value); return *this;}
138 inline Network& WithVpcEndpointServiceName(Aws::String&& value) { SetVpcEndpointServiceName(std::move(value)); return *this;}
139 inline Network& WithVpcEndpointServiceName(const char* value) { SetVpcEndpointServiceName(value); return *this;}
141
143
147 inline const VotingPolicy& GetVotingPolicy() const{ return m_votingPolicy; }
148 inline bool VotingPolicyHasBeenSet() const { return m_votingPolicyHasBeenSet; }
149 inline void SetVotingPolicy(const VotingPolicy& value) { m_votingPolicyHasBeenSet = true; m_votingPolicy = value; }
150 inline void SetVotingPolicy(VotingPolicy&& value) { m_votingPolicyHasBeenSet = true; m_votingPolicy = std::move(value); }
151 inline Network& WithVotingPolicy(const VotingPolicy& value) { SetVotingPolicy(value); return *this;}
152 inline Network& WithVotingPolicy(VotingPolicy&& value) { SetVotingPolicy(std::move(value)); return *this;}
154
156
159 inline const NetworkStatus& GetStatus() const{ return m_status; }
160 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
161 inline void SetStatus(const NetworkStatus& value) { m_statusHasBeenSet = true; m_status = value; }
162 inline void SetStatus(NetworkStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
163 inline Network& WithStatus(const NetworkStatus& value) { SetStatus(value); return *this;}
164 inline Network& WithStatus(NetworkStatus&& value) { SetStatus(std::move(value)); return *this;}
166
168
171 inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; }
172 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
173 inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
174 inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); }
175 inline Network& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;}
176 inline Network& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;}
178
180
190 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
191 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
192 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
193 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
194 inline Network& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
195 inline Network& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
196 inline Network& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
197 inline Network& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
198 inline Network& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
199 inline Network& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
200 inline Network& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
201 inline Network& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
202 inline Network& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
204
206
213 inline const Aws::String& GetArn() const{ return m_arn; }
214 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
215 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
216 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
217 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
218 inline Network& WithArn(const Aws::String& value) { SetArn(value); return *this;}
219 inline Network& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
220 inline Network& WithArn(const char* value) { SetArn(value); return *this;}
222 private:
223
224 Aws::String m_id;
225 bool m_idHasBeenSet = false;
226
227 Aws::String m_name;
228 bool m_nameHasBeenSet = false;
229
230 Aws::String m_description;
231 bool m_descriptionHasBeenSet = false;
232
233 Framework m_framework;
234 bool m_frameworkHasBeenSet = false;
235
236 Aws::String m_frameworkVersion;
237 bool m_frameworkVersionHasBeenSet = false;
238
239 NetworkFrameworkAttributes m_frameworkAttributes;
240 bool m_frameworkAttributesHasBeenSet = false;
241
242 Aws::String m_vpcEndpointServiceName;
243 bool m_vpcEndpointServiceNameHasBeenSet = false;
244
245 VotingPolicy m_votingPolicy;
246 bool m_votingPolicyHasBeenSet = false;
247
248 NetworkStatus m_status;
249 bool m_statusHasBeenSet = false;
250
251 Aws::Utils::DateTime m_creationDate;
252 bool m_creationDateHasBeenSet = false;
253
255 bool m_tagsHasBeenSet = false;
256
257 Aws::String m_arn;
258 bool m_arnHasBeenSet = false;
259 };
260
261} // namespace Model
262} // namespace ManagedBlockchain
263} // namespace Aws
Network & WithName(Aws::String &&value)
Definition Network.h:70
const VotingPolicy & GetVotingPolicy() const
Definition Network.h:147
Network & WithFrameworkVersion(const Aws::String &value)
Definition Network.h:109
Network & WithStatus(NetworkStatus &&value)
Definition Network.h:164
Network & AddTags(const char *key, Aws::String &&value)
Definition Network.h:200
Network & WithArn(Aws::String &&value)
Definition Network.h:219
Network & WithFrameworkVersion(Aws::String &&value)
Definition Network.h:110
Network & WithVotingPolicy(VotingPolicy &&value)
Definition Network.h:152
Network & WithFrameworkAttributes(const NetworkFrameworkAttributes &value)
Definition Network.h:122
Network & AddTags(Aws::String &&key, const Aws::String &value)
Definition Network.h:197
Network & AddTags(const char *key, const char *value)
Definition Network.h:202
Network & WithVpcEndpointServiceName(const Aws::String &value)
Definition Network.h:137
void SetVpcEndpointServiceName(const char *value)
Definition Network.h:136
Network & WithCreationDate(const Aws::Utils::DateTime &value)
Definition Network.h:175
void SetArn(const char *value)
Definition Network.h:217
void SetFramework(const Framework &value)
Definition Network.h:94
void SetVotingPolicy(VotingPolicy &&value)
Definition Network.h:150
Network & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition Network.h:195
void SetCreationDate(const Aws::Utils::DateTime &value)
Definition Network.h:173
void SetFrameworkAttributes(const NetworkFrameworkAttributes &value)
Definition Network.h:120
AWS_MANAGEDBLOCKCHAIN_API Network()
void SetStatus(const NetworkStatus &value)
Definition Network.h:161
const Aws::String & GetDescription() const
Definition Network.h:78
void SetFrameworkVersion(Aws::String &&value)
Definition Network.h:107
Network & WithVpcEndpointServiceName(Aws::String &&value)
Definition Network.h:138
const Framework & GetFramework() const
Definition Network.h:92
void SetId(Aws::String &&value)
Definition Network.h:53
Network & AddTags(const Aws::String &key, const Aws::String &value)
Definition Network.h:196
const Aws::String & GetName() const
Definition Network.h:64
Network & WithVotingPolicy(const VotingPolicy &value)
Definition Network.h:151
const Aws::Utils::DateTime & GetCreationDate() const
Definition Network.h:171
const NetworkFrameworkAttributes & GetFrameworkAttributes() const
Definition Network.h:118
Network & WithDescription(const Aws::String &value)
Definition Network.h:83
void SetVpcEndpointServiceName(Aws::String &&value)
Definition Network.h:135
const NetworkStatus & GetStatus() const
Definition Network.h:159
Network & WithId(Aws::String &&value)
Definition Network.h:56
Network & WithArn(const char *value)
Definition Network.h:220
void SetVotingPolicy(const VotingPolicy &value)
Definition Network.h:149
void SetArn(Aws::String &&value)
Definition Network.h:216
void SetVpcEndpointServiceName(const Aws::String &value)
Definition Network.h:134
Network & AddTags(Aws::String &&key, Aws::String &&value)
Definition Network.h:199
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition Network.h:193
Network & WithCreationDate(Aws::Utils::DateTime &&value)
Definition Network.h:176
Network & WithId(const Aws::String &value)
Definition Network.h:55
Network & WithFrameworkVersion(const char *value)
Definition Network.h:111
void SetName(const Aws::String &value)
Definition Network.h:66
Network & WithVpcEndpointServiceName(const char *value)
Definition Network.h:139
Network & WithFrameworkAttributes(NetworkFrameworkAttributes &&value)
Definition Network.h:123
void SetArn(const Aws::String &value)
Definition Network.h:215
Network & WithName(const char *value)
Definition Network.h:71
AWS_MANAGEDBLOCKCHAIN_API Network(Aws::Utils::Json::JsonView jsonValue)
void SetStatus(NetworkStatus &&value)
Definition Network.h:162
void SetFrameworkVersion(const char *value)
Definition Network.h:108
Network & AddTags(Aws::String &&key, const char *value)
Definition Network.h:201
AWS_MANAGEDBLOCKCHAIN_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition Network.h:192
Network & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition Network.h:194
Network & AddTags(const Aws::String &key, Aws::String &&value)
Definition Network.h:198
Network & WithArn(const Aws::String &value)
Definition Network.h:218
void SetName(const char *value)
Definition Network.h:68
const Aws::String & GetFrameworkVersion() const
Definition Network.h:104
void SetCreationDate(Aws::Utils::DateTime &&value)
Definition Network.h:174
const Aws::String & GetArn() const
Definition Network.h:213
void SetDescription(const char *value)
Definition Network.h:82
Network & WithDescription(const char *value)
Definition Network.h:85
Network & WithStatus(const NetworkStatus &value)
Definition Network.h:163
void SetFrameworkAttributes(NetworkFrameworkAttributes &&value)
Definition Network.h:121
Network & WithFramework(Framework &&value)
Definition Network.h:97
const Aws::String & GetId() const
Definition Network.h:50
void SetId(const Aws::String &value)
Definition Network.h:52
AWS_MANAGEDBLOCKCHAIN_API Network & operator=(Aws::Utils::Json::JsonView jsonValue)
Network & WithName(const Aws::String &value)
Definition Network.h:69
void SetId(const char *value)
Definition Network.h:54
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Network.h:190
void SetFramework(Framework &&value)
Definition Network.h:95
void SetFrameworkVersion(const Aws::String &value)
Definition Network.h:106
void SetName(Aws::String &&value)
Definition Network.h:67
Network & WithFramework(const Framework &value)
Definition Network.h:96
Network & WithId(const char *value)
Definition Network.h:57
const Aws::String & GetVpcEndpointServiceName() const
Definition Network.h:132
void SetDescription(const Aws::String &value)
Definition Network.h:80
Network & WithDescription(Aws::String &&value)
Definition Network.h:84
void SetDescription(Aws::String &&value)
Definition Network.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