AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename IdT = Aws::String>
53 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
54 template<typename IdT = Aws::String>
55 Network& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
66 template<typename NameT = Aws::String>
67 Network& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
69
71
74 inline const Aws::String& GetDescription() const { return m_description; }
75 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
76 template<typename DescriptionT = Aws::String>
77 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
78 template<typename DescriptionT = Aws::String>
79 Network& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
81
83
86 inline Framework GetFramework() const { return m_framework; }
87 inline bool FrameworkHasBeenSet() const { return m_frameworkHasBeenSet; }
88 inline void SetFramework(Framework value) { m_frameworkHasBeenSet = true; m_framework = value; }
89 inline Network& WithFramework(Framework value) { SetFramework(value); return *this;}
91
93
96 inline const Aws::String& GetFrameworkVersion() const { return m_frameworkVersion; }
97 inline bool FrameworkVersionHasBeenSet() const { return m_frameworkVersionHasBeenSet; }
98 template<typename FrameworkVersionT = Aws::String>
99 void SetFrameworkVersion(FrameworkVersionT&& value) { m_frameworkVersionHasBeenSet = true; m_frameworkVersion = std::forward<FrameworkVersionT>(value); }
100 template<typename FrameworkVersionT = Aws::String>
101 Network& WithFrameworkVersion(FrameworkVersionT&& value) { SetFrameworkVersion(std::forward<FrameworkVersionT>(value)); return *this;}
103
105
108 inline const NetworkFrameworkAttributes& GetFrameworkAttributes() const { return m_frameworkAttributes; }
109 inline bool FrameworkAttributesHasBeenSet() const { return m_frameworkAttributesHasBeenSet; }
110 template<typename FrameworkAttributesT = NetworkFrameworkAttributes>
111 void SetFrameworkAttributes(FrameworkAttributesT&& value) { m_frameworkAttributesHasBeenSet = true; m_frameworkAttributes = std::forward<FrameworkAttributesT>(value); }
112 template<typename FrameworkAttributesT = NetworkFrameworkAttributes>
113 Network& WithFrameworkAttributes(FrameworkAttributesT&& value) { SetFrameworkAttributes(std::forward<FrameworkAttributesT>(value)); return *this;}
115
117
122 inline const Aws::String& GetVpcEndpointServiceName() const { return m_vpcEndpointServiceName; }
123 inline bool VpcEndpointServiceNameHasBeenSet() const { return m_vpcEndpointServiceNameHasBeenSet; }
124 template<typename VpcEndpointServiceNameT = Aws::String>
125 void SetVpcEndpointServiceName(VpcEndpointServiceNameT&& value) { m_vpcEndpointServiceNameHasBeenSet = true; m_vpcEndpointServiceName = std::forward<VpcEndpointServiceNameT>(value); }
126 template<typename VpcEndpointServiceNameT = Aws::String>
127 Network& WithVpcEndpointServiceName(VpcEndpointServiceNameT&& value) { SetVpcEndpointServiceName(std::forward<VpcEndpointServiceNameT>(value)); return *this;}
129
131
135 inline const VotingPolicy& GetVotingPolicy() const { return m_votingPolicy; }
136 inline bool VotingPolicyHasBeenSet() const { return m_votingPolicyHasBeenSet; }
137 template<typename VotingPolicyT = VotingPolicy>
138 void SetVotingPolicy(VotingPolicyT&& value) { m_votingPolicyHasBeenSet = true; m_votingPolicy = std::forward<VotingPolicyT>(value); }
139 template<typename VotingPolicyT = VotingPolicy>
140 Network& WithVotingPolicy(VotingPolicyT&& value) { SetVotingPolicy(std::forward<VotingPolicyT>(value)); return *this;}
142
144
147 inline NetworkStatus GetStatus() const { return m_status; }
148 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
149 inline void SetStatus(NetworkStatus value) { m_statusHasBeenSet = true; m_status = value; }
150 inline Network& WithStatus(NetworkStatus value) { SetStatus(value); return *this;}
152
154
157 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
158 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
159 template<typename CreationDateT = Aws::Utils::DateTime>
160 void SetCreationDate(CreationDateT&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::forward<CreationDateT>(value); }
161 template<typename CreationDateT = Aws::Utils::DateTime>
162 Network& WithCreationDate(CreationDateT&& value) { SetCreationDate(std::forward<CreationDateT>(value)); return *this;}
164
166
176 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
177 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
178 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
179 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
180 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
181 Network& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
182 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
183 Network& AddTags(TagsKeyT&& key, TagsValueT&& value) {
184 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
185 }
187
189
196 inline const Aws::String& GetArn() const { return m_arn; }
197 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
198 template<typename ArnT = Aws::String>
199 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
200 template<typename ArnT = Aws::String>
201 Network& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
203 private:
204
205 Aws::String m_id;
206 bool m_idHasBeenSet = false;
207
208 Aws::String m_name;
209 bool m_nameHasBeenSet = false;
210
211 Aws::String m_description;
212 bool m_descriptionHasBeenSet = false;
213
214 Framework m_framework{Framework::NOT_SET};
215 bool m_frameworkHasBeenSet = false;
216
217 Aws::String m_frameworkVersion;
218 bool m_frameworkVersionHasBeenSet = false;
219
220 NetworkFrameworkAttributes m_frameworkAttributes;
221 bool m_frameworkAttributesHasBeenSet = false;
222
223 Aws::String m_vpcEndpointServiceName;
224 bool m_vpcEndpointServiceNameHasBeenSet = false;
225
226 VotingPolicy m_votingPolicy;
227 bool m_votingPolicyHasBeenSet = false;
228
230 bool m_statusHasBeenSet = false;
231
232 Aws::Utils::DateTime m_creationDate{};
233 bool m_creationDateHasBeenSet = false;
234
236 bool m_tagsHasBeenSet = false;
237
238 Aws::String m_arn;
239 bool m_arnHasBeenSet = false;
240 };
241
242} // namespace Model
243} // namespace ManagedBlockchain
244} // namespace Aws
const VotingPolicy & GetVotingPolicy() const
Definition Network.h:135
void SetCreationDate(CreationDateT &&value)
Definition Network.h:160
void SetFrameworkVersion(FrameworkVersionT &&value)
Definition Network.h:99
Network & WithDescription(DescriptionT &&value)
Definition Network.h:79
const Aws::String & GetDescription() const
Definition Network.h:74
void SetVotingPolicy(VotingPolicyT &&value)
Definition Network.h:138
void SetFramework(Framework value)
Definition Network.h:88
const Aws::String & GetName() const
Definition Network.h:62
void SetFrameworkAttributes(FrameworkAttributesT &&value)
Definition Network.h:111
const Aws::Utils::DateTime & GetCreationDate() const
Definition Network.h:157
const NetworkFrameworkAttributes & GetFrameworkAttributes() const
Definition Network.h:108
Network & WithArn(ArnT &&value)
Definition Network.h:201
Network & WithVotingPolicy(VotingPolicyT &&value)
Definition Network.h:140
void SetStatus(NetworkStatus value)
Definition Network.h:149
Network & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Network.h:183
AWS_MANAGEDBLOCKCHAIN_API Network(Aws::Utils::Json::JsonView jsonValue)
void SetDescription(DescriptionT &&value)
Definition Network.h:77
AWS_MANAGEDBLOCKCHAIN_API Aws::Utils::Json::JsonValue Jsonize() const
Network & WithFramework(Framework value)
Definition Network.h:89
const Aws::String & GetFrameworkVersion() const
Definition Network.h:96
Network & WithName(NameT &&value)
Definition Network.h:67
const Aws::String & GetArn() const
Definition Network.h:196
const Aws::String & GetId() const
Definition Network.h:50
Network & WithFrameworkAttributes(FrameworkAttributesT &&value)
Definition Network.h:113
Network & WithId(IdT &&value)
Definition Network.h:55
Network & WithCreationDate(CreationDateT &&value)
Definition Network.h:162
AWS_MANAGEDBLOCKCHAIN_API Network & operator=(Aws::Utils::Json::JsonView jsonValue)
Network & WithVpcEndpointServiceName(VpcEndpointServiceNameT &&value)
Definition Network.h:127
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Network.h:176
AWS_MANAGEDBLOCKCHAIN_API Network()=default
Network & WithTags(TagsT &&value)
Definition Network.h:181
NetworkStatus GetStatus() const
Definition Network.h:147
Network & WithStatus(NetworkStatus value)
Definition Network.h:150
void SetVpcEndpointServiceName(VpcEndpointServiceNameT &&value)
Definition Network.h:125
const Aws::String & GetVpcEndpointServiceName() const
Definition Network.h:122
Network & WithFrameworkVersion(FrameworkVersionT &&value)
Definition Network.h:101
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