AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetEnvironmentResult.h
1
6#pragma once
7#include <aws/m2/MainframeModernization_EXPORTS.h>
8#include <aws/core/utils/DateTime.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/m2/model/PendingMaintenance.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15#include <aws/m2/model/EnvironmentLifecycle.h>
16#include <aws/core/utils/memory/stl/AWSMap.h>
17#include <aws/m2/model/StorageConfiguration.h>
18#include <utility>
19
20namespace Aws
21{
22template<typename RESULT_TYPE>
23class AmazonWebServiceResult;
24
25namespace Utils
26{
27namespace Json
28{
29 class JsonValue;
30} // namespace Json
31} // namespace Utils
32namespace MainframeModernization
33{
34namespace Model
35{
37 {
38 public:
39 AWS_MAINFRAMEMODERNIZATION_API GetEnvironmentResult() = default;
42
43
45
50 inline int GetActualCapacity() const { return m_actualCapacity; }
51 inline void SetActualCapacity(int value) { m_actualCapacityHasBeenSet = true; m_actualCapacity = value; }
52 inline GetEnvironmentResult& WithActualCapacity(int value) { SetActualCapacity(value); return *this;}
54
56
59 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
60 template<typename CreationTimeT = Aws::Utils::DateTime>
61 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
62 template<typename CreationTimeT = Aws::Utils::DateTime>
63 GetEnvironmentResult& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
65
67
70 inline const Aws::String& GetDescription() const { return m_description; }
71 template<typename DescriptionT = Aws::String>
72 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
73 template<typename DescriptionT = Aws::String>
74 GetEnvironmentResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
76
78
81 inline EngineType GetEngineType() const { return m_engineType; }
82 inline void SetEngineType(EngineType value) { m_engineTypeHasBeenSet = true; m_engineType = value; }
83 inline GetEnvironmentResult& WithEngineType(EngineType value) { SetEngineType(value); return *this;}
85
87
90 inline const Aws::String& GetEngineVersion() const { return m_engineVersion; }
91 template<typename EngineVersionT = Aws::String>
92 void SetEngineVersion(EngineVersionT&& value) { m_engineVersionHasBeenSet = true; m_engineVersion = std::forward<EngineVersionT>(value); }
93 template<typename EngineVersionT = Aws::String>
94 GetEnvironmentResult& WithEngineVersion(EngineVersionT&& value) { SetEngineVersion(std::forward<EngineVersionT>(value)); return *this;}
96
98
101 inline const Aws::String& GetEnvironmentArn() const { return m_environmentArn; }
102 template<typename EnvironmentArnT = Aws::String>
103 void SetEnvironmentArn(EnvironmentArnT&& value) { m_environmentArnHasBeenSet = true; m_environmentArn = std::forward<EnvironmentArnT>(value); }
104 template<typename EnvironmentArnT = Aws::String>
105 GetEnvironmentResult& WithEnvironmentArn(EnvironmentArnT&& value) { SetEnvironmentArn(std::forward<EnvironmentArnT>(value)); return *this;}
107
109
112 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
113 template<typename EnvironmentIdT = Aws::String>
114 void SetEnvironmentId(EnvironmentIdT&& value) { m_environmentIdHasBeenSet = true; m_environmentId = std::forward<EnvironmentIdT>(value); }
115 template<typename EnvironmentIdT = Aws::String>
116 GetEnvironmentResult& WithEnvironmentId(EnvironmentIdT&& value) { SetEnvironmentId(std::forward<EnvironmentIdT>(value)); return *this;}
118
120
124 inline const HighAvailabilityConfig& GetHighAvailabilityConfig() const { return m_highAvailabilityConfig; }
125 template<typename HighAvailabilityConfigT = HighAvailabilityConfig>
126 void SetHighAvailabilityConfig(HighAvailabilityConfigT&& value) { m_highAvailabilityConfigHasBeenSet = true; m_highAvailabilityConfig = std::forward<HighAvailabilityConfigT>(value); }
127 template<typename HighAvailabilityConfigT = HighAvailabilityConfig>
128 GetEnvironmentResult& WithHighAvailabilityConfig(HighAvailabilityConfigT&& value) { SetHighAvailabilityConfig(std::forward<HighAvailabilityConfigT>(value)); return *this;}
130
132
135 inline const Aws::String& GetInstanceType() const { return m_instanceType; }
136 template<typename InstanceTypeT = Aws::String>
137 void SetInstanceType(InstanceTypeT&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::forward<InstanceTypeT>(value); }
138 template<typename InstanceTypeT = Aws::String>
139 GetEnvironmentResult& WithInstanceType(InstanceTypeT&& value) { SetInstanceType(std::forward<InstanceTypeT>(value)); return *this;}
141
143
146 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
147 template<typename KmsKeyIdT = Aws::String>
148 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
149 template<typename KmsKeyIdT = Aws::String>
150 GetEnvironmentResult& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
152
154
158 inline const Aws::String& GetLoadBalancerArn() const { return m_loadBalancerArn; }
159 template<typename LoadBalancerArnT = Aws::String>
160 void SetLoadBalancerArn(LoadBalancerArnT&& value) { m_loadBalancerArnHasBeenSet = true; m_loadBalancerArn = std::forward<LoadBalancerArnT>(value); }
161 template<typename LoadBalancerArnT = Aws::String>
162 GetEnvironmentResult& WithLoadBalancerArn(LoadBalancerArnT&& value) { SetLoadBalancerArn(std::forward<LoadBalancerArnT>(value)); return *this;}
164
166
169 inline const Aws::String& GetName() const { return m_name; }
170 template<typename NameT = Aws::String>
171 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
172 template<typename NameT = Aws::String>
173 GetEnvironmentResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
175
177
180 inline NetworkType GetNetworkType() const { return m_networkType; }
181 inline void SetNetworkType(NetworkType value) { m_networkTypeHasBeenSet = true; m_networkType = value; }
182 inline GetEnvironmentResult& WithNetworkType(NetworkType value) { SetNetworkType(value); return *this;}
184
186
189 inline const PendingMaintenance& GetPendingMaintenance() const { return m_pendingMaintenance; }
190 template<typename PendingMaintenanceT = PendingMaintenance>
191 void SetPendingMaintenance(PendingMaintenanceT&& value) { m_pendingMaintenanceHasBeenSet = true; m_pendingMaintenance = std::forward<PendingMaintenanceT>(value); }
192 template<typename PendingMaintenanceT = PendingMaintenance>
193 GetEnvironmentResult& WithPendingMaintenance(PendingMaintenanceT&& value) { SetPendingMaintenance(std::forward<PendingMaintenanceT>(value)); return *this;}
195
197
201 inline const Aws::String& GetPreferredMaintenanceWindow() const { return m_preferredMaintenanceWindow; }
202 template<typename PreferredMaintenanceWindowT = Aws::String>
203 void SetPreferredMaintenanceWindow(PreferredMaintenanceWindowT&& value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow = std::forward<PreferredMaintenanceWindowT>(value); }
204 template<typename PreferredMaintenanceWindowT = Aws::String>
205 GetEnvironmentResult& WithPreferredMaintenanceWindow(PreferredMaintenanceWindowT&& value) { SetPreferredMaintenanceWindow(std::forward<PreferredMaintenanceWindowT>(value)); return *this;}
207
209
213 inline bool GetPubliclyAccessible() const { return m_publiclyAccessible; }
214 inline void SetPubliclyAccessible(bool value) { m_publiclyAccessibleHasBeenSet = true; m_publiclyAccessible = value; }
215 inline GetEnvironmentResult& WithPubliclyAccessible(bool value) { SetPubliclyAccessible(value); return *this;}
217
219
223 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
224 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
225 void SetSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::forward<SecurityGroupIdsT>(value); }
226 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
227 GetEnvironmentResult& WithSecurityGroupIds(SecurityGroupIdsT&& value) { SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value)); return *this;}
228 template<typename SecurityGroupIdsT = Aws::String>
229 GetEnvironmentResult& AddSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value)); return *this; }
231
233
238 inline EnvironmentLifecycle GetStatus() const { return m_status; }
239 inline void SetStatus(EnvironmentLifecycle value) { m_statusHasBeenSet = true; m_status = value; }
240 inline GetEnvironmentResult& WithStatus(EnvironmentLifecycle value) { SetStatus(value); return *this;}
242
244
247 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
248 template<typename StatusReasonT = Aws::String>
249 void SetStatusReason(StatusReasonT&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::forward<StatusReasonT>(value); }
250 template<typename StatusReasonT = Aws::String>
251 GetEnvironmentResult& WithStatusReason(StatusReasonT&& value) { SetStatusReason(std::forward<StatusReasonT>(value)); return *this;}
253
255
258 inline const Aws::Vector<StorageConfiguration>& GetStorageConfigurations() const { return m_storageConfigurations; }
259 template<typename StorageConfigurationsT = Aws::Vector<StorageConfiguration>>
260 void SetStorageConfigurations(StorageConfigurationsT&& value) { m_storageConfigurationsHasBeenSet = true; m_storageConfigurations = std::forward<StorageConfigurationsT>(value); }
261 template<typename StorageConfigurationsT = Aws::Vector<StorageConfiguration>>
262 GetEnvironmentResult& WithStorageConfigurations(StorageConfigurationsT&& value) { SetStorageConfigurations(std::forward<StorageConfigurationsT>(value)); return *this;}
263 template<typename StorageConfigurationsT = StorageConfiguration>
264 GetEnvironmentResult& AddStorageConfigurations(StorageConfigurationsT&& value) { m_storageConfigurationsHasBeenSet = true; m_storageConfigurations.emplace_back(std::forward<StorageConfigurationsT>(value)); return *this; }
266
268
272 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
273 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
274 void SetSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::forward<SubnetIdsT>(value); }
275 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
276 GetEnvironmentResult& WithSubnetIds(SubnetIdsT&& value) { SetSubnetIds(std::forward<SubnetIdsT>(value)); return *this;}
277 template<typename SubnetIdsT = Aws::String>
278 GetEnvironmentResult& AddSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value)); return *this; }
280
282
285 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
286 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
287 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
288 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
289 GetEnvironmentResult& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
290 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
291 GetEnvironmentResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
292 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
293 }
295
297
300 inline const Aws::String& GetVpcId() const { return m_vpcId; }
301 template<typename VpcIdT = Aws::String>
302 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
303 template<typename VpcIdT = Aws::String>
304 GetEnvironmentResult& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
306
308
309 inline const Aws::String& GetRequestId() const { return m_requestId; }
310 template<typename RequestIdT = Aws::String>
311 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
312 template<typename RequestIdT = Aws::String>
313 GetEnvironmentResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
315 private:
316
317 int m_actualCapacity{0};
318 bool m_actualCapacityHasBeenSet = false;
319
320 Aws::Utils::DateTime m_creationTime{};
321 bool m_creationTimeHasBeenSet = false;
322
323 Aws::String m_description;
324 bool m_descriptionHasBeenSet = false;
325
326 EngineType m_engineType{EngineType::NOT_SET};
327 bool m_engineTypeHasBeenSet = false;
328
329 Aws::String m_engineVersion;
330 bool m_engineVersionHasBeenSet = false;
331
332 Aws::String m_environmentArn;
333 bool m_environmentArnHasBeenSet = false;
334
335 Aws::String m_environmentId;
336 bool m_environmentIdHasBeenSet = false;
337
338 HighAvailabilityConfig m_highAvailabilityConfig;
339 bool m_highAvailabilityConfigHasBeenSet = false;
340
341 Aws::String m_instanceType;
342 bool m_instanceTypeHasBeenSet = false;
343
344 Aws::String m_kmsKeyId;
345 bool m_kmsKeyIdHasBeenSet = false;
346
347 Aws::String m_loadBalancerArn;
348 bool m_loadBalancerArnHasBeenSet = false;
349
350 Aws::String m_name;
351 bool m_nameHasBeenSet = false;
352
353 NetworkType m_networkType{NetworkType::NOT_SET};
354 bool m_networkTypeHasBeenSet = false;
355
356 PendingMaintenance m_pendingMaintenance;
357 bool m_pendingMaintenanceHasBeenSet = false;
358
359 Aws::String m_preferredMaintenanceWindow;
360 bool m_preferredMaintenanceWindowHasBeenSet = false;
361
362 bool m_publiclyAccessible{false};
363 bool m_publiclyAccessibleHasBeenSet = false;
364
365 Aws::Vector<Aws::String> m_securityGroupIds;
366 bool m_securityGroupIdsHasBeenSet = false;
367
369 bool m_statusHasBeenSet = false;
370
371 Aws::String m_statusReason;
372 bool m_statusReasonHasBeenSet = 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 Aws::String m_vpcId;
384 bool m_vpcIdHasBeenSet = false;
385
386 Aws::String m_requestId;
387 bool m_requestIdHasBeenSet = false;
388 };
389
390} // namespace Model
391} // namespace MainframeModernization
392} // namespace Aws
GetEnvironmentResult & WithStatusReason(StatusReasonT &&value)
GetEnvironmentResult & WithEngineVersion(EngineVersionT &&value)
GetEnvironmentResult & WithDescription(DescriptionT &&value)
void SetHighAvailabilityConfig(HighAvailabilityConfigT &&value)
GetEnvironmentResult & AddStorageConfigurations(StorageConfigurationsT &&value)
AWS_MAINFRAMEMODERNIZATION_API GetEnvironmentResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetEnvironmentResult & WithEnvironmentId(EnvironmentIdT &&value)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
GetEnvironmentResult & WithSecurityGroupIds(SecurityGroupIdsT &&value)
GetEnvironmentResult & WithStatus(EnvironmentLifecycle value)
GetEnvironmentResult & WithPreferredMaintenanceWindow(PreferredMaintenanceWindowT &&value)
GetEnvironmentResult & WithStorageConfigurations(StorageConfigurationsT &&value)
AWS_MAINFRAMEMODERNIZATION_API GetEnvironmentResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetEnvironmentResult & WithSubnetIds(SubnetIdsT &&value)
GetEnvironmentResult & AddSubnetIds(SubnetIdsT &&value)
const Aws::Vector< Aws::String > & GetSubnetIds() const
GetEnvironmentResult & WithRequestId(RequestIdT &&value)
GetEnvironmentResult & WithLoadBalancerArn(LoadBalancerArnT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
GetEnvironmentResult & WithNetworkType(NetworkType value)
const HighAvailabilityConfig & GetHighAvailabilityConfig() const
GetEnvironmentResult & WithKmsKeyId(KmsKeyIdT &&value)
GetEnvironmentResult & WithEngineType(EngineType value)
GetEnvironmentResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
GetEnvironmentResult & AddSecurityGroupIds(SecurityGroupIdsT &&value)
GetEnvironmentResult & WithInstanceType(InstanceTypeT &&value)
const Aws::Vector< StorageConfiguration > & GetStorageConfigurations() const
GetEnvironmentResult & WithEnvironmentArn(EnvironmentArnT &&value)
void SetPreferredMaintenanceWindow(PreferredMaintenanceWindowT &&value)
GetEnvironmentResult & WithPendingMaintenance(PendingMaintenanceT &&value)
GetEnvironmentResult & WithCreationTime(CreationTimeT &&value)
void SetStorageConfigurations(StorageConfigurationsT &&value)
AWS_MAINFRAMEMODERNIZATION_API GetEnvironmentResult()=default
GetEnvironmentResult & WithHighAvailabilityConfig(HighAvailabilityConfigT &&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
Aws::Utils::Json::JsonValue JsonValue