AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
Network.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/Framework.h>
12#include <aws/managedblockchain/model/NetworkFrameworkAttributes.h>
13#include <aws/managedblockchain/model/NetworkStatus.h>
14#include <aws/managedblockchain/model/VotingPolicy.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 Network {
34 public:
35 AWS_MANAGEDBLOCKCHAIN_API Network() = default;
36 AWS_MANAGEDBLOCKCHAIN_API Network(Aws::Utils::Json::JsonView jsonValue);
37 AWS_MANAGEDBLOCKCHAIN_API Network& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_MANAGEDBLOCKCHAIN_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetId() const { return m_id; }
45 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
46 template <typename IdT = Aws::String>
47 void SetId(IdT&& value) {
48 m_idHasBeenSet = true;
49 m_id = std::forward<IdT>(value);
50 }
51 template <typename IdT = Aws::String>
52 Network& WithId(IdT&& value) {
53 SetId(std::forward<IdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetName() const { return m_name; }
63 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
64 template <typename NameT = Aws::String>
65 void SetName(NameT&& value) {
66 m_nameHasBeenSet = true;
67 m_name = std::forward<NameT>(value);
68 }
69 template <typename NameT = Aws::String>
70 Network& WithName(NameT&& value) {
71 SetName(std::forward<NameT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetDescription() const { return m_description; }
81 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
82 template <typename DescriptionT = Aws::String>
83 void SetDescription(DescriptionT&& value) {
84 m_descriptionHasBeenSet = true;
85 m_description = std::forward<DescriptionT>(value);
86 }
87 template <typename DescriptionT = Aws::String>
88 Network& WithDescription(DescriptionT&& value) {
89 SetDescription(std::forward<DescriptionT>(value));
90 return *this;
91 }
93
95
98 inline Framework GetFramework() const { return m_framework; }
99 inline bool FrameworkHasBeenSet() const { return m_frameworkHasBeenSet; }
100 inline void SetFramework(Framework value) {
101 m_frameworkHasBeenSet = true;
102 m_framework = value;
103 }
105 SetFramework(value);
106 return *this;
107 }
109
111
114 inline const Aws::String& GetFrameworkVersion() const { return m_frameworkVersion; }
115 inline bool FrameworkVersionHasBeenSet() const { return m_frameworkVersionHasBeenSet; }
116 template <typename FrameworkVersionT = Aws::String>
117 void SetFrameworkVersion(FrameworkVersionT&& value) {
118 m_frameworkVersionHasBeenSet = true;
119 m_frameworkVersion = std::forward<FrameworkVersionT>(value);
120 }
121 template <typename FrameworkVersionT = Aws::String>
122 Network& WithFrameworkVersion(FrameworkVersionT&& value) {
123 SetFrameworkVersion(std::forward<FrameworkVersionT>(value));
124 return *this;
125 }
127
129
132 inline const NetworkFrameworkAttributes& GetFrameworkAttributes() const { return m_frameworkAttributes; }
133 inline bool FrameworkAttributesHasBeenSet() const { return m_frameworkAttributesHasBeenSet; }
134 template <typename FrameworkAttributesT = NetworkFrameworkAttributes>
135 void SetFrameworkAttributes(FrameworkAttributesT&& value) {
136 m_frameworkAttributesHasBeenSet = true;
137 m_frameworkAttributes = std::forward<FrameworkAttributesT>(value);
138 }
139 template <typename FrameworkAttributesT = NetworkFrameworkAttributes>
140 Network& WithFrameworkAttributes(FrameworkAttributesT&& value) {
141 SetFrameworkAttributes(std::forward<FrameworkAttributesT>(value));
142 return *this;
143 }
145
147
152 inline const Aws::String& GetVpcEndpointServiceName() const { return m_vpcEndpointServiceName; }
153 inline bool VpcEndpointServiceNameHasBeenSet() const { return m_vpcEndpointServiceNameHasBeenSet; }
154 template <typename VpcEndpointServiceNameT = Aws::String>
155 void SetVpcEndpointServiceName(VpcEndpointServiceNameT&& value) {
156 m_vpcEndpointServiceNameHasBeenSet = true;
157 m_vpcEndpointServiceName = std::forward<VpcEndpointServiceNameT>(value);
158 }
159 template <typename VpcEndpointServiceNameT = Aws::String>
160 Network& WithVpcEndpointServiceName(VpcEndpointServiceNameT&& value) {
161 SetVpcEndpointServiceName(std::forward<VpcEndpointServiceNameT>(value));
162 return *this;
163 }
165
167
171 inline const VotingPolicy& GetVotingPolicy() const { return m_votingPolicy; }
172 inline bool VotingPolicyHasBeenSet() const { return m_votingPolicyHasBeenSet; }
173 template <typename VotingPolicyT = VotingPolicy>
174 void SetVotingPolicy(VotingPolicyT&& value) {
175 m_votingPolicyHasBeenSet = true;
176 m_votingPolicy = std::forward<VotingPolicyT>(value);
177 }
178 template <typename VotingPolicyT = VotingPolicy>
179 Network& WithVotingPolicy(VotingPolicyT&& value) {
180 SetVotingPolicy(std::forward<VotingPolicyT>(value));
181 return *this;
182 }
184
186
189 inline NetworkStatus GetStatus() const { return m_status; }
190 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
191 inline void SetStatus(NetworkStatus value) {
192 m_statusHasBeenSet = true;
193 m_status = value;
194 }
196 SetStatus(value);
197 return *this;
198 }
200
202
205 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
206 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
207 template <typename CreationDateT = Aws::Utils::DateTime>
208 void SetCreationDate(CreationDateT&& value) {
209 m_creationDateHasBeenSet = true;
210 m_creationDate = std::forward<CreationDateT>(value);
211 }
212 template <typename CreationDateT = Aws::Utils::DateTime>
213 Network& WithCreationDate(CreationDateT&& value) {
214 SetCreationDate(std::forward<CreationDateT>(value));
215 return *this;
216 }
218
220
230 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
231 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
232 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
233 void SetTags(TagsT&& value) {
234 m_tagsHasBeenSet = true;
235 m_tags = std::forward<TagsT>(value);
236 }
237 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
238 Network& WithTags(TagsT&& value) {
239 SetTags(std::forward<TagsT>(value));
240 return *this;
241 }
242 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
243 Network& AddTags(TagsKeyT&& key, TagsValueT&& value) {
244 m_tagsHasBeenSet = true;
245 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
246 return *this;
247 }
249
251
258 inline const Aws::String& GetArn() const { return m_arn; }
259 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
260 template <typename ArnT = Aws::String>
261 void SetArn(ArnT&& value) {
262 m_arnHasBeenSet = true;
263 m_arn = std::forward<ArnT>(value);
264 }
265 template <typename ArnT = Aws::String>
266 Network& WithArn(ArnT&& value) {
267 SetArn(std::forward<ArnT>(value));
268 return *this;
269 }
271 private:
272 Aws::String m_id;
273
274 Aws::String m_name;
275
276 Aws::String m_description;
277
278 Framework m_framework{Framework::NOT_SET};
279
280 Aws::String m_frameworkVersion;
281
282 NetworkFrameworkAttributes m_frameworkAttributes;
283
284 Aws::String m_vpcEndpointServiceName;
285
286 VotingPolicy m_votingPolicy;
287
289
290 Aws::Utils::DateTime m_creationDate{};
291
293
294 Aws::String m_arn;
295 bool m_idHasBeenSet = false;
296 bool m_nameHasBeenSet = false;
297 bool m_descriptionHasBeenSet = false;
298 bool m_frameworkHasBeenSet = false;
299 bool m_frameworkVersionHasBeenSet = false;
300 bool m_frameworkAttributesHasBeenSet = false;
301 bool m_vpcEndpointServiceNameHasBeenSet = false;
302 bool m_votingPolicyHasBeenSet = false;
303 bool m_statusHasBeenSet = false;
304 bool m_creationDateHasBeenSet = false;
305 bool m_tagsHasBeenSet = false;
306 bool m_arnHasBeenSet = false;
307};
308
309} // namespace Model
310} // namespace ManagedBlockchain
311} // namespace Aws
const VotingPolicy & GetVotingPolicy() const
Definition Network.h:171
void SetCreationDate(CreationDateT &&value)
Definition Network.h:208
void SetFrameworkVersion(FrameworkVersionT &&value)
Definition Network.h:117
Network & WithDescription(DescriptionT &&value)
Definition Network.h:88
const Aws::String & GetDescription() const
Definition Network.h:80
void SetVotingPolicy(VotingPolicyT &&value)
Definition Network.h:174
void SetFramework(Framework value)
Definition Network.h:100
const Aws::String & GetName() const
Definition Network.h:62
void SetFrameworkAttributes(FrameworkAttributesT &&value)
Definition Network.h:135
const Aws::Utils::DateTime & GetCreationDate() const
Definition Network.h:205
const NetworkFrameworkAttributes & GetFrameworkAttributes() const
Definition Network.h:132
Network & WithArn(ArnT &&value)
Definition Network.h:266
Network & WithVotingPolicy(VotingPolicyT &&value)
Definition Network.h:179
void SetStatus(NetworkStatus value)
Definition Network.h:191
Network & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Network.h:243
AWS_MANAGEDBLOCKCHAIN_API Network(Aws::Utils::Json::JsonView jsonValue)
void SetDescription(DescriptionT &&value)
Definition Network.h:83
AWS_MANAGEDBLOCKCHAIN_API Aws::Utils::Json::JsonValue Jsonize() const
Network & WithFramework(Framework value)
Definition Network.h:104
const Aws::String & GetFrameworkVersion() const
Definition Network.h:114
Network & WithName(NameT &&value)
Definition Network.h:70
const Aws::String & GetArn() const
Definition Network.h:258
const Aws::String & GetId() const
Definition Network.h:44
Network & WithFrameworkAttributes(FrameworkAttributesT &&value)
Definition Network.h:140
Network & WithId(IdT &&value)
Definition Network.h:52
Network & WithCreationDate(CreationDateT &&value)
Definition Network.h:213
AWS_MANAGEDBLOCKCHAIN_API Network & operator=(Aws::Utils::Json::JsonView jsonValue)
Network & WithVpcEndpointServiceName(VpcEndpointServiceNameT &&value)
Definition Network.h:160
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Network.h:230
AWS_MANAGEDBLOCKCHAIN_API Network()=default
Network & WithTags(TagsT &&value)
Definition Network.h:238
NetworkStatus GetStatus() const
Definition Network.h:189
Network & WithStatus(NetworkStatus value)
Definition Network.h:195
void SetVpcEndpointServiceName(VpcEndpointServiceNameT &&value)
Definition Network.h:155
const Aws::String & GetVpcEndpointServiceName() const
Definition Network.h:152
Network & WithFrameworkVersion(FrameworkVersionT &&value)
Definition Network.h:122
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