AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateNetworkRequest.h
1
6#pragma once
7#include <aws/managedblockchain/ManagedBlockchain_EXPORTS.h>
8#include <aws/managedblockchain/ManagedBlockchainRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/managedblockchain/model/Framework.h>
11#include <aws/managedblockchain/model/NetworkFrameworkConfiguration.h>
12#include <aws/managedblockchain/model/VotingPolicy.h>
13#include <aws/managedblockchain/model/MemberConfiguration.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <utility>
16#include <aws/core/utils/UUID.h>
17
18namespace Aws
19{
20namespace ManagedBlockchain
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_MANAGEDBLOCKCHAIN_API CreateNetworkRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateNetwork"; }
37
38 AWS_MANAGEDBLOCKCHAIN_API Aws::String SerializePayload() const override;
39
40
42
49 inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
50 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
51 inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
52 inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
53 inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
55 inline CreateNetworkRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
56 inline CreateNetworkRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
58
60
63 inline const Aws::String& GetName() const{ return m_name; }
64 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
65 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
66 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
67 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
68 inline CreateNetworkRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
69 inline CreateNetworkRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
70 inline CreateNetworkRequest& WithName(const char* value) { SetName(value); return *this;}
72
74
77 inline const Aws::String& GetDescription() const{ return m_description; }
78 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
79 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
80 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
81 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
82 inline CreateNetworkRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
83 inline CreateNetworkRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
84 inline CreateNetworkRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
86
88
91 inline const Framework& GetFramework() const{ return m_framework; }
92 inline bool FrameworkHasBeenSet() const { return m_frameworkHasBeenSet; }
93 inline void SetFramework(const Framework& value) { m_frameworkHasBeenSet = true; m_framework = value; }
94 inline void SetFramework(Framework&& value) { m_frameworkHasBeenSet = true; m_framework = std::move(value); }
95 inline CreateNetworkRequest& WithFramework(const Framework& value) { SetFramework(value); return *this;}
96 inline CreateNetworkRequest& WithFramework(Framework&& value) { SetFramework(std::move(value)); return *this;}
98
100
103 inline const Aws::String& GetFrameworkVersion() const{ return m_frameworkVersion; }
104 inline bool FrameworkVersionHasBeenSet() const { return m_frameworkVersionHasBeenSet; }
105 inline void SetFrameworkVersion(const Aws::String& value) { m_frameworkVersionHasBeenSet = true; m_frameworkVersion = value; }
106 inline void SetFrameworkVersion(Aws::String&& value) { m_frameworkVersionHasBeenSet = true; m_frameworkVersion = std::move(value); }
107 inline void SetFrameworkVersion(const char* value) { m_frameworkVersionHasBeenSet = true; m_frameworkVersion.assign(value); }
108 inline CreateNetworkRequest& WithFrameworkVersion(const Aws::String& value) { SetFrameworkVersion(value); return *this;}
109 inline CreateNetworkRequest& WithFrameworkVersion(Aws::String&& value) { SetFrameworkVersion(std::move(value)); return *this;}
110 inline CreateNetworkRequest& WithFrameworkVersion(const char* value) { SetFrameworkVersion(value); return *this;}
112
114
118 inline const NetworkFrameworkConfiguration& GetFrameworkConfiguration() const{ return m_frameworkConfiguration; }
119 inline bool FrameworkConfigurationHasBeenSet() const { return m_frameworkConfigurationHasBeenSet; }
120 inline void SetFrameworkConfiguration(const NetworkFrameworkConfiguration& value) { m_frameworkConfigurationHasBeenSet = true; m_frameworkConfiguration = value; }
121 inline void SetFrameworkConfiguration(NetworkFrameworkConfiguration&& value) { m_frameworkConfigurationHasBeenSet = true; m_frameworkConfiguration = std::move(value); }
125
127
131 inline const VotingPolicy& GetVotingPolicy() const{ return m_votingPolicy; }
132 inline bool VotingPolicyHasBeenSet() const { return m_votingPolicyHasBeenSet; }
133 inline void SetVotingPolicy(const VotingPolicy& value) { m_votingPolicyHasBeenSet = true; m_votingPolicy = value; }
134 inline void SetVotingPolicy(VotingPolicy&& value) { m_votingPolicyHasBeenSet = true; m_votingPolicy = std::move(value); }
135 inline CreateNetworkRequest& WithVotingPolicy(const VotingPolicy& value) { SetVotingPolicy(value); return *this;}
136 inline CreateNetworkRequest& WithVotingPolicy(VotingPolicy&& value) { SetVotingPolicy(std::move(value)); return *this;}
138
140
143 inline const MemberConfiguration& GetMemberConfiguration() const{ return m_memberConfiguration; }
144 inline bool MemberConfigurationHasBeenSet() const { return m_memberConfigurationHasBeenSet; }
145 inline void SetMemberConfiguration(const MemberConfiguration& value) { m_memberConfigurationHasBeenSet = true; m_memberConfiguration = value; }
146 inline void SetMemberConfiguration(MemberConfiguration&& value) { m_memberConfigurationHasBeenSet = true; m_memberConfiguration = std::move(value); }
150
152
164 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
165 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
166 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
167 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
168 inline CreateNetworkRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
169 inline CreateNetworkRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
170 inline CreateNetworkRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
171 inline CreateNetworkRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
172 inline CreateNetworkRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
173 inline CreateNetworkRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
174 inline CreateNetworkRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
175 inline CreateNetworkRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
176 inline CreateNetworkRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
178 private:
179
180 Aws::String m_clientRequestToken;
181 bool m_clientRequestTokenHasBeenSet = false;
182
183 Aws::String m_name;
184 bool m_nameHasBeenSet = false;
185
186 Aws::String m_description;
187 bool m_descriptionHasBeenSet = false;
188
189 Framework m_framework;
190 bool m_frameworkHasBeenSet = false;
191
192 Aws::String m_frameworkVersion;
193 bool m_frameworkVersionHasBeenSet = false;
194
195 NetworkFrameworkConfiguration m_frameworkConfiguration;
196 bool m_frameworkConfigurationHasBeenSet = false;
197
198 VotingPolicy m_votingPolicy;
199 bool m_votingPolicyHasBeenSet = false;
200
201 MemberConfiguration m_memberConfiguration;
202 bool m_memberConfigurationHasBeenSet = false;
203
205 bool m_tagsHasBeenSet = false;
206 };
207
208} // namespace Model
209} // namespace ManagedBlockchain
210} // namespace Aws
CreateNetworkRequest & WithVotingPolicy(VotingPolicy &&value)
CreateNetworkRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateNetworkRequest & WithClientRequestToken(const Aws::String &value)
CreateNetworkRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateNetworkRequest & WithDescription(const char *value)
CreateNetworkRequest & WithFramework(const Framework &value)
CreateNetworkRequest & WithName(const char *value)
const MemberConfiguration & GetMemberConfiguration() const
CreateNetworkRequest & WithDescription(Aws::String &&value)
CreateNetworkRequest & WithFrameworkVersion(const char *value)
CreateNetworkRequest & WithFrameworkVersion(Aws::String &&value)
CreateNetworkRequest & WithName(const Aws::String &value)
CreateNetworkRequest & WithName(Aws::String &&value)
CreateNetworkRequest & WithClientRequestToken(Aws::String &&value)
CreateNetworkRequest & WithFrameworkConfiguration(NetworkFrameworkConfiguration &&value)
void SetFrameworkConfiguration(NetworkFrameworkConfiguration &&value)
CreateNetworkRequest & WithDescription(const Aws::String &value)
CreateNetworkRequest & WithFrameworkConfiguration(const NetworkFrameworkConfiguration &value)
CreateNetworkRequest & AddTags(Aws::String &&key, Aws::String &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateNetworkRequest & AddTags(Aws::String &&key, const char *value)
CreateNetworkRequest & AddTags(const char *key, Aws::String &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateNetworkRequest & WithMemberConfiguration(const MemberConfiguration &value)
void SetMemberConfiguration(const MemberConfiguration &value)
virtual const char * GetServiceRequestName() const override
CreateNetworkRequest & WithMemberConfiguration(MemberConfiguration &&value)
CreateNetworkRequest & AddTags(const char *key, const char *value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateNetworkRequest & WithClientRequestToken(const char *value)
CreateNetworkRequest & WithVotingPolicy(const VotingPolicy &value)
CreateNetworkRequest & WithFramework(Framework &&value)
AWS_MANAGEDBLOCKCHAIN_API Aws::String SerializePayload() const override
CreateNetworkRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateNetworkRequest & WithFrameworkVersion(const Aws::String &value)
CreateNetworkRequest & AddTags(const Aws::String &key, Aws::String &&value)
const NetworkFrameworkConfiguration & GetFrameworkConfiguration() const
CreateNetworkRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetFrameworkConfiguration(const NetworkFrameworkConfiguration &value)
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