AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateEnvironmentRequest.h
1
6#pragma once
7#include <aws/m2/MainframeModernization_EXPORTS.h>
8#include <aws/m2/MainframeModernizationRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/m2/model/EngineType.h>
11#include <aws/m2/model/HighAvailabilityConfig.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/m2/model/StorageConfiguration.h>
15#include <utility>
16#include <aws/core/utils/UUID.h>
17
18namespace Aws
19{
20namespace MainframeModernization
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_MAINFRAMEMODERNIZATION_API CreateEnvironmentRequest();
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 "CreateEnvironment"; }
37
38 AWS_MAINFRAMEMODERNIZATION_API Aws::String SerializePayload() const override;
39
40
42
50 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
51 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
52 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
53 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
54 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
55 inline CreateEnvironmentRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
56 inline CreateEnvironmentRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
57 inline CreateEnvironmentRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
59
61
64 inline const Aws::String& GetDescription() const{ return m_description; }
65 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
66 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
67 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
68 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
69 inline CreateEnvironmentRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
70 inline CreateEnvironmentRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
71 inline CreateEnvironmentRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
73
75
78 inline const EngineType& GetEngineType() const{ return m_engineType; }
79 inline bool EngineTypeHasBeenSet() const { return m_engineTypeHasBeenSet; }
80 inline void SetEngineType(const EngineType& value) { m_engineTypeHasBeenSet = true; m_engineType = value; }
81 inline void SetEngineType(EngineType&& value) { m_engineTypeHasBeenSet = true; m_engineType = std::move(value); }
82 inline CreateEnvironmentRequest& WithEngineType(const EngineType& value) { SetEngineType(value); return *this;}
83 inline CreateEnvironmentRequest& WithEngineType(EngineType&& value) { SetEngineType(std::move(value)); return *this;}
85
87
90 inline const Aws::String& GetEngineVersion() const{ return m_engineVersion; }
91 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
92 inline void SetEngineVersion(const Aws::String& value) { m_engineVersionHasBeenSet = true; m_engineVersion = value; }
93 inline void SetEngineVersion(Aws::String&& value) { m_engineVersionHasBeenSet = true; m_engineVersion = std::move(value); }
94 inline void SetEngineVersion(const char* value) { m_engineVersionHasBeenSet = true; m_engineVersion.assign(value); }
95 inline CreateEnvironmentRequest& WithEngineVersion(const Aws::String& value) { SetEngineVersion(value); return *this;}
96 inline CreateEnvironmentRequest& WithEngineVersion(Aws::String&& value) { SetEngineVersion(std::move(value)); return *this;}
97 inline CreateEnvironmentRequest& WithEngineVersion(const char* value) { SetEngineVersion(value); return *this;}
99
101
105 inline const HighAvailabilityConfig& GetHighAvailabilityConfig() const{ return m_highAvailabilityConfig; }
106 inline bool HighAvailabilityConfigHasBeenSet() const { return m_highAvailabilityConfigHasBeenSet; }
107 inline void SetHighAvailabilityConfig(const HighAvailabilityConfig& value) { m_highAvailabilityConfigHasBeenSet = true; m_highAvailabilityConfig = value; }
108 inline void SetHighAvailabilityConfig(HighAvailabilityConfig&& value) { m_highAvailabilityConfigHasBeenSet = true; m_highAvailabilityConfig = std::move(value); }
112
114
117 inline const Aws::String& GetInstanceType() const{ return m_instanceType; }
118 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
119 inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
120 inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
121 inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); }
122 inline CreateEnvironmentRequest& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;}
123 inline CreateEnvironmentRequest& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
124 inline CreateEnvironmentRequest& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
126
128
131 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
132 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
133 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
134 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
135 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
136 inline CreateEnvironmentRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
137 inline CreateEnvironmentRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
138 inline CreateEnvironmentRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
140
142
145 inline const Aws::String& GetName() const{ return m_name; }
146 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
147 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
148 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
149 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
150 inline CreateEnvironmentRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
151 inline CreateEnvironmentRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
152 inline CreateEnvironmentRequest& WithName(const char* value) { SetName(value); return *this;}
154
156
164 inline const Aws::String& GetPreferredMaintenanceWindow() const{ return m_preferredMaintenanceWindow; }
165 inline bool PreferredMaintenanceWindowHasBeenSet() const { return m_preferredMaintenanceWindowHasBeenSet; }
166 inline void SetPreferredMaintenanceWindow(const Aws::String& value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow = value; }
167 inline void SetPreferredMaintenanceWindow(Aws::String&& value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow = std::move(value); }
168 inline void SetPreferredMaintenanceWindow(const char* value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow.assign(value); }
173
175
178 inline bool GetPubliclyAccessible() const{ return m_publiclyAccessible; }
179 inline bool PubliclyAccessibleHasBeenSet() const { return m_publiclyAccessibleHasBeenSet; }
180 inline void SetPubliclyAccessible(bool value) { m_publiclyAccessibleHasBeenSet = true; m_publiclyAccessible = value; }
181 inline CreateEnvironmentRequest& WithPubliclyAccessible(bool value) { SetPubliclyAccessible(value); return *this;}
183
185
189 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const{ return m_securityGroupIds; }
190 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
191 inline void SetSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; }
192 inline void SetSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::move(value); }
195 inline CreateEnvironmentRequest& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
196 inline CreateEnvironmentRequest& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; }
197 inline CreateEnvironmentRequest& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
199
201
204 inline const Aws::Vector<StorageConfiguration>& GetStorageConfigurations() const{ return m_storageConfigurations; }
205 inline bool StorageConfigurationsHasBeenSet() const { return m_storageConfigurationsHasBeenSet; }
206 inline void SetStorageConfigurations(const Aws::Vector<StorageConfiguration>& value) { m_storageConfigurationsHasBeenSet = true; m_storageConfigurations = value; }
207 inline void SetStorageConfigurations(Aws::Vector<StorageConfiguration>&& value) { m_storageConfigurationsHasBeenSet = true; m_storageConfigurations = std::move(value); }
210 inline CreateEnvironmentRequest& AddStorageConfigurations(const StorageConfiguration& value) { m_storageConfigurationsHasBeenSet = true; m_storageConfigurations.push_back(value); return *this; }
211 inline CreateEnvironmentRequest& AddStorageConfigurations(StorageConfiguration&& value) { m_storageConfigurationsHasBeenSet = true; m_storageConfigurations.push_back(std::move(value)); return *this; }
213
215
218 inline const Aws::Vector<Aws::String>& GetSubnetIds() const{ return m_subnetIds; }
219 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
220 inline void SetSubnetIds(const Aws::Vector<Aws::String>& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
221 inline void SetSubnetIds(Aws::Vector<Aws::String>&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); }
223 inline CreateEnvironmentRequest& WithSubnetIds(Aws::Vector<Aws::String>&& value) { SetSubnetIds(std::move(value)); return *this;}
224 inline CreateEnvironmentRequest& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
225 inline CreateEnvironmentRequest& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; }
226 inline CreateEnvironmentRequest& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
228
230
233 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
234 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
235 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
236 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
238 inline CreateEnvironmentRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
239 inline CreateEnvironmentRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
240 inline CreateEnvironmentRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
241 inline CreateEnvironmentRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
242 inline CreateEnvironmentRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
243 inline CreateEnvironmentRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
244 inline CreateEnvironmentRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
245 inline CreateEnvironmentRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
247 private:
248
249 Aws::String m_clientToken;
250 bool m_clientTokenHasBeenSet = false;
251
252 Aws::String m_description;
253 bool m_descriptionHasBeenSet = false;
254
255 EngineType m_engineType;
256 bool m_engineTypeHasBeenSet = false;
257
258 Aws::String m_engineVersion;
259 bool m_engineVersionHasBeenSet = false;
260
261 HighAvailabilityConfig m_highAvailabilityConfig;
262 bool m_highAvailabilityConfigHasBeenSet = false;
263
264 Aws::String m_instanceType;
265 bool m_instanceTypeHasBeenSet = false;
266
267 Aws::String m_kmsKeyId;
268 bool m_kmsKeyIdHasBeenSet = false;
269
270 Aws::String m_name;
271 bool m_nameHasBeenSet = false;
272
273 Aws::String m_preferredMaintenanceWindow;
274 bool m_preferredMaintenanceWindowHasBeenSet = false;
275
276 bool m_publiclyAccessible;
277 bool m_publiclyAccessibleHasBeenSet = false;
278
279 Aws::Vector<Aws::String> m_securityGroupIds;
280 bool m_securityGroupIdsHasBeenSet = false;
281
282 Aws::Vector<StorageConfiguration> m_storageConfigurations;
283 bool m_storageConfigurationsHasBeenSet = false;
284
285 Aws::Vector<Aws::String> m_subnetIds;
286 bool m_subnetIdsHasBeenSet = false;
287
289 bool m_tagsHasBeenSet = false;
290 };
291
292} // namespace Model
293} // namespace MainframeModernization
294} // namespace Aws
CreateEnvironmentRequest & WithPreferredMaintenanceWindow(Aws::String &&value)
CreateEnvironmentRequest & WithEngineType(const EngineType &value)
CreateEnvironmentRequest & AddSecurityGroupIds(Aws::String &&value)
CreateEnvironmentRequest & WithDescription(const char *value)
CreateEnvironmentRequest & WithEngineVersion(const Aws::String &value)
CreateEnvironmentRequest & WithEngineVersion(const char *value)
void SetStorageConfigurations(Aws::Vector< StorageConfiguration > &&value)
CreateEnvironmentRequest & AddTags(Aws::String &&key, const char *value)
CreateEnvironmentRequest & WithHighAvailabilityConfig(const HighAvailabilityConfig &value)
CreateEnvironmentRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateEnvironmentRequest & WithStorageConfigurations(Aws::Vector< StorageConfiguration > &&value)
CreateEnvironmentRequest & AddTags(const char *key, const char *value)
CreateEnvironmentRequest & WithHighAvailabilityConfig(HighAvailabilityConfig &&value)
CreateEnvironmentRequest & AddSecurityGroupIds(const char *value)
CreateEnvironmentRequest & WithPreferredMaintenanceWindow(const char *value)
void SetSecurityGroupIds(const Aws::Vector< Aws::String > &value)
CreateEnvironmentRequest & WithEngineType(EngineType &&value)
CreateEnvironmentRequest & WithSecurityGroupIds(Aws::Vector< Aws::String > &&value)
CreateEnvironmentRequest & WithStorageConfigurations(const Aws::Vector< StorageConfiguration > &value)
void SetHighAvailabilityConfig(const HighAvailabilityConfig &value)
AWS_MAINFRAMEMODERNIZATION_API Aws::String SerializePayload() const override
CreateEnvironmentRequest & WithClientToken(const char *value)
CreateEnvironmentRequest & WithName(const Aws::String &value)
CreateEnvironmentRequest & AddSubnetIds(Aws::String &&value)
CreateEnvironmentRequest & WithKmsKeyId(const Aws::String &value)
CreateEnvironmentRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateEnvironmentRequest & WithPreferredMaintenanceWindow(const Aws::String &value)
CreateEnvironmentRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateEnvironmentRequest & AddStorageConfigurations(const StorageConfiguration &value)
CreateEnvironmentRequest & WithSecurityGroupIds(const Aws::Vector< Aws::String > &value)
const Aws::Vector< StorageConfiguration > & GetStorageConfigurations() const
CreateEnvironmentRequest & WithSubnetIds(const Aws::Vector< Aws::String > &value)
CreateEnvironmentRequest & WithEngineVersion(Aws::String &&value)
CreateEnvironmentRequest & WithName(Aws::String &&value)
CreateEnvironmentRequest & WithDescription(const Aws::String &value)
CreateEnvironmentRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateEnvironmentRequest & AddSecurityGroupIds(const Aws::String &value)
CreateEnvironmentRequest & WithDescription(Aws::String &&value)
void SetStorageConfigurations(const Aws::Vector< StorageConfiguration > &value)
CreateEnvironmentRequest & AddSubnetIds(const Aws::String &value)
CreateEnvironmentRequest & WithInstanceType(Aws::String &&value)
CreateEnvironmentRequest & WithClientToken(Aws::String &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateEnvironmentRequest & WithInstanceType(const char *value)
CreateEnvironmentRequest & AddStorageConfigurations(StorageConfiguration &&value)
CreateEnvironmentRequest & WithInstanceType(const Aws::String &value)
CreateEnvironmentRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateEnvironmentRequest & WithClientToken(const Aws::String &value)
CreateEnvironmentRequest & WithSubnetIds(Aws::Vector< Aws::String > &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateEnvironmentRequest & WithKmsKeyId(Aws::String &&value)
CreateEnvironmentRequest & AddTags(const Aws::String &key, const Aws::String &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateEnvironmentRequest & AddTags(const char *key, Aws::String &&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
std::vector< T, Aws::Allocator< T > > Vector