AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
GetEnvironmentResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.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/MainframeModernization_EXPORTS.h>
12#include <aws/m2/model/EngineType.h>
13#include <aws/m2/model/EnvironmentLifecycle.h>
14#include <aws/m2/model/HighAvailabilityConfig.h>
15#include <aws/m2/model/NetworkType.h>
16#include <aws/m2/model/PendingMaintenance.h>
17#include <aws/m2/model/StorageConfiguration.h>
18
19#include <utility>
20
21namespace Aws {
22template <typename RESULT_TYPE>
23class AmazonWebServiceResult;
24
25namespace Utils {
26namespace Json {
27class JsonValue;
28} // namespace Json
29} // namespace Utils
30namespace MainframeModernization {
31namespace Model {
33 public:
34 AWS_MAINFRAMEMODERNIZATION_API GetEnvironmentResult() = default;
37
39
44 inline int GetActualCapacity() const { return m_actualCapacity; }
45 inline void SetActualCapacity(int value) {
46 m_actualCapacityHasBeenSet = true;
47 m_actualCapacity = value;
48 }
50 SetActualCapacity(value);
51 return *this;
52 }
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) {
62 m_creationTimeHasBeenSet = true;
63 m_creationTime = std::forward<CreationTimeT>(value);
64 }
65 template <typename CreationTimeT = Aws::Utils::DateTime>
66 GetEnvironmentResult& WithCreationTime(CreationTimeT&& value) {
67 SetCreationTime(std::forward<CreationTimeT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetDescription() const { return m_description; }
77 template <typename DescriptionT = Aws::String>
78 void SetDescription(DescriptionT&& value) {
79 m_descriptionHasBeenSet = true;
80 m_description = std::forward<DescriptionT>(value);
81 }
82 template <typename DescriptionT = Aws::String>
83 GetEnvironmentResult& WithDescription(DescriptionT&& value) {
84 SetDescription(std::forward<DescriptionT>(value));
85 return *this;
86 }
88
90
93 inline EngineType GetEngineType() const { return m_engineType; }
94 inline void SetEngineType(EngineType value) {
95 m_engineTypeHasBeenSet = true;
96 m_engineType = value;
97 }
99 SetEngineType(value);
100 return *this;
101 }
103
105
108 inline const Aws::String& GetEngineVersion() const { return m_engineVersion; }
109 template <typename EngineVersionT = Aws::String>
110 void SetEngineVersion(EngineVersionT&& value) {
111 m_engineVersionHasBeenSet = true;
112 m_engineVersion = std::forward<EngineVersionT>(value);
113 }
114 template <typename EngineVersionT = Aws::String>
115 GetEnvironmentResult& WithEngineVersion(EngineVersionT&& value) {
116 SetEngineVersion(std::forward<EngineVersionT>(value));
117 return *this;
118 }
120
122
125 inline const Aws::String& GetEnvironmentArn() const { return m_environmentArn; }
126 template <typename EnvironmentArnT = Aws::String>
127 void SetEnvironmentArn(EnvironmentArnT&& value) {
128 m_environmentArnHasBeenSet = true;
129 m_environmentArn = std::forward<EnvironmentArnT>(value);
130 }
131 template <typename EnvironmentArnT = Aws::String>
132 GetEnvironmentResult& WithEnvironmentArn(EnvironmentArnT&& value) {
133 SetEnvironmentArn(std::forward<EnvironmentArnT>(value));
134 return *this;
135 }
137
139
142 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
143 template <typename EnvironmentIdT = Aws::String>
144 void SetEnvironmentId(EnvironmentIdT&& value) {
145 m_environmentIdHasBeenSet = true;
146 m_environmentId = std::forward<EnvironmentIdT>(value);
147 }
148 template <typename EnvironmentIdT = Aws::String>
149 GetEnvironmentResult& WithEnvironmentId(EnvironmentIdT&& value) {
150 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
151 return *this;
152 }
154
156
160 inline const HighAvailabilityConfig& GetHighAvailabilityConfig() const { return m_highAvailabilityConfig; }
161 template <typename HighAvailabilityConfigT = HighAvailabilityConfig>
162 void SetHighAvailabilityConfig(HighAvailabilityConfigT&& value) {
163 m_highAvailabilityConfigHasBeenSet = true;
164 m_highAvailabilityConfig = std::forward<HighAvailabilityConfigT>(value);
165 }
166 template <typename HighAvailabilityConfigT = HighAvailabilityConfig>
167 GetEnvironmentResult& WithHighAvailabilityConfig(HighAvailabilityConfigT&& value) {
168 SetHighAvailabilityConfig(std::forward<HighAvailabilityConfigT>(value));
169 return *this;
170 }
172
174
177 inline const Aws::String& GetInstanceType() const { return m_instanceType; }
178 template <typename InstanceTypeT = Aws::String>
179 void SetInstanceType(InstanceTypeT&& value) {
180 m_instanceTypeHasBeenSet = true;
181 m_instanceType = std::forward<InstanceTypeT>(value);
182 }
183 template <typename InstanceTypeT = Aws::String>
184 GetEnvironmentResult& WithInstanceType(InstanceTypeT&& value) {
185 SetInstanceType(std::forward<InstanceTypeT>(value));
186 return *this;
187 }
189
191
194 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
195 template <typename KmsKeyIdT = Aws::String>
196 void SetKmsKeyId(KmsKeyIdT&& value) {
197 m_kmsKeyIdHasBeenSet = true;
198 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
199 }
200 template <typename KmsKeyIdT = Aws::String>
201 GetEnvironmentResult& WithKmsKeyId(KmsKeyIdT&& value) {
202 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
203 return *this;
204 }
206
208
212 inline const Aws::String& GetLoadBalancerArn() const { return m_loadBalancerArn; }
213 template <typename LoadBalancerArnT = Aws::String>
214 void SetLoadBalancerArn(LoadBalancerArnT&& value) {
215 m_loadBalancerArnHasBeenSet = true;
216 m_loadBalancerArn = std::forward<LoadBalancerArnT>(value);
217 }
218 template <typename LoadBalancerArnT = Aws::String>
219 GetEnvironmentResult& WithLoadBalancerArn(LoadBalancerArnT&& value) {
220 SetLoadBalancerArn(std::forward<LoadBalancerArnT>(value));
221 return *this;
222 }
224
226
229 inline const Aws::String& GetName() const { return m_name; }
230 template <typename NameT = Aws::String>
231 void SetName(NameT&& value) {
232 m_nameHasBeenSet = true;
233 m_name = std::forward<NameT>(value);
234 }
235 template <typename NameT = Aws::String>
237 SetName(std::forward<NameT>(value));
238 return *this;
239 }
241
243
246 inline NetworkType GetNetworkType() const { return m_networkType; }
247 inline void SetNetworkType(NetworkType value) {
248 m_networkTypeHasBeenSet = true;
249 m_networkType = value;
250 }
252 SetNetworkType(value);
253 return *this;
254 }
256
258
261 inline const PendingMaintenance& GetPendingMaintenance() const { return m_pendingMaintenance; }
262 template <typename PendingMaintenanceT = PendingMaintenance>
263 void SetPendingMaintenance(PendingMaintenanceT&& value) {
264 m_pendingMaintenanceHasBeenSet = true;
265 m_pendingMaintenance = std::forward<PendingMaintenanceT>(value);
266 }
267 template <typename PendingMaintenanceT = PendingMaintenance>
268 GetEnvironmentResult& WithPendingMaintenance(PendingMaintenanceT&& value) {
269 SetPendingMaintenance(std::forward<PendingMaintenanceT>(value));
270 return *this;
271 }
273
275
279 inline const Aws::String& GetPreferredMaintenanceWindow() const { return m_preferredMaintenanceWindow; }
280 template <typename PreferredMaintenanceWindowT = Aws::String>
281 void SetPreferredMaintenanceWindow(PreferredMaintenanceWindowT&& value) {
282 m_preferredMaintenanceWindowHasBeenSet = true;
283 m_preferredMaintenanceWindow = std::forward<PreferredMaintenanceWindowT>(value);
284 }
285 template <typename PreferredMaintenanceWindowT = Aws::String>
286 GetEnvironmentResult& WithPreferredMaintenanceWindow(PreferredMaintenanceWindowT&& value) {
287 SetPreferredMaintenanceWindow(std::forward<PreferredMaintenanceWindowT>(value));
288 return *this;
289 }
291
293
297 inline bool GetPubliclyAccessible() const { return m_publiclyAccessible; }
298 inline void SetPubliclyAccessible(bool value) {
299 m_publiclyAccessibleHasBeenSet = true;
300 m_publiclyAccessible = value;
301 }
304 return *this;
305 }
307
309
313 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
314 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
315 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
316 m_securityGroupIdsHasBeenSet = true;
317 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
318 }
319 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
320 GetEnvironmentResult& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
321 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
322 return *this;
323 }
324 template <typename SecurityGroupIdsT = Aws::String>
325 GetEnvironmentResult& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
326 m_securityGroupIdsHasBeenSet = true;
327 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
328 return *this;
329 }
331
333
338 inline EnvironmentLifecycle GetStatus() const { return m_status; }
339 inline void SetStatus(EnvironmentLifecycle value) {
340 m_statusHasBeenSet = true;
341 m_status = value;
342 }
344 SetStatus(value);
345 return *this;
346 }
348
350
353 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
354 template <typename StatusReasonT = Aws::String>
355 void SetStatusReason(StatusReasonT&& value) {
356 m_statusReasonHasBeenSet = true;
357 m_statusReason = std::forward<StatusReasonT>(value);
358 }
359 template <typename StatusReasonT = Aws::String>
360 GetEnvironmentResult& WithStatusReason(StatusReasonT&& value) {
361 SetStatusReason(std::forward<StatusReasonT>(value));
362 return *this;
363 }
365
367
370 inline const Aws::Vector<StorageConfiguration>& GetStorageConfigurations() const { return m_storageConfigurations; }
371 template <typename StorageConfigurationsT = Aws::Vector<StorageConfiguration>>
372 void SetStorageConfigurations(StorageConfigurationsT&& value) {
373 m_storageConfigurationsHasBeenSet = true;
374 m_storageConfigurations = std::forward<StorageConfigurationsT>(value);
375 }
376 template <typename StorageConfigurationsT = Aws::Vector<StorageConfiguration>>
377 GetEnvironmentResult& WithStorageConfigurations(StorageConfigurationsT&& value) {
378 SetStorageConfigurations(std::forward<StorageConfigurationsT>(value));
379 return *this;
380 }
381 template <typename StorageConfigurationsT = StorageConfiguration>
382 GetEnvironmentResult& AddStorageConfigurations(StorageConfigurationsT&& value) {
383 m_storageConfigurationsHasBeenSet = true;
384 m_storageConfigurations.emplace_back(std::forward<StorageConfigurationsT>(value));
385 return *this;
386 }
388
390
394 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
395 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
396 void SetSubnetIds(SubnetIdsT&& value) {
397 m_subnetIdsHasBeenSet = true;
398 m_subnetIds = std::forward<SubnetIdsT>(value);
399 }
400 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
401 GetEnvironmentResult& WithSubnetIds(SubnetIdsT&& value) {
402 SetSubnetIds(std::forward<SubnetIdsT>(value));
403 return *this;
404 }
405 template <typename SubnetIdsT = Aws::String>
406 GetEnvironmentResult& AddSubnetIds(SubnetIdsT&& value) {
407 m_subnetIdsHasBeenSet = true;
408 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
409 return *this;
410 }
412
414
417 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
418 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
419 void SetTags(TagsT&& value) {
420 m_tagsHasBeenSet = true;
421 m_tags = std::forward<TagsT>(value);
422 }
423 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
425 SetTags(std::forward<TagsT>(value));
426 return *this;
427 }
428 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
429 GetEnvironmentResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
430 m_tagsHasBeenSet = true;
431 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
432 return *this;
433 }
435
437
440 inline const Aws::String& GetVpcId() const { return m_vpcId; }
441 template <typename VpcIdT = Aws::String>
442 void SetVpcId(VpcIdT&& value) {
443 m_vpcIdHasBeenSet = true;
444 m_vpcId = std::forward<VpcIdT>(value);
445 }
446 template <typename VpcIdT = Aws::String>
448 SetVpcId(std::forward<VpcIdT>(value));
449 return *this;
450 }
452
454
455 inline const Aws::String& GetRequestId() const { return m_requestId; }
456 template <typename RequestIdT = Aws::String>
457 void SetRequestId(RequestIdT&& value) {
458 m_requestIdHasBeenSet = true;
459 m_requestId = std::forward<RequestIdT>(value);
460 }
461 template <typename RequestIdT = Aws::String>
462 GetEnvironmentResult& WithRequestId(RequestIdT&& value) {
463 SetRequestId(std::forward<RequestIdT>(value));
464 return *this;
465 }
467 private:
468 int m_actualCapacity{0};
469
470 Aws::Utils::DateTime m_creationTime{};
471
472 Aws::String m_description;
473
474 EngineType m_engineType{EngineType::NOT_SET};
475
476 Aws::String m_engineVersion;
477
478 Aws::String m_environmentArn;
479
480 Aws::String m_environmentId;
481
482 HighAvailabilityConfig m_highAvailabilityConfig;
483
484 Aws::String m_instanceType;
485
486 Aws::String m_kmsKeyId;
487
488 Aws::String m_loadBalancerArn;
489
490 Aws::String m_name;
491
492 NetworkType m_networkType{NetworkType::NOT_SET};
493
494 PendingMaintenance m_pendingMaintenance;
495
496 Aws::String m_preferredMaintenanceWindow;
497
498 bool m_publiclyAccessible{false};
499
500 Aws::Vector<Aws::String> m_securityGroupIds;
501
503
504 Aws::String m_statusReason;
505
506 Aws::Vector<StorageConfiguration> m_storageConfigurations;
507
508 Aws::Vector<Aws::String> m_subnetIds;
509
511
512 Aws::String m_vpcId;
513
514 Aws::String m_requestId;
515 bool m_actualCapacityHasBeenSet = false;
516 bool m_creationTimeHasBeenSet = false;
517 bool m_descriptionHasBeenSet = false;
518 bool m_engineTypeHasBeenSet = false;
519 bool m_engineVersionHasBeenSet = false;
520 bool m_environmentArnHasBeenSet = false;
521 bool m_environmentIdHasBeenSet = false;
522 bool m_highAvailabilityConfigHasBeenSet = false;
523 bool m_instanceTypeHasBeenSet = false;
524 bool m_kmsKeyIdHasBeenSet = false;
525 bool m_loadBalancerArnHasBeenSet = false;
526 bool m_nameHasBeenSet = false;
527 bool m_networkTypeHasBeenSet = false;
528 bool m_pendingMaintenanceHasBeenSet = false;
529 bool m_preferredMaintenanceWindowHasBeenSet = false;
530 bool m_publiclyAccessibleHasBeenSet = false;
531 bool m_securityGroupIdsHasBeenSet = false;
532 bool m_statusHasBeenSet = false;
533 bool m_statusReasonHasBeenSet = false;
534 bool m_storageConfigurationsHasBeenSet = false;
535 bool m_subnetIdsHasBeenSet = false;
536 bool m_tagsHasBeenSet = false;
537 bool m_vpcIdHasBeenSet = false;
538 bool m_requestIdHasBeenSet = false;
539};
540
541} // namespace Model
542} // namespace MainframeModernization
543} // 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