AWS SDK for C++

AWS SDK for C++ Version 1.11.780

Loading...
Searching...
No Matches
GetEnvironmentResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/m2/MainframeModernization_EXPORTS.h>
13#include <aws/m2/model/EngineType.h>
14#include <aws/m2/model/EnvironmentLifecycle.h>
15#include <aws/m2/model/HighAvailabilityConfig.h>
16#include <aws/m2/model/NetworkType.h>
17#include <aws/m2/model/PendingMaintenance.h>
18#include <aws/m2/model/StorageConfiguration.h>
19
20#include <utility>
21
22namespace Aws {
23template <typename RESULT_TYPE>
24class AmazonWebServiceResult;
25
26namespace Utils {
27namespace Json {
28class JsonValue;
29} // namespace Json
30} // namespace Utils
31namespace MainframeModernization {
32namespace Model {
34 public:
35 AWS_MAINFRAMEMODERNIZATION_API GetEnvironmentResult() = default;
38
40
45 inline int GetActualCapacity() const { return m_actualCapacity; }
46 inline void SetActualCapacity(int value) {
47 m_actualCapacityHasBeenSet = true;
48 m_actualCapacity = value;
49 }
51 SetActualCapacity(value);
52 return *this;
53 }
55
57
60 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
61 template <typename CreationTimeT = Aws::Utils::DateTime>
62 void SetCreationTime(CreationTimeT&& value) {
63 m_creationTimeHasBeenSet = true;
64 m_creationTime = std::forward<CreationTimeT>(value);
65 }
66 template <typename CreationTimeT = Aws::Utils::DateTime>
67 GetEnvironmentResult& WithCreationTime(CreationTimeT&& value) {
68 SetCreationTime(std::forward<CreationTimeT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetDescription() const { return m_description; }
78 template <typename DescriptionT = Aws::String>
79 void SetDescription(DescriptionT&& value) {
80 m_descriptionHasBeenSet = true;
81 m_description = std::forward<DescriptionT>(value);
82 }
83 template <typename DescriptionT = Aws::String>
84 GetEnvironmentResult& WithDescription(DescriptionT&& value) {
85 SetDescription(std::forward<DescriptionT>(value));
86 return *this;
87 }
89
91
94 inline EngineType GetEngineType() const { return m_engineType; }
95 inline void SetEngineType(EngineType value) {
96 m_engineTypeHasBeenSet = true;
97 m_engineType = value;
98 }
100 SetEngineType(value);
101 return *this;
102 }
104
106
109 inline const Aws::String& GetEngineVersion() const { return m_engineVersion; }
110 template <typename EngineVersionT = Aws::String>
111 void SetEngineVersion(EngineVersionT&& value) {
112 m_engineVersionHasBeenSet = true;
113 m_engineVersion = std::forward<EngineVersionT>(value);
114 }
115 template <typename EngineVersionT = Aws::String>
116 GetEnvironmentResult& WithEngineVersion(EngineVersionT&& value) {
117 SetEngineVersion(std::forward<EngineVersionT>(value));
118 return *this;
119 }
121
123
126 inline const Aws::String& GetEnvironmentArn() const { return m_environmentArn; }
127 template <typename EnvironmentArnT = Aws::String>
128 void SetEnvironmentArn(EnvironmentArnT&& value) {
129 m_environmentArnHasBeenSet = true;
130 m_environmentArn = std::forward<EnvironmentArnT>(value);
131 }
132 template <typename EnvironmentArnT = Aws::String>
133 GetEnvironmentResult& WithEnvironmentArn(EnvironmentArnT&& value) {
134 SetEnvironmentArn(std::forward<EnvironmentArnT>(value));
135 return *this;
136 }
138
140
143 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
144 template <typename EnvironmentIdT = Aws::String>
145 void SetEnvironmentId(EnvironmentIdT&& value) {
146 m_environmentIdHasBeenSet = true;
147 m_environmentId = std::forward<EnvironmentIdT>(value);
148 }
149 template <typename EnvironmentIdT = Aws::String>
150 GetEnvironmentResult& WithEnvironmentId(EnvironmentIdT&& value) {
151 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
152 return *this;
153 }
155
157
161 inline const HighAvailabilityConfig& GetHighAvailabilityConfig() const { return m_highAvailabilityConfig; }
162 template <typename HighAvailabilityConfigT = HighAvailabilityConfig>
163 void SetHighAvailabilityConfig(HighAvailabilityConfigT&& value) {
164 m_highAvailabilityConfigHasBeenSet = true;
165 m_highAvailabilityConfig = std::forward<HighAvailabilityConfigT>(value);
166 }
167 template <typename HighAvailabilityConfigT = HighAvailabilityConfig>
168 GetEnvironmentResult& WithHighAvailabilityConfig(HighAvailabilityConfigT&& value) {
169 SetHighAvailabilityConfig(std::forward<HighAvailabilityConfigT>(value));
170 return *this;
171 }
173
175
178 inline const Aws::String& GetInstanceType() const { return m_instanceType; }
179 template <typename InstanceTypeT = Aws::String>
180 void SetInstanceType(InstanceTypeT&& value) {
181 m_instanceTypeHasBeenSet = true;
182 m_instanceType = std::forward<InstanceTypeT>(value);
183 }
184 template <typename InstanceTypeT = Aws::String>
185 GetEnvironmentResult& WithInstanceType(InstanceTypeT&& value) {
186 SetInstanceType(std::forward<InstanceTypeT>(value));
187 return *this;
188 }
190
192
195 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
196 template <typename KmsKeyIdT = Aws::String>
197 void SetKmsKeyId(KmsKeyIdT&& value) {
198 m_kmsKeyIdHasBeenSet = true;
199 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
200 }
201 template <typename KmsKeyIdT = Aws::String>
202 GetEnvironmentResult& WithKmsKeyId(KmsKeyIdT&& value) {
203 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
204 return *this;
205 }
207
209
213 inline const Aws::String& GetLoadBalancerArn() const { return m_loadBalancerArn; }
214 template <typename LoadBalancerArnT = Aws::String>
215 void SetLoadBalancerArn(LoadBalancerArnT&& value) {
216 m_loadBalancerArnHasBeenSet = true;
217 m_loadBalancerArn = std::forward<LoadBalancerArnT>(value);
218 }
219 template <typename LoadBalancerArnT = Aws::String>
220 GetEnvironmentResult& WithLoadBalancerArn(LoadBalancerArnT&& value) {
221 SetLoadBalancerArn(std::forward<LoadBalancerArnT>(value));
222 return *this;
223 }
225
227
230 inline const Aws::String& GetName() const { return m_name; }
231 template <typename NameT = Aws::String>
232 void SetName(NameT&& value) {
233 m_nameHasBeenSet = true;
234 m_name = std::forward<NameT>(value);
235 }
236 template <typename NameT = Aws::String>
238 SetName(std::forward<NameT>(value));
239 return *this;
240 }
242
244
247 inline NetworkType GetNetworkType() const { return m_networkType; }
248 inline void SetNetworkType(NetworkType value) {
249 m_networkTypeHasBeenSet = true;
250 m_networkType = value;
251 }
253 SetNetworkType(value);
254 return *this;
255 }
257
259
262 inline const PendingMaintenance& GetPendingMaintenance() const { return m_pendingMaintenance; }
263 template <typename PendingMaintenanceT = PendingMaintenance>
264 void SetPendingMaintenance(PendingMaintenanceT&& value) {
265 m_pendingMaintenanceHasBeenSet = true;
266 m_pendingMaintenance = std::forward<PendingMaintenanceT>(value);
267 }
268 template <typename PendingMaintenanceT = PendingMaintenance>
269 GetEnvironmentResult& WithPendingMaintenance(PendingMaintenanceT&& value) {
270 SetPendingMaintenance(std::forward<PendingMaintenanceT>(value));
271 return *this;
272 }
274
276
280 inline const Aws::String& GetPreferredMaintenanceWindow() const { return m_preferredMaintenanceWindow; }
281 template <typename PreferredMaintenanceWindowT = Aws::String>
282 void SetPreferredMaintenanceWindow(PreferredMaintenanceWindowT&& value) {
283 m_preferredMaintenanceWindowHasBeenSet = true;
284 m_preferredMaintenanceWindow = std::forward<PreferredMaintenanceWindowT>(value);
285 }
286 template <typename PreferredMaintenanceWindowT = Aws::String>
287 GetEnvironmentResult& WithPreferredMaintenanceWindow(PreferredMaintenanceWindowT&& value) {
288 SetPreferredMaintenanceWindow(std::forward<PreferredMaintenanceWindowT>(value));
289 return *this;
290 }
292
294
298 inline bool GetPubliclyAccessible() const { return m_publiclyAccessible; }
299 inline void SetPubliclyAccessible(bool value) {
300 m_publiclyAccessibleHasBeenSet = true;
301 m_publiclyAccessible = value;
302 }
305 return *this;
306 }
308
310
314 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
315 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
316 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
317 m_securityGroupIdsHasBeenSet = true;
318 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
319 }
320 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
321 GetEnvironmentResult& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
322 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
323 return *this;
324 }
325 template <typename SecurityGroupIdsT = Aws::String>
326 GetEnvironmentResult& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
327 m_securityGroupIdsHasBeenSet = true;
328 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
329 return *this;
330 }
332
334
339 inline EnvironmentLifecycle GetStatus() const { return m_status; }
340 inline void SetStatus(EnvironmentLifecycle value) {
341 m_statusHasBeenSet = true;
342 m_status = value;
343 }
345 SetStatus(value);
346 return *this;
347 }
349
351
354 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
355 template <typename StatusReasonT = Aws::String>
356 void SetStatusReason(StatusReasonT&& value) {
357 m_statusReasonHasBeenSet = true;
358 m_statusReason = std::forward<StatusReasonT>(value);
359 }
360 template <typename StatusReasonT = Aws::String>
361 GetEnvironmentResult& WithStatusReason(StatusReasonT&& value) {
362 SetStatusReason(std::forward<StatusReasonT>(value));
363 return *this;
364 }
366
368
371 inline const Aws::Vector<StorageConfiguration>& GetStorageConfigurations() const { return m_storageConfigurations; }
372 template <typename StorageConfigurationsT = Aws::Vector<StorageConfiguration>>
373 void SetStorageConfigurations(StorageConfigurationsT&& value) {
374 m_storageConfigurationsHasBeenSet = true;
375 m_storageConfigurations = std::forward<StorageConfigurationsT>(value);
376 }
377 template <typename StorageConfigurationsT = Aws::Vector<StorageConfiguration>>
378 GetEnvironmentResult& WithStorageConfigurations(StorageConfigurationsT&& value) {
379 SetStorageConfigurations(std::forward<StorageConfigurationsT>(value));
380 return *this;
381 }
382 template <typename StorageConfigurationsT = StorageConfiguration>
383 GetEnvironmentResult& AddStorageConfigurations(StorageConfigurationsT&& value) {
384 m_storageConfigurationsHasBeenSet = true;
385 m_storageConfigurations.emplace_back(std::forward<StorageConfigurationsT>(value));
386 return *this;
387 }
389
391
395 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
396 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
397 void SetSubnetIds(SubnetIdsT&& value) {
398 m_subnetIdsHasBeenSet = true;
399 m_subnetIds = std::forward<SubnetIdsT>(value);
400 }
401 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
402 GetEnvironmentResult& WithSubnetIds(SubnetIdsT&& value) {
403 SetSubnetIds(std::forward<SubnetIdsT>(value));
404 return *this;
405 }
406 template <typename SubnetIdsT = Aws::String>
407 GetEnvironmentResult& AddSubnetIds(SubnetIdsT&& value) {
408 m_subnetIdsHasBeenSet = true;
409 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
410 return *this;
411 }
413
415
418 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
419 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
420 void SetTags(TagsT&& value) {
421 m_tagsHasBeenSet = true;
422 m_tags = std::forward<TagsT>(value);
423 }
424 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
426 SetTags(std::forward<TagsT>(value));
427 return *this;
428 }
429 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
430 GetEnvironmentResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
431 m_tagsHasBeenSet = true;
432 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
433 return *this;
434 }
436
438
441 inline const Aws::String& GetVpcId() const { return m_vpcId; }
442 template <typename VpcIdT = Aws::String>
443 void SetVpcId(VpcIdT&& value) {
444 m_vpcIdHasBeenSet = true;
445 m_vpcId = std::forward<VpcIdT>(value);
446 }
447 template <typename VpcIdT = Aws::String>
449 SetVpcId(std::forward<VpcIdT>(value));
450 return *this;
451 }
453
455
456 inline const Aws::String& GetRequestId() const { return m_requestId; }
457 template <typename RequestIdT = Aws::String>
458 void SetRequestId(RequestIdT&& value) {
459 m_requestIdHasBeenSet = true;
460 m_requestId = std::forward<RequestIdT>(value);
461 }
462 template <typename RequestIdT = Aws::String>
463 GetEnvironmentResult& WithRequestId(RequestIdT&& value) {
464 SetRequestId(std::forward<RequestIdT>(value));
465 return *this;
466 }
468 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
469
470 private:
471 int m_actualCapacity{0};
472
473 Aws::Utils::DateTime m_creationTime{};
474
475 Aws::String m_description;
476
477 EngineType m_engineType{EngineType::NOT_SET};
478
479 Aws::String m_engineVersion;
480
481 Aws::String m_environmentArn;
482
483 Aws::String m_environmentId;
484
485 HighAvailabilityConfig m_highAvailabilityConfig;
486
487 Aws::String m_instanceType;
488
489 Aws::String m_kmsKeyId;
490
491 Aws::String m_loadBalancerArn;
492
493 Aws::String m_name;
494
495 NetworkType m_networkType{NetworkType::NOT_SET};
496
497 PendingMaintenance m_pendingMaintenance;
498
499 Aws::String m_preferredMaintenanceWindow;
500
501 bool m_publiclyAccessible{false};
502
503 Aws::Vector<Aws::String> m_securityGroupIds;
504
506
507 Aws::String m_statusReason;
508
509 Aws::Vector<StorageConfiguration> m_storageConfigurations;
510
511 Aws::Vector<Aws::String> m_subnetIds;
512
514
515 Aws::String m_vpcId;
516
517 Aws::String m_requestId;
518 Aws::Http::HttpResponseCode m_HttpResponseCode;
519 bool m_actualCapacityHasBeenSet = false;
520 bool m_creationTimeHasBeenSet = false;
521 bool m_descriptionHasBeenSet = false;
522 bool m_engineTypeHasBeenSet = false;
523 bool m_engineVersionHasBeenSet = false;
524 bool m_environmentArnHasBeenSet = false;
525 bool m_environmentIdHasBeenSet = false;
526 bool m_highAvailabilityConfigHasBeenSet = false;
527 bool m_instanceTypeHasBeenSet = false;
528 bool m_kmsKeyIdHasBeenSet = false;
529 bool m_loadBalancerArnHasBeenSet = false;
530 bool m_nameHasBeenSet = false;
531 bool m_networkTypeHasBeenSet = false;
532 bool m_pendingMaintenanceHasBeenSet = false;
533 bool m_preferredMaintenanceWindowHasBeenSet = false;
534 bool m_publiclyAccessibleHasBeenSet = false;
535 bool m_securityGroupIdsHasBeenSet = false;
536 bool m_statusHasBeenSet = false;
537 bool m_statusReasonHasBeenSet = false;
538 bool m_storageConfigurationsHasBeenSet = false;
539 bool m_subnetIdsHasBeenSet = false;
540 bool m_tagsHasBeenSet = false;
541 bool m_vpcIdHasBeenSet = false;
542 bool m_requestIdHasBeenSet = false;
543};
544
545} // namespace Model
546} // namespace MainframeModernization
547} // 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