AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateNetworkRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/managedblockchain/ManagedBlockchainRequest.h>
11#include <aws/managedblockchain/ManagedBlockchain_EXPORTS.h>
12#include <aws/managedblockchain/model/Framework.h>
13#include <aws/managedblockchain/model/MemberConfiguration.h>
14#include <aws/managedblockchain/model/NetworkFrameworkConfiguration.h>
15#include <aws/managedblockchain/model/VotingPolicy.h>
16
17#include <utility>
18
19namespace Aws {
20namespace ManagedBlockchain {
21namespace Model {
22
26 public:
27 AWS_MANAGEDBLOCKCHAIN_API CreateNetworkRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateNetwork"; }
34
35 AWS_MANAGEDBLOCKCHAIN_API Aws::String SerializePayload() const override;
36
38
45 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
46 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
47 template <typename ClientRequestTokenT = Aws::String>
48 void SetClientRequestToken(ClientRequestTokenT&& value) {
49 m_clientRequestTokenHasBeenSet = true;
50 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
51 }
52 template <typename ClientRequestTokenT = Aws::String>
53 CreateNetworkRequest& WithClientRequestToken(ClientRequestTokenT&& value) {
54 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetName() const { return m_name; }
64 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
65 template <typename NameT = Aws::String>
66 void SetName(NameT&& value) {
67 m_nameHasBeenSet = true;
68 m_name = std::forward<NameT>(value);
69 }
70 template <typename NameT = Aws::String>
72 SetName(std::forward<NameT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetDescription() const { return m_description; }
82 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
83 template <typename DescriptionT = Aws::String>
84 void SetDescription(DescriptionT&& value) {
85 m_descriptionHasBeenSet = true;
86 m_description = std::forward<DescriptionT>(value);
87 }
88 template <typename DescriptionT = Aws::String>
89 CreateNetworkRequest& WithDescription(DescriptionT&& value) {
90 SetDescription(std::forward<DescriptionT>(value));
91 return *this;
92 }
94
96
99 inline Framework GetFramework() const { return m_framework; }
100 inline bool FrameworkHasBeenSet() const { return m_frameworkHasBeenSet; }
101 inline void SetFramework(Framework value) {
102 m_frameworkHasBeenSet = true;
103 m_framework = value;
104 }
106 SetFramework(value);
107 return *this;
108 }
110
112
115 inline const Aws::String& GetFrameworkVersion() const { return m_frameworkVersion; }
116 inline bool FrameworkVersionHasBeenSet() const { return m_frameworkVersionHasBeenSet; }
117 template <typename FrameworkVersionT = Aws::String>
118 void SetFrameworkVersion(FrameworkVersionT&& value) {
119 m_frameworkVersionHasBeenSet = true;
120 m_frameworkVersion = std::forward<FrameworkVersionT>(value);
121 }
122 template <typename FrameworkVersionT = Aws::String>
123 CreateNetworkRequest& WithFrameworkVersion(FrameworkVersionT&& value) {
124 SetFrameworkVersion(std::forward<FrameworkVersionT>(value));
125 return *this;
126 }
128
130
134 inline const NetworkFrameworkConfiguration& GetFrameworkConfiguration() const { return m_frameworkConfiguration; }
135 inline bool FrameworkConfigurationHasBeenSet() const { return m_frameworkConfigurationHasBeenSet; }
136 template <typename FrameworkConfigurationT = NetworkFrameworkConfiguration>
137 void SetFrameworkConfiguration(FrameworkConfigurationT&& value) {
138 m_frameworkConfigurationHasBeenSet = true;
139 m_frameworkConfiguration = std::forward<FrameworkConfigurationT>(value);
140 }
141 template <typename FrameworkConfigurationT = NetworkFrameworkConfiguration>
142 CreateNetworkRequest& WithFrameworkConfiguration(FrameworkConfigurationT&& value) {
143 SetFrameworkConfiguration(std::forward<FrameworkConfigurationT>(value));
144 return *this;
145 }
147
149
153 inline const VotingPolicy& GetVotingPolicy() const { return m_votingPolicy; }
154 inline bool VotingPolicyHasBeenSet() const { return m_votingPolicyHasBeenSet; }
155 template <typename VotingPolicyT = VotingPolicy>
156 void SetVotingPolicy(VotingPolicyT&& value) {
157 m_votingPolicyHasBeenSet = true;
158 m_votingPolicy = std::forward<VotingPolicyT>(value);
159 }
160 template <typename VotingPolicyT = VotingPolicy>
161 CreateNetworkRequest& WithVotingPolicy(VotingPolicyT&& value) {
162 SetVotingPolicy(std::forward<VotingPolicyT>(value));
163 return *this;
164 }
166
168
171 inline const MemberConfiguration& GetMemberConfiguration() const { return m_memberConfiguration; }
172 inline bool MemberConfigurationHasBeenSet() const { return m_memberConfigurationHasBeenSet; }
173 template <typename MemberConfigurationT = MemberConfiguration>
174 void SetMemberConfiguration(MemberConfigurationT&& value) {
175 m_memberConfigurationHasBeenSet = true;
176 m_memberConfiguration = std::forward<MemberConfigurationT>(value);
177 }
178 template <typename MemberConfigurationT = MemberConfiguration>
179 CreateNetworkRequest& WithMemberConfiguration(MemberConfigurationT&& value) {
180 SetMemberConfiguration(std::forward<MemberConfigurationT>(value));
181 return *this;
182 }
184
186
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) {
202 m_tagsHasBeenSet = true;
203 m_tags = std::forward<TagsT>(value);
204 }
205 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
207 SetTags(std::forward<TagsT>(value));
208 return *this;
209 }
210 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
211 CreateNetworkRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
212 m_tagsHasBeenSet = true;
213 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
214 return *this;
215 }
217 private:
218 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
219
220 Aws::String m_name;
221
222 Aws::String m_description;
223
224 Framework m_framework{Framework::NOT_SET};
225
226 Aws::String m_frameworkVersion;
227
228 NetworkFrameworkConfiguration m_frameworkConfiguration;
229
230 VotingPolicy m_votingPolicy;
231
232 MemberConfiguration m_memberConfiguration;
233
235 bool m_clientRequestTokenHasBeenSet = true;
236 bool m_nameHasBeenSet = false;
237 bool m_descriptionHasBeenSet = false;
238 bool m_frameworkHasBeenSet = false;
239 bool m_frameworkVersionHasBeenSet = false;
240 bool m_frameworkConfigurationHasBeenSet = false;
241 bool m_votingPolicyHasBeenSet = false;
242 bool m_memberConfigurationHasBeenSet = false;
243 bool m_tagsHasBeenSet = false;
244};
245
246} // namespace Model
247} // namespace ManagedBlockchain
248} // namespace Aws
CreateNetworkRequest & WithVotingPolicy(VotingPolicyT &&value)
CreateNetworkRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const MemberConfiguration & GetMemberConfiguration() const
CreateNetworkRequest & WithFramework(Framework value)
void SetFrameworkConfiguration(FrameworkConfigurationT &&value)
void SetClientRequestToken(ClientRequestTokenT &&value)
CreateNetworkRequest & WithFrameworkConfiguration(FrameworkConfigurationT &&value)
AWS_MANAGEDBLOCKCHAIN_API CreateNetworkRequest()=default
CreateNetworkRequest & WithClientRequestToken(ClientRequestTokenT &&value)
void SetMemberConfiguration(MemberConfigurationT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_MANAGEDBLOCKCHAIN_API Aws::String SerializePayload() const override
CreateNetworkRequest & WithMemberConfiguration(MemberConfigurationT &&value)
CreateNetworkRequest & WithDescription(DescriptionT &&value)
CreateNetworkRequest & WithFrameworkVersion(FrameworkVersionT &&value)
const NetworkFrameworkConfiguration & GetFrameworkConfiguration() const
static Aws::Utils::UUID PseudoRandomUUID()
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