AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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/m2/model/NetworkType.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <aws/m2/model/StorageConfiguration.h>
16#include <utility>
17#include <aws/core/utils/UUID.h>
18
19namespace Aws
20{
21namespace MainframeModernization
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_MAINFRAMEMODERNIZATION_API CreateEnvironmentRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateEnvironment"; }
38
39 AWS_MAINFRAMEMODERNIZATION_API Aws::String SerializePayload() const override;
40
41
43
51 inline const Aws::String& GetClientToken() const { return m_clientToken; }
52 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
53 template<typename ClientTokenT = Aws::String>
54 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
55 template<typename ClientTokenT = Aws::String>
56 CreateEnvironmentRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
58
60
63 inline const Aws::String& GetDescription() const { return m_description; }
64 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
65 template<typename DescriptionT = Aws::String>
66 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
67 template<typename DescriptionT = Aws::String>
68 CreateEnvironmentRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
70
72
75 inline EngineType GetEngineType() const { return m_engineType; }
76 inline bool EngineTypeHasBeenSet() const { return m_engineTypeHasBeenSet; }
77 inline void SetEngineType(EngineType value) { m_engineTypeHasBeenSet = true; m_engineType = value; }
78 inline CreateEnvironmentRequest& WithEngineType(EngineType value) { SetEngineType(value); return *this;}
80
82
85 inline const Aws::String& GetEngineVersion() const { return m_engineVersion; }
86 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
87 template<typename EngineVersionT = Aws::String>
88 void SetEngineVersion(EngineVersionT&& value) { m_engineVersionHasBeenSet = true; m_engineVersion = std::forward<EngineVersionT>(value); }
89 template<typename EngineVersionT = Aws::String>
90 CreateEnvironmentRequest& WithEngineVersion(EngineVersionT&& value) { SetEngineVersion(std::forward<EngineVersionT>(value)); return *this;}
92
94
98 inline const HighAvailabilityConfig& GetHighAvailabilityConfig() const { return m_highAvailabilityConfig; }
99 inline bool HighAvailabilityConfigHasBeenSet() const { return m_highAvailabilityConfigHasBeenSet; }
100 template<typename HighAvailabilityConfigT = HighAvailabilityConfig>
101 void SetHighAvailabilityConfig(HighAvailabilityConfigT&& value) { m_highAvailabilityConfigHasBeenSet = true; m_highAvailabilityConfig = std::forward<HighAvailabilityConfigT>(value); }
102 template<typename HighAvailabilityConfigT = HighAvailabilityConfig>
103 CreateEnvironmentRequest& WithHighAvailabilityConfig(HighAvailabilityConfigT&& value) { SetHighAvailabilityConfig(std::forward<HighAvailabilityConfigT>(value)); return *this;}
105
107
110 inline const Aws::String& GetInstanceType() const { return m_instanceType; }
111 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
112 template<typename InstanceTypeT = Aws::String>
113 void SetInstanceType(InstanceTypeT&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::forward<InstanceTypeT>(value); }
114 template<typename InstanceTypeT = Aws::String>
115 CreateEnvironmentRequest& WithInstanceType(InstanceTypeT&& value) { SetInstanceType(std::forward<InstanceTypeT>(value)); return *this;}
117
119
122 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
123 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
124 template<typename KmsKeyIdT = Aws::String>
125 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
126 template<typename KmsKeyIdT = Aws::String>
127 CreateEnvironmentRequest& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
129
131
134 inline const Aws::String& GetName() const { return m_name; }
135 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
136 template<typename NameT = Aws::String>
137 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
138 template<typename NameT = Aws::String>
139 CreateEnvironmentRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
141
143
146 inline NetworkType GetNetworkType() const { return m_networkType; }
147 inline bool NetworkTypeHasBeenSet() const { return m_networkTypeHasBeenSet; }
148 inline void SetNetworkType(NetworkType value) { m_networkTypeHasBeenSet = true; m_networkType = value; }
151
153
161 inline const Aws::String& GetPreferredMaintenanceWindow() const { return m_preferredMaintenanceWindow; }
162 inline bool PreferredMaintenanceWindowHasBeenSet() const { return m_preferredMaintenanceWindowHasBeenSet; }
163 template<typename PreferredMaintenanceWindowT = Aws::String>
164 void SetPreferredMaintenanceWindow(PreferredMaintenanceWindowT&& value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow = std::forward<PreferredMaintenanceWindowT>(value); }
165 template<typename PreferredMaintenanceWindowT = Aws::String>
166 CreateEnvironmentRequest& WithPreferredMaintenanceWindow(PreferredMaintenanceWindowT&& value) { SetPreferredMaintenanceWindow(std::forward<PreferredMaintenanceWindowT>(value)); return *this;}
168
170
173 inline bool GetPubliclyAccessible() const { return m_publiclyAccessible; }
174 inline bool PubliclyAccessibleHasBeenSet() const { return m_publiclyAccessibleHasBeenSet; }
175 inline void SetPubliclyAccessible(bool value) { m_publiclyAccessibleHasBeenSet = true; m_publiclyAccessible = value; }
176 inline CreateEnvironmentRequest& WithPubliclyAccessible(bool value) { SetPubliclyAccessible(value); return *this;}
178
180
184 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
185 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
186 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
187 void SetSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::forward<SecurityGroupIdsT>(value); }
188 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
189 CreateEnvironmentRequest& WithSecurityGroupIds(SecurityGroupIdsT&& value) { SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value)); return *this;}
190 template<typename SecurityGroupIdsT = Aws::String>
191 CreateEnvironmentRequest& AddSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value)); return *this; }
193
195
198 inline const Aws::Vector<StorageConfiguration>& GetStorageConfigurations() const { return m_storageConfigurations; }
199 inline bool StorageConfigurationsHasBeenSet() const { return m_storageConfigurationsHasBeenSet; }
200 template<typename StorageConfigurationsT = Aws::Vector<StorageConfiguration>>
201 void SetStorageConfigurations(StorageConfigurationsT&& value) { m_storageConfigurationsHasBeenSet = true; m_storageConfigurations = std::forward<StorageConfigurationsT>(value); }
202 template<typename StorageConfigurationsT = Aws::Vector<StorageConfiguration>>
203 CreateEnvironmentRequest& WithStorageConfigurations(StorageConfigurationsT&& value) { SetStorageConfigurations(std::forward<StorageConfigurationsT>(value)); return *this;}
204 template<typename StorageConfigurationsT = StorageConfiguration>
205 CreateEnvironmentRequest& AddStorageConfigurations(StorageConfigurationsT&& value) { m_storageConfigurationsHasBeenSet = true; m_storageConfigurations.emplace_back(std::forward<StorageConfigurationsT>(value)); return *this; }
207
209
212 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
213 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
214 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
215 void SetSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::forward<SubnetIdsT>(value); }
216 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
217 CreateEnvironmentRequest& WithSubnetIds(SubnetIdsT&& value) { SetSubnetIds(std::forward<SubnetIdsT>(value)); return *this;}
218 template<typename SubnetIdsT = Aws::String>
219 CreateEnvironmentRequest& AddSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value)); return *this; }
221
223
226 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
227 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
228 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
229 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
230 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
231 CreateEnvironmentRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
232 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
233 CreateEnvironmentRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
234 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
235 }
237 private:
238
240 bool m_clientTokenHasBeenSet = true;
241
242 Aws::String m_description;
243 bool m_descriptionHasBeenSet = false;
244
245 EngineType m_engineType{EngineType::NOT_SET};
246 bool m_engineTypeHasBeenSet = false;
247
248 Aws::String m_engineVersion;
249 bool m_engineVersionHasBeenSet = false;
250
251 HighAvailabilityConfig m_highAvailabilityConfig;
252 bool m_highAvailabilityConfigHasBeenSet = false;
253
254 Aws::String m_instanceType;
255 bool m_instanceTypeHasBeenSet = false;
256
257 Aws::String m_kmsKeyId;
258 bool m_kmsKeyIdHasBeenSet = false;
259
260 Aws::String m_name;
261 bool m_nameHasBeenSet = false;
262
263 NetworkType m_networkType{NetworkType::NOT_SET};
264 bool m_networkTypeHasBeenSet = false;
265
266 Aws::String m_preferredMaintenanceWindow;
267 bool m_preferredMaintenanceWindowHasBeenSet = false;
268
269 bool m_publiclyAccessible{false};
270 bool m_publiclyAccessibleHasBeenSet = false;
271
272 Aws::Vector<Aws::String> m_securityGroupIds;
273 bool m_securityGroupIdsHasBeenSet = false;
274
275 Aws::Vector<StorageConfiguration> m_storageConfigurations;
276 bool m_storageConfigurationsHasBeenSet = false;
277
278 Aws::Vector<Aws::String> m_subnetIds;
279 bool m_subnetIdsHasBeenSet = false;
280
282 bool m_tagsHasBeenSet = false;
283 };
284
285} // namespace Model
286} // namespace MainframeModernization
287} // 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