AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
EnvironmentDescription.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.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 {
23namespace Utils {
24namespace Xml {
25class XmlNode;
26} // namespace Xml
27} // namespace Utils
28namespace ElasticBeanstalk {
29namespace Model {
30
37 public:
38 AWS_ELASTICBEANSTALK_API EnvironmentDescription() = default;
39 AWS_ELASTICBEANSTALK_API EnvironmentDescription(const Aws::Utils::Xml::XmlNode& xmlNode);
40 AWS_ELASTICBEANSTALK_API EnvironmentDescription& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index,
43 const char* locationValue) const;
44 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
45
47
50 inline const Aws::String& GetEnvironmentName() const { return m_environmentName; }
51 inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
52 template <typename EnvironmentNameT = Aws::String>
53 void SetEnvironmentName(EnvironmentNameT&& value) {
54 m_environmentNameHasBeenSet = true;
55 m_environmentName = std::forward<EnvironmentNameT>(value);
56 }
57 template <typename EnvironmentNameT = Aws::String>
58 EnvironmentDescription& WithEnvironmentName(EnvironmentNameT&& value) {
59 SetEnvironmentName(std::forward<EnvironmentNameT>(value));
60 return *this;
61 }
63
65
68 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
69 inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
70 template <typename EnvironmentIdT = Aws::String>
71 void SetEnvironmentId(EnvironmentIdT&& value) {
72 m_environmentIdHasBeenSet = true;
73 m_environmentId = std::forward<EnvironmentIdT>(value);
74 }
75 template <typename EnvironmentIdT = Aws::String>
76 EnvironmentDescription& WithEnvironmentId(EnvironmentIdT&& value) {
77 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
78 return *this;
79 }
81
83
86 inline const Aws::String& GetApplicationName() const { return m_applicationName; }
87 inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; }
88 template <typename ApplicationNameT = Aws::String>
89 void SetApplicationName(ApplicationNameT&& value) {
90 m_applicationNameHasBeenSet = true;
91 m_applicationName = std::forward<ApplicationNameT>(value);
92 }
93 template <typename ApplicationNameT = Aws::String>
94 EnvironmentDescription& WithApplicationName(ApplicationNameT&& value) {
95 SetApplicationName(std::forward<ApplicationNameT>(value));
96 return *this;
97 }
99
101
104 inline const Aws::String& GetVersionLabel() const { return m_versionLabel; }
105 inline bool VersionLabelHasBeenSet() const { return m_versionLabelHasBeenSet; }
106 template <typename VersionLabelT = Aws::String>
107 void SetVersionLabel(VersionLabelT&& value) {
108 m_versionLabelHasBeenSet = true;
109 m_versionLabel = std::forward<VersionLabelT>(value);
110 }
111 template <typename VersionLabelT = Aws::String>
112 EnvironmentDescription& WithVersionLabel(VersionLabelT&& value) {
113 SetVersionLabel(std::forward<VersionLabelT>(value));
114 return *this;
115 }
117
119
123 inline const Aws::String& GetSolutionStackName() const { return m_solutionStackName; }
124 inline bool SolutionStackNameHasBeenSet() const { return m_solutionStackNameHasBeenSet; }
125 template <typename SolutionStackNameT = Aws::String>
126 void SetSolutionStackName(SolutionStackNameT&& value) {
127 m_solutionStackNameHasBeenSet = true;
128 m_solutionStackName = std::forward<SolutionStackNameT>(value);
129 }
130 template <typename SolutionStackNameT = Aws::String>
131 EnvironmentDescription& WithSolutionStackName(SolutionStackNameT&& value) {
132 SetSolutionStackName(std::forward<SolutionStackNameT>(value));
133 return *this;
134 }
136
138
141 inline const Aws::String& GetPlatformArn() const { return m_platformArn; }
142 inline bool PlatformArnHasBeenSet() const { return m_platformArnHasBeenSet; }
143 template <typename PlatformArnT = Aws::String>
144 void SetPlatformArn(PlatformArnT&& value) {
145 m_platformArnHasBeenSet = true;
146 m_platformArn = std::forward<PlatformArnT>(value);
147 }
148 template <typename PlatformArnT = Aws::String>
150 SetPlatformArn(std::forward<PlatformArnT>(value));
151 return *this;
152 }
154
156
160 inline const Aws::String& GetTemplateName() const { return m_templateName; }
161 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
162 template <typename TemplateNameT = Aws::String>
163 void SetTemplateName(TemplateNameT&& value) {
164 m_templateNameHasBeenSet = true;
165 m_templateName = std::forward<TemplateNameT>(value);
166 }
167 template <typename TemplateNameT = Aws::String>
168 EnvironmentDescription& WithTemplateName(TemplateNameT&& value) {
169 SetTemplateName(std::forward<TemplateNameT>(value));
170 return *this;
171 }
173
175
178 inline const Aws::String& GetDescription() const { return m_description; }
179 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
180 template <typename DescriptionT = Aws::String>
181 void SetDescription(DescriptionT&& value) {
182 m_descriptionHasBeenSet = true;
183 m_description = std::forward<DescriptionT>(value);
184 }
185 template <typename DescriptionT = Aws::String>
187 SetDescription(std::forward<DescriptionT>(value));
188 return *this;
189 }
191
193
197 inline const Aws::String& GetEndpointURL() const { return m_endpointURL; }
198 inline bool EndpointURLHasBeenSet() const { return m_endpointURLHasBeenSet; }
199 template <typename EndpointURLT = Aws::String>
200 void SetEndpointURL(EndpointURLT&& value) {
201 m_endpointURLHasBeenSet = true;
202 m_endpointURL = std::forward<EndpointURLT>(value);
203 }
204 template <typename EndpointURLT = Aws::String>
206 SetEndpointURL(std::forward<EndpointURLT>(value));
207 return *this;
208 }
210
212
215 inline const Aws::String& GetCNAME() const { return m_cNAME; }
216 inline bool CNAMEHasBeenSet() const { return m_cNAMEHasBeenSet; }
217 template <typename CNAMET = Aws::String>
218 void SetCNAME(CNAMET&& value) {
219 m_cNAMEHasBeenSet = true;
220 m_cNAME = std::forward<CNAMET>(value);
221 }
222 template <typename CNAMET = Aws::String>
224 SetCNAME(std::forward<CNAMET>(value));
225 return *this;
226 }
228
230
233 inline const Aws::Utils::DateTime& GetDateCreated() const { return m_dateCreated; }
234 inline bool DateCreatedHasBeenSet() const { return m_dateCreatedHasBeenSet; }
235 template <typename DateCreatedT = Aws::Utils::DateTime>
236 void SetDateCreated(DateCreatedT&& value) {
237 m_dateCreatedHasBeenSet = true;
238 m_dateCreated = std::forward<DateCreatedT>(value);
239 }
240 template <typename DateCreatedT = Aws::Utils::DateTime>
242 SetDateCreated(std::forward<DateCreatedT>(value));
243 return *this;
244 }
246
248
251 inline const Aws::Utils::DateTime& GetDateUpdated() const { return m_dateUpdated; }
252 inline bool DateUpdatedHasBeenSet() const { return m_dateUpdatedHasBeenSet; }
253 template <typename DateUpdatedT = Aws::Utils::DateTime>
254 void SetDateUpdated(DateUpdatedT&& value) {
255 m_dateUpdatedHasBeenSet = true;
256 m_dateUpdated = std::forward<DateUpdatedT>(value);
257 }
258 template <typename DateUpdatedT = Aws::Utils::DateTime>
260 SetDateUpdated(std::forward<DateUpdatedT>(value));
261 return *this;
262 }
264
266
276 inline EnvironmentStatus GetStatus() const { return m_status; }
277 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
278 inline void SetStatus(EnvironmentStatus value) {
279 m_statusHasBeenSet = true;
280 m_status = value;
281 }
283 SetStatus(value);
284 return *this;
285 }
287
289
295 inline bool GetAbortableOperationInProgress() const { return m_abortableOperationInProgress; }
296 inline bool AbortableOperationInProgressHasBeenSet() const { return m_abortableOperationInProgressHasBeenSet; }
297 inline void SetAbortableOperationInProgress(bool value) {
298 m_abortableOperationInProgressHasBeenSet = true;
299 m_abortableOperationInProgress = value;
300 }
303 return *this;
304 }
306
308
322 inline EnvironmentHealth GetHealth() const { return m_health; }
323 inline bool HealthHasBeenSet() const { return m_healthHasBeenSet; }
324 inline void SetHealth(EnvironmentHealth value) {
325 m_healthHasBeenSet = true;
326 m_health = value;
327 }
329 SetHealth(value);
330 return *this;
331 }
333
335
341 inline EnvironmentHealthStatus GetHealthStatus() const { return m_healthStatus; }
342 inline bool HealthStatusHasBeenSet() const { return m_healthStatusHasBeenSet; }
344 m_healthStatusHasBeenSet = true;
345 m_healthStatus = value;
346 }
348 SetHealthStatus(value);
349 return *this;
350 }
352
354
357 inline const EnvironmentResourcesDescription& GetResources() const { return m_resources; }
358 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
359 template <typename ResourcesT = EnvironmentResourcesDescription>
360 void SetResources(ResourcesT&& value) {
361 m_resourcesHasBeenSet = true;
362 m_resources = std::forward<ResourcesT>(value);
363 }
364 template <typename ResourcesT = EnvironmentResourcesDescription>
366 SetResources(std::forward<ResourcesT>(value));
367 return *this;
368 }
370
372
375 inline const EnvironmentTier& GetTier() const { return m_tier; }
376 inline bool TierHasBeenSet() const { return m_tierHasBeenSet; }
377 template <typename TierT = EnvironmentTier>
378 void SetTier(TierT&& value) {
379 m_tierHasBeenSet = true;
380 m_tier = std::forward<TierT>(value);
381 }
382 template <typename TierT = EnvironmentTier>
384 SetTier(std::forward<TierT>(value));
385 return *this;
386 }
388
390
393 inline const Aws::Vector<EnvironmentLink>& GetEnvironmentLinks() const { return m_environmentLinks; }
394 inline bool EnvironmentLinksHasBeenSet() const { return m_environmentLinksHasBeenSet; }
395 template <typename EnvironmentLinksT = Aws::Vector<EnvironmentLink>>
396 void SetEnvironmentLinks(EnvironmentLinksT&& value) {
397 m_environmentLinksHasBeenSet = true;
398 m_environmentLinks = std::forward<EnvironmentLinksT>(value);
399 }
400 template <typename EnvironmentLinksT = Aws::Vector<EnvironmentLink>>
401 EnvironmentDescription& WithEnvironmentLinks(EnvironmentLinksT&& value) {
402 SetEnvironmentLinks(std::forward<EnvironmentLinksT>(value));
403 return *this;
404 }
405 template <typename EnvironmentLinksT = EnvironmentLink>
406 EnvironmentDescription& AddEnvironmentLinks(EnvironmentLinksT&& value) {
407 m_environmentLinksHasBeenSet = true;
408 m_environmentLinks.emplace_back(std::forward<EnvironmentLinksT>(value));
409 return *this;
410 }
412
414
418 inline const Aws::String& GetEnvironmentArn() const { return m_environmentArn; }
419 inline bool EnvironmentArnHasBeenSet() const { return m_environmentArnHasBeenSet; }
420 template <typename EnvironmentArnT = Aws::String>
421 void SetEnvironmentArn(EnvironmentArnT&& value) {
422 m_environmentArnHasBeenSet = true;
423 m_environmentArn = std::forward<EnvironmentArnT>(value);
424 }
425 template <typename EnvironmentArnT = Aws::String>
426 EnvironmentDescription& WithEnvironmentArn(EnvironmentArnT&& value) {
427 SetEnvironmentArn(std::forward<EnvironmentArnT>(value));
428 return *this;
429 }
431
433
439 inline const Aws::String& GetOperationsRole() const { return m_operationsRole; }
440 inline bool OperationsRoleHasBeenSet() const { return m_operationsRoleHasBeenSet; }
441 template <typename OperationsRoleT = Aws::String>
442 void SetOperationsRole(OperationsRoleT&& value) {
443 m_operationsRoleHasBeenSet = true;
444 m_operationsRole = std::forward<OperationsRoleT>(value);
445 }
446 template <typename OperationsRoleT = Aws::String>
447 EnvironmentDescription& WithOperationsRole(OperationsRoleT&& value) {
448 SetOperationsRole(std::forward<OperationsRoleT>(value));
449 return *this;
450 }
452
454
455 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
456 template <typename ResponseMetadataT = ResponseMetadata>
457 void SetResponseMetadata(ResponseMetadataT&& value) {
458 m_responseMetadataHasBeenSet = true;
459 m_responseMetadata = std::forward<ResponseMetadataT>(value);
460 }
461 template <typename ResponseMetadataT = ResponseMetadata>
462 EnvironmentDescription& WithResponseMetadata(ResponseMetadataT&& value) {
463 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
464 return *this;
465 }
467 private:
468 Aws::String m_environmentName;
469
470 Aws::String m_environmentId;
471
472 Aws::String m_applicationName;
473
474 Aws::String m_versionLabel;
475
476 Aws::String m_solutionStackName;
477
478 Aws::String m_platformArn;
479
480 Aws::String m_templateName;
481
482 Aws::String m_description;
483
484 Aws::String m_endpointURL;
485
486 Aws::String m_cNAME;
487
488 Aws::Utils::DateTime m_dateCreated{};
489
490 Aws::Utils::DateTime m_dateUpdated{};
491
493
494 bool m_abortableOperationInProgress{false};
495
497
499
500 EnvironmentResourcesDescription m_resources;
501
502 EnvironmentTier m_tier;
503
504 Aws::Vector<EnvironmentLink> m_environmentLinks;
505
506 Aws::String m_environmentArn;
507
508 Aws::String m_operationsRole;
509
510 ResponseMetadata m_responseMetadata;
511 bool m_environmentNameHasBeenSet = false;
512 bool m_environmentIdHasBeenSet = false;
513 bool m_applicationNameHasBeenSet = false;
514 bool m_versionLabelHasBeenSet = false;
515 bool m_solutionStackNameHasBeenSet = false;
516 bool m_platformArnHasBeenSet = false;
517 bool m_templateNameHasBeenSet = false;
518 bool m_descriptionHasBeenSet = false;
519 bool m_endpointURLHasBeenSet = false;
520 bool m_cNAMEHasBeenSet = false;
521 bool m_dateCreatedHasBeenSet = false;
522 bool m_dateUpdatedHasBeenSet = false;
523 bool m_statusHasBeenSet = false;
524 bool m_abortableOperationInProgressHasBeenSet = false;
525 bool m_healthHasBeenSet = false;
526 bool m_healthStatusHasBeenSet = false;
527 bool m_resourcesHasBeenSet = false;
528 bool m_tierHasBeenSet = false;
529 bool m_environmentLinksHasBeenSet = false;
530 bool m_environmentArnHasBeenSet = false;
531 bool m_operationsRoleHasBeenSet = false;
532 bool m_responseMetadataHasBeenSet = true;
533};
534
535} // namespace Model
536} // namespace ElasticBeanstalk
537} // namespace Aws
EnvironmentDescription & WithDateUpdated(DateUpdatedT &&value)
EnvironmentDescription & AddEnvironmentLinks(EnvironmentLinksT &&value)
EnvironmentDescription & WithTemplateName(TemplateNameT &&value)
EnvironmentDescription & WithOperationsRole(OperationsRoleT &&value)
EnvironmentDescription & WithEnvironmentName(EnvironmentNameT &&value)
EnvironmentDescription & WithStatus(EnvironmentStatus value)
EnvironmentDescription & WithEnvironmentArn(EnvironmentArnT &&value)
EnvironmentDescription & WithDateCreated(DateCreatedT &&value)
const EnvironmentResourcesDescription & GetResources() const
const Aws::Vector< EnvironmentLink > & GetEnvironmentLinks() const
EnvironmentDescription & WithResources(ResourcesT &&value)
EnvironmentDescription & WithDescription(DescriptionT &&value)
EnvironmentDescription & WithVersionLabel(VersionLabelT &&value)
EnvironmentDescription & WithCNAME(CNAMET &&value)
EnvironmentDescription & WithEnvironmentLinks(EnvironmentLinksT &&value)
EnvironmentDescription & WithAbortableOperationInProgress(bool value)
EnvironmentDescription & WithEnvironmentId(EnvironmentIdT &&value)
EnvironmentDescription & WithHealth(EnvironmentHealth value)
EnvironmentDescription & WithSolutionStackName(SolutionStackNameT &&value)
EnvironmentDescription & WithHealthStatus(EnvironmentHealthStatus value)
AWS_ELASTICBEANSTALK_API EnvironmentDescription & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &oStream, const char *location) const
EnvironmentDescription & WithEndpointURL(EndpointURLT &&value)
EnvironmentDescription & WithResponseMetadata(ResponseMetadataT &&value)
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_ELASTICBEANSTALK_API EnvironmentDescription(const Aws::Utils::Xml::XmlNode &xmlNode)
EnvironmentDescription & WithPlatformArn(PlatformArnT &&value)
AWS_ELASTICBEANSTALK_API EnvironmentDescription()=default
EnvironmentDescription & WithApplicationName(ApplicationNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream