AWS SDK for C++

AWS SDK for C++ Version 1.11.687

Loading...
Searching...
No Matches
CreateEnvironmentRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/m2/MainframeModernizationRequest.h>
12#include <aws/m2/MainframeModernization_EXPORTS.h>
13#include <aws/m2/model/EngineType.h>
14#include <aws/m2/model/HighAvailabilityConfig.h>
15#include <aws/m2/model/NetworkType.h>
16#include <aws/m2/model/StorageConfiguration.h>
17
18#include <utility>
19
20namespace Aws {
21namespace MainframeModernization {
22namespace Model {
23
27 public:
28 AWS_MAINFRAMEMODERNIZATION_API CreateEnvironmentRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateEnvironment"; }
35
36 AWS_MAINFRAMEMODERNIZATION_API Aws::String SerializePayload() const override;
37
39
47 inline const Aws::String& GetClientToken() const { return m_clientToken; }
48 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
49 template <typename ClientTokenT = Aws::String>
50 void SetClientToken(ClientTokenT&& value) {
51 m_clientTokenHasBeenSet = true;
52 m_clientToken = std::forward<ClientTokenT>(value);
53 }
54 template <typename ClientTokenT = Aws::String>
56 SetClientToken(std::forward<ClientTokenT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetDescription() const { return m_description; }
66 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
67 template <typename DescriptionT = Aws::String>
68 void SetDescription(DescriptionT&& value) {
69 m_descriptionHasBeenSet = true;
70 m_description = std::forward<DescriptionT>(value);
71 }
72 template <typename DescriptionT = Aws::String>
74 SetDescription(std::forward<DescriptionT>(value));
75 return *this;
76 }
78
80
83 inline EngineType GetEngineType() const { return m_engineType; }
84 inline bool EngineTypeHasBeenSet() const { return m_engineTypeHasBeenSet; }
85 inline void SetEngineType(EngineType value) {
86 m_engineTypeHasBeenSet = true;
87 m_engineType = value;
88 }
90 SetEngineType(value);
91 return *this;
92 }
94
96
99 inline const Aws::String& GetEngineVersion() const { return m_engineVersion; }
100 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
101 template <typename EngineVersionT = Aws::String>
102 void SetEngineVersion(EngineVersionT&& value) {
103 m_engineVersionHasBeenSet = true;
104 m_engineVersion = std::forward<EngineVersionT>(value);
105 }
106 template <typename EngineVersionT = Aws::String>
108 SetEngineVersion(std::forward<EngineVersionT>(value));
109 return *this;
110 }
112
114
118 inline const HighAvailabilityConfig& GetHighAvailabilityConfig() const { return m_highAvailabilityConfig; }
119 inline bool HighAvailabilityConfigHasBeenSet() const { return m_highAvailabilityConfigHasBeenSet; }
120 template <typename HighAvailabilityConfigT = HighAvailabilityConfig>
121 void SetHighAvailabilityConfig(HighAvailabilityConfigT&& value) {
122 m_highAvailabilityConfigHasBeenSet = true;
123 m_highAvailabilityConfig = std::forward<HighAvailabilityConfigT>(value);
124 }
125 template <typename HighAvailabilityConfigT = HighAvailabilityConfig>
126 CreateEnvironmentRequest& WithHighAvailabilityConfig(HighAvailabilityConfigT&& value) {
127 SetHighAvailabilityConfig(std::forward<HighAvailabilityConfigT>(value));
128 return *this;
129 }
131
133
136 inline const Aws::String& GetInstanceType() const { return m_instanceType; }
137 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
138 template <typename InstanceTypeT = Aws::String>
139 void SetInstanceType(InstanceTypeT&& value) {
140 m_instanceTypeHasBeenSet = true;
141 m_instanceType = std::forward<InstanceTypeT>(value);
142 }
143 template <typename InstanceTypeT = Aws::String>
145 SetInstanceType(std::forward<InstanceTypeT>(value));
146 return *this;
147 }
149
151
154 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
155 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
156 template <typename KmsKeyIdT = Aws::String>
157 void SetKmsKeyId(KmsKeyIdT&& value) {
158 m_kmsKeyIdHasBeenSet = true;
159 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
160 }
161 template <typename KmsKeyIdT = Aws::String>
163 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
164 return *this;
165 }
167
169
172 inline const Aws::String& GetName() const { return m_name; }
173 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
174 template <typename NameT = Aws::String>
175 void SetName(NameT&& value) {
176 m_nameHasBeenSet = true;
177 m_name = std::forward<NameT>(value);
178 }
179 template <typename NameT = Aws::String>
181 SetName(std::forward<NameT>(value));
182 return *this;
183 }
185
187
190 inline NetworkType GetNetworkType() const { return m_networkType; }
191 inline bool NetworkTypeHasBeenSet() const { return m_networkTypeHasBeenSet; }
192 inline void SetNetworkType(NetworkType value) {
193 m_networkTypeHasBeenSet = true;
194 m_networkType = value;
195 }
197 SetNetworkType(value);
198 return *this;
199 }
201
203
211 inline const Aws::String& GetPreferredMaintenanceWindow() const { return m_preferredMaintenanceWindow; }
212 inline bool PreferredMaintenanceWindowHasBeenSet() const { return m_preferredMaintenanceWindowHasBeenSet; }
213 template <typename PreferredMaintenanceWindowT = Aws::String>
214 void SetPreferredMaintenanceWindow(PreferredMaintenanceWindowT&& value) {
215 m_preferredMaintenanceWindowHasBeenSet = true;
216 m_preferredMaintenanceWindow = std::forward<PreferredMaintenanceWindowT>(value);
217 }
218 template <typename PreferredMaintenanceWindowT = Aws::String>
219 CreateEnvironmentRequest& WithPreferredMaintenanceWindow(PreferredMaintenanceWindowT&& value) {
220 SetPreferredMaintenanceWindow(std::forward<PreferredMaintenanceWindowT>(value));
221 return *this;
222 }
224
226
229 inline bool GetPubliclyAccessible() const { return m_publiclyAccessible; }
230 inline bool PubliclyAccessibleHasBeenSet() const { return m_publiclyAccessibleHasBeenSet; }
231 inline void SetPubliclyAccessible(bool value) {
232 m_publiclyAccessibleHasBeenSet = true;
233 m_publiclyAccessible = value;
234 }
237 return *this;
238 }
240
242
246 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
247 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
248 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
249 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
250 m_securityGroupIdsHasBeenSet = true;
251 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
252 }
253 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
254 CreateEnvironmentRequest& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
255 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
256 return *this;
257 }
258 template <typename SecurityGroupIdsT = Aws::String>
259 CreateEnvironmentRequest& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
260 m_securityGroupIdsHasBeenSet = true;
261 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
262 return *this;
263 }
265
267
270 inline const Aws::Vector<StorageConfiguration>& GetStorageConfigurations() const { return m_storageConfigurations; }
271 inline bool StorageConfigurationsHasBeenSet() const { return m_storageConfigurationsHasBeenSet; }
272 template <typename StorageConfigurationsT = Aws::Vector<StorageConfiguration>>
273 void SetStorageConfigurations(StorageConfigurationsT&& value) {
274 m_storageConfigurationsHasBeenSet = true;
275 m_storageConfigurations = std::forward<StorageConfigurationsT>(value);
276 }
277 template <typename StorageConfigurationsT = Aws::Vector<StorageConfiguration>>
278 CreateEnvironmentRequest& WithStorageConfigurations(StorageConfigurationsT&& value) {
279 SetStorageConfigurations(std::forward<StorageConfigurationsT>(value));
280 return *this;
281 }
282 template <typename StorageConfigurationsT = StorageConfiguration>
283 CreateEnvironmentRequest& AddStorageConfigurations(StorageConfigurationsT&& value) {
284 m_storageConfigurationsHasBeenSet = true;
285 m_storageConfigurations.emplace_back(std::forward<StorageConfigurationsT>(value));
286 return *this;
287 }
289
291
294 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
295 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
296 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
297 void SetSubnetIds(SubnetIdsT&& value) {
298 m_subnetIdsHasBeenSet = true;
299 m_subnetIds = std::forward<SubnetIdsT>(value);
300 }
301 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
303 SetSubnetIds(std::forward<SubnetIdsT>(value));
304 return *this;
305 }
306 template <typename SubnetIdsT = Aws::String>
308 m_subnetIdsHasBeenSet = true;
309 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
310 return *this;
311 }
313
315
318 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
319 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
320 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
321 void SetTags(TagsT&& value) {
322 m_tagsHasBeenSet = true;
323 m_tags = std::forward<TagsT>(value);
324 }
325 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
327 SetTags(std::forward<TagsT>(value));
328 return *this;
329 }
330 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
331 CreateEnvironmentRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
332 m_tagsHasBeenSet = true;
333 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
334 return *this;
335 }
337 private:
339 bool m_clientTokenHasBeenSet = true;
340
341 Aws::String m_description;
342 bool m_descriptionHasBeenSet = false;
343
344 EngineType m_engineType{EngineType::NOT_SET};
345 bool m_engineTypeHasBeenSet = false;
346
347 Aws::String m_engineVersion;
348 bool m_engineVersionHasBeenSet = false;
349
350 HighAvailabilityConfig m_highAvailabilityConfig;
351 bool m_highAvailabilityConfigHasBeenSet = false;
352
353 Aws::String m_instanceType;
354 bool m_instanceTypeHasBeenSet = false;
355
356 Aws::String m_kmsKeyId;
357 bool m_kmsKeyIdHasBeenSet = false;
358
359 Aws::String m_name;
360 bool m_nameHasBeenSet = false;
361
362 NetworkType m_networkType{NetworkType::NOT_SET};
363 bool m_networkTypeHasBeenSet = false;
364
365 Aws::String m_preferredMaintenanceWindow;
366 bool m_preferredMaintenanceWindowHasBeenSet = false;
367
368 bool m_publiclyAccessible{false};
369 bool m_publiclyAccessibleHasBeenSet = false;
370
371 Aws::Vector<Aws::String> m_securityGroupIds;
372 bool m_securityGroupIdsHasBeenSet = false;
373
374 Aws::Vector<StorageConfiguration> m_storageConfigurations;
375 bool m_storageConfigurationsHasBeenSet = false;
376
377 Aws::Vector<Aws::String> m_subnetIds;
378 bool m_subnetIdsHasBeenSet = false;
379
381 bool m_tagsHasBeenSet = false;
382};
383
384} // namespace Model
385} // namespace MainframeModernization
386} // namespace Aws
CreateEnvironmentRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateEnvironmentRequest & WithClientToken(ClientTokenT &&value)
CreateEnvironmentRequest & WithEngineVersion(EngineVersionT &&value)
CreateEnvironmentRequest & WithPreferredMaintenanceWindow(PreferredMaintenanceWindowT &&value)
CreateEnvironmentRequest & WithSecurityGroupIds(SecurityGroupIdsT &&value)
CreateEnvironmentRequest & WithSubnetIds(SubnetIdsT &&value)
CreateEnvironmentRequest & AddStorageConfigurations(StorageConfigurationsT &&value)
AWS_MAINFRAMEMODERNIZATION_API Aws::String SerializePayload() const override
CreateEnvironmentRequest & WithHighAvailabilityConfig(HighAvailabilityConfigT &&value)
CreateEnvironmentRequest & WithEngineType(EngineType value)
CreateEnvironmentRequest & WithInstanceType(InstanceTypeT &&value)
void SetPreferredMaintenanceWindow(PreferredMaintenanceWindowT &&value)
const Aws::Vector< StorageConfiguration > & GetStorageConfigurations() const
AWS_MAINFRAMEMODERNIZATION_API CreateEnvironmentRequest()=default
CreateEnvironmentRequest & AddSecurityGroupIds(SecurityGroupIdsT &&value)
CreateEnvironmentRequest & WithStorageConfigurations(StorageConfigurationsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateEnvironmentRequest & AddSubnetIds(SubnetIdsT &&value)
CreateEnvironmentRequest & WithDescription(DescriptionT &&value)
CreateEnvironmentRequest & WithNetworkType(NetworkType value)
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
std::vector< T, Aws::Allocator< T > > Vector