AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
TerminateEnvironmentResult.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/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/elasticbeanstalk/ElasticBeanstalk_EXPORTS.h>
12#include <aws/elasticbeanstalk/model/EnvironmentHealth.h>
13#include <aws/elasticbeanstalk/model/EnvironmentHealthStatus.h>
14#include <aws/elasticbeanstalk/model/EnvironmentLink.h>
15#include <aws/elasticbeanstalk/model/EnvironmentResourcesDescription.h>
16#include <aws/elasticbeanstalk/model/EnvironmentStatus.h>
17#include <aws/elasticbeanstalk/model/EnvironmentTier.h>
18#include <aws/elasticbeanstalk/model/ResponseMetadata.h>
19
20#include <utility>
21
22namespace Aws {
23template <typename RESULT_TYPE>
24class AmazonWebServiceResult;
25
26namespace Utils {
27namespace Xml {
28class XmlDocument;
29} // namespace Xml
30} // namespace Utils
31namespace ElasticBeanstalk {
32namespace Model {
39 public:
40 AWS_ELASTICBEANSTALK_API TerminateEnvironmentResult() = default;
43
45
48 inline const Aws::String& GetEnvironmentName() const { return m_environmentName; }
49 template <typename EnvironmentNameT = Aws::String>
50 void SetEnvironmentName(EnvironmentNameT&& value) {
51 m_environmentNameHasBeenSet = true;
52 m_environmentName = std::forward<EnvironmentNameT>(value);
53 }
54 template <typename EnvironmentNameT = Aws::String>
56 SetEnvironmentName(std::forward<EnvironmentNameT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
66 template <typename EnvironmentIdT = Aws::String>
67 void SetEnvironmentId(EnvironmentIdT&& value) {
68 m_environmentIdHasBeenSet = true;
69 m_environmentId = std::forward<EnvironmentIdT>(value);
70 }
71 template <typename EnvironmentIdT = Aws::String>
73 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::String& GetApplicationName() const { return m_applicationName; }
83 template <typename ApplicationNameT = Aws::String>
84 void SetApplicationName(ApplicationNameT&& value) {
85 m_applicationNameHasBeenSet = true;
86 m_applicationName = std::forward<ApplicationNameT>(value);
87 }
88 template <typename ApplicationNameT = Aws::String>
90 SetApplicationName(std::forward<ApplicationNameT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::String& GetVersionLabel() const { return m_versionLabel; }
100 template <typename VersionLabelT = Aws::String>
101 void SetVersionLabel(VersionLabelT&& value) {
102 m_versionLabelHasBeenSet = true;
103 m_versionLabel = std::forward<VersionLabelT>(value);
104 }
105 template <typename VersionLabelT = Aws::String>
107 SetVersionLabel(std::forward<VersionLabelT>(value));
108 return *this;
109 }
111
113
117 inline const Aws::String& GetSolutionStackName() const { return m_solutionStackName; }
118 template <typename SolutionStackNameT = Aws::String>
119 void SetSolutionStackName(SolutionStackNameT&& value) {
120 m_solutionStackNameHasBeenSet = true;
121 m_solutionStackName = std::forward<SolutionStackNameT>(value);
122 }
123 template <typename SolutionStackNameT = Aws::String>
125 SetSolutionStackName(std::forward<SolutionStackNameT>(value));
126 return *this;
127 }
129
131
134 inline const Aws::String& GetPlatformArn() const { return m_platformArn; }
135 template <typename PlatformArnT = Aws::String>
136 void SetPlatformArn(PlatformArnT&& value) {
137 m_platformArnHasBeenSet = true;
138 m_platformArn = std::forward<PlatformArnT>(value);
139 }
140 template <typename PlatformArnT = Aws::String>
142 SetPlatformArn(std::forward<PlatformArnT>(value));
143 return *this;
144 }
146
148
152 inline const Aws::String& GetTemplateName() const { return m_templateName; }
153 template <typename TemplateNameT = Aws::String>
154 void SetTemplateName(TemplateNameT&& value) {
155 m_templateNameHasBeenSet = true;
156 m_templateName = std::forward<TemplateNameT>(value);
157 }
158 template <typename TemplateNameT = Aws::String>
160 SetTemplateName(std::forward<TemplateNameT>(value));
161 return *this;
162 }
164
166
169 inline const Aws::String& GetDescription() const { return m_description; }
170 template <typename DescriptionT = Aws::String>
171 void SetDescription(DescriptionT&& value) {
172 m_descriptionHasBeenSet = true;
173 m_description = std::forward<DescriptionT>(value);
174 }
175 template <typename DescriptionT = Aws::String>
177 SetDescription(std::forward<DescriptionT>(value));
178 return *this;
179 }
181
183
187 inline const Aws::String& GetEndpointURL() const { return m_endpointURL; }
188 template <typename EndpointURLT = Aws::String>
189 void SetEndpointURL(EndpointURLT&& value) {
190 m_endpointURLHasBeenSet = true;
191 m_endpointURL = std::forward<EndpointURLT>(value);
192 }
193 template <typename EndpointURLT = Aws::String>
195 SetEndpointURL(std::forward<EndpointURLT>(value));
196 return *this;
197 }
199
201
204 inline const Aws::String& GetCNAME() const { return m_cNAME; }
205 template <typename CNAMET = Aws::String>
206 void SetCNAME(CNAMET&& value) {
207 m_cNAMEHasBeenSet = true;
208 m_cNAME = std::forward<CNAMET>(value);
209 }
210 template <typename CNAMET = Aws::String>
212 SetCNAME(std::forward<CNAMET>(value));
213 return *this;
214 }
216
218
221 inline const Aws::Utils::DateTime& GetDateCreated() const { return m_dateCreated; }
222 template <typename DateCreatedT = Aws::Utils::DateTime>
223 void SetDateCreated(DateCreatedT&& value) {
224 m_dateCreatedHasBeenSet = true;
225 m_dateCreated = std::forward<DateCreatedT>(value);
226 }
227 template <typename DateCreatedT = Aws::Utils::DateTime>
229 SetDateCreated(std::forward<DateCreatedT>(value));
230 return *this;
231 }
233
235
238 inline const Aws::Utils::DateTime& GetDateUpdated() const { return m_dateUpdated; }
239 template <typename DateUpdatedT = Aws::Utils::DateTime>
240 void SetDateUpdated(DateUpdatedT&& value) {
241 m_dateUpdatedHasBeenSet = true;
242 m_dateUpdated = std::forward<DateUpdatedT>(value);
243 }
244 template <typename DateUpdatedT = Aws::Utils::DateTime>
246 SetDateUpdated(std::forward<DateUpdatedT>(value));
247 return *this;
248 }
250
252
262 inline EnvironmentStatus GetStatus() const { return m_status; }
263 inline void SetStatus(EnvironmentStatus value) {
264 m_statusHasBeenSet = true;
265 m_status = value;
266 }
268 SetStatus(value);
269 return *this;
270 }
272
274
280 inline bool GetAbortableOperationInProgress() const { return m_abortableOperationInProgress; }
281 inline void SetAbortableOperationInProgress(bool value) {
282 m_abortableOperationInProgressHasBeenSet = true;
283 m_abortableOperationInProgress = value;
284 }
287 return *this;
288 }
290
292
306 inline EnvironmentHealth GetHealth() const { return m_health; }
307 inline void SetHealth(EnvironmentHealth value) {
308 m_healthHasBeenSet = true;
309 m_health = value;
310 }
312 SetHealth(value);
313 return *this;
314 }
316
318
324 inline EnvironmentHealthStatus GetHealthStatus() const { return m_healthStatus; }
326 m_healthStatusHasBeenSet = true;
327 m_healthStatus = value;
328 }
330 SetHealthStatus(value);
331 return *this;
332 }
334
336
339 inline const EnvironmentResourcesDescription& GetResources() const { return m_resources; }
340 template <typename ResourcesT = EnvironmentResourcesDescription>
341 void SetResources(ResourcesT&& value) {
342 m_resourcesHasBeenSet = true;
343 m_resources = std::forward<ResourcesT>(value);
344 }
345 template <typename ResourcesT = EnvironmentResourcesDescription>
347 SetResources(std::forward<ResourcesT>(value));
348 return *this;
349 }
351
353
356 inline const EnvironmentTier& GetTier() const { return m_tier; }
357 template <typename TierT = EnvironmentTier>
358 void SetTier(TierT&& value) {
359 m_tierHasBeenSet = true;
360 m_tier = std::forward<TierT>(value);
361 }
362 template <typename TierT = EnvironmentTier>
364 SetTier(std::forward<TierT>(value));
365 return *this;
366 }
368
370
373 inline const Aws::Vector<EnvironmentLink>& GetEnvironmentLinks() const { return m_environmentLinks; }
374 template <typename EnvironmentLinksT = Aws::Vector<EnvironmentLink>>
375 void SetEnvironmentLinks(EnvironmentLinksT&& value) {
376 m_environmentLinksHasBeenSet = true;
377 m_environmentLinks = std::forward<EnvironmentLinksT>(value);
378 }
379 template <typename EnvironmentLinksT = Aws::Vector<EnvironmentLink>>
381 SetEnvironmentLinks(std::forward<EnvironmentLinksT>(value));
382 return *this;
383 }
384 template <typename EnvironmentLinksT = EnvironmentLink>
386 m_environmentLinksHasBeenSet = true;
387 m_environmentLinks.emplace_back(std::forward<EnvironmentLinksT>(value));
388 return *this;
389 }
391
393
397 inline const Aws::String& GetEnvironmentArn() const { return m_environmentArn; }
398 template <typename EnvironmentArnT = Aws::String>
399 void SetEnvironmentArn(EnvironmentArnT&& value) {
400 m_environmentArnHasBeenSet = true;
401 m_environmentArn = std::forward<EnvironmentArnT>(value);
402 }
403 template <typename EnvironmentArnT = Aws::String>
405 SetEnvironmentArn(std::forward<EnvironmentArnT>(value));
406 return *this;
407 }
409
411
417 inline const Aws::String& GetOperationsRole() const { return m_operationsRole; }
418 template <typename OperationsRoleT = Aws::String>
419 void SetOperationsRole(OperationsRoleT&& value) {
420 m_operationsRoleHasBeenSet = true;
421 m_operationsRole = std::forward<OperationsRoleT>(value);
422 }
423 template <typename OperationsRoleT = Aws::String>
425 SetOperationsRole(std::forward<OperationsRoleT>(value));
426 return *this;
427 }
429
431
432 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
433 template <typename ResponseMetadataT = ResponseMetadata>
434 void SetResponseMetadata(ResponseMetadataT&& value) {
435 m_responseMetadataHasBeenSet = true;
436 m_responseMetadata = std::forward<ResponseMetadataT>(value);
437 }
438 template <typename ResponseMetadataT = ResponseMetadata>
440 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
441 return *this;
442 }
444 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
445
446 private:
447 Aws::String m_environmentName;
448
449 Aws::String m_environmentId;
450
451 Aws::String m_applicationName;
452
453 Aws::String m_versionLabel;
454
455 Aws::String m_solutionStackName;
456
457 Aws::String m_platformArn;
458
459 Aws::String m_templateName;
460
461 Aws::String m_description;
462
463 Aws::String m_endpointURL;
464
465 Aws::String m_cNAME;
466
467 Aws::Utils::DateTime m_dateCreated{};
468
469 Aws::Utils::DateTime m_dateUpdated{};
470
472
473 bool m_abortableOperationInProgress{false};
474
476
478
479 EnvironmentResourcesDescription m_resources;
480
481 EnvironmentTier m_tier;
482
483 Aws::Vector<EnvironmentLink> m_environmentLinks;
484
485 Aws::String m_environmentArn;
486
487 Aws::String m_operationsRole;
488
489 ResponseMetadata m_responseMetadata;
490 Aws::Http::HttpResponseCode m_HttpResponseCode;
491 bool m_environmentNameHasBeenSet = false;
492 bool m_environmentIdHasBeenSet = false;
493 bool m_applicationNameHasBeenSet = false;
494 bool m_versionLabelHasBeenSet = false;
495 bool m_solutionStackNameHasBeenSet = false;
496 bool m_platformArnHasBeenSet = false;
497 bool m_templateNameHasBeenSet = false;
498 bool m_descriptionHasBeenSet = false;
499 bool m_endpointURLHasBeenSet = false;
500 bool m_cNAMEHasBeenSet = false;
501 bool m_dateCreatedHasBeenSet = false;
502 bool m_dateUpdatedHasBeenSet = false;
503 bool m_statusHasBeenSet = false;
504 bool m_abortableOperationInProgressHasBeenSet = false;
505 bool m_healthHasBeenSet = false;
506 bool m_healthStatusHasBeenSet = false;
507 bool m_resourcesHasBeenSet = false;
508 bool m_tierHasBeenSet = false;
509 bool m_environmentLinksHasBeenSet = false;
510 bool m_environmentArnHasBeenSet = false;
511 bool m_operationsRoleHasBeenSet = false;
512 bool m_responseMetadataHasBeenSet = false;
513};
514
515} // namespace Model
516} // namespace ElasticBeanstalk
517} // namespace Aws
TerminateEnvironmentResult & WithResponseMetadata(ResponseMetadataT &&value)
AWS_ELASTICBEANSTALK_API TerminateEnvironmentResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
TerminateEnvironmentResult & AddEnvironmentLinks(EnvironmentLinksT &&value)
TerminateEnvironmentResult & WithDateUpdated(DateUpdatedT &&value)
const Aws::Vector< EnvironmentLink > & GetEnvironmentLinks() const
TerminateEnvironmentResult & WithTemplateName(TemplateNameT &&value)
TerminateEnvironmentResult & WithEndpointURL(EndpointURLT &&value)
TerminateEnvironmentResult & WithStatus(EnvironmentStatus value)
TerminateEnvironmentResult & WithVersionLabel(VersionLabelT &&value)
TerminateEnvironmentResult & WithHealthStatus(EnvironmentHealthStatus value)
TerminateEnvironmentResult & WithResources(ResourcesT &&value)
TerminateEnvironmentResult & WithEnvironmentLinks(EnvironmentLinksT &&value)
TerminateEnvironmentResult & WithPlatformArn(PlatformArnT &&value)
TerminateEnvironmentResult & WithHealth(EnvironmentHealth value)
AWS_ELASTICBEANSTALK_API TerminateEnvironmentResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
TerminateEnvironmentResult & WithEnvironmentId(EnvironmentIdT &&value)
TerminateEnvironmentResult & WithSolutionStackName(SolutionStackNameT &&value)
TerminateEnvironmentResult & WithOperationsRole(OperationsRoleT &&value)
TerminateEnvironmentResult & WithApplicationName(ApplicationNameT &&value)
TerminateEnvironmentResult & WithDateCreated(DateCreatedT &&value)
AWS_ELASTICBEANSTALK_API TerminateEnvironmentResult()=default
TerminateEnvironmentResult & WithEnvironmentArn(EnvironmentArnT &&value)
const EnvironmentResourcesDescription & GetResources() const
TerminateEnvironmentResult & WithDescription(DescriptionT &&value)
TerminateEnvironmentResult & WithAbortableOperationInProgress(bool value)
TerminateEnvironmentResult & WithEnvironmentName(EnvironmentNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument