AWS SDK for C++

AWS SDK for C++ Version 1.11.909

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
283 inline EnvironmentStatus GetStatus() const { return m_status; }
284 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
285 inline void SetStatus(EnvironmentStatus value) {
286 m_statusHasBeenSet = true;
287 m_status = value;
288 }
290 SetStatus(value);
291 return *this;
292 }
294
296
302 inline bool GetAbortableOperationInProgress() const { return m_abortableOperationInProgress; }
303 inline bool AbortableOperationInProgressHasBeenSet() const { return m_abortableOperationInProgressHasBeenSet; }
304 inline void SetAbortableOperationInProgress(bool value) {
305 m_abortableOperationInProgressHasBeenSet = true;
306 m_abortableOperationInProgress = value;
307 }
310 return *this;
311 }
313
315
329 inline EnvironmentHealth GetHealth() const { return m_health; }
330 inline bool HealthHasBeenSet() const { return m_healthHasBeenSet; }
331 inline void SetHealth(EnvironmentHealth value) {
332 m_healthHasBeenSet = true;
333 m_health = value;
334 }
336 SetHealth(value);
337 return *this;
338 }
340
342
348 inline EnvironmentHealthStatus GetHealthStatus() const { return m_healthStatus; }
349 inline bool HealthStatusHasBeenSet() const { return m_healthStatusHasBeenSet; }
351 m_healthStatusHasBeenSet = true;
352 m_healthStatus = value;
353 }
355 SetHealthStatus(value);
356 return *this;
357 }
359
361
365 inline const EnvironmentResourcesDescription& GetResources() const { return m_resources; }
366 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
367 template <typename ResourcesT = EnvironmentResourcesDescription>
368 void SetResources(ResourcesT&& value) {
369 m_resourcesHasBeenSet = true;
370 m_resources = std::forward<ResourcesT>(value);
371 }
372 template <typename ResourcesT = EnvironmentResourcesDescription>
374 SetResources(std::forward<ResourcesT>(value));
375 return *this;
376 }
378
380
383 inline const EnvironmentTier& GetTier() const { return m_tier; }
384 inline bool TierHasBeenSet() const { return m_tierHasBeenSet; }
385 template <typename TierT = EnvironmentTier>
386 void SetTier(TierT&& value) {
387 m_tierHasBeenSet = true;
388 m_tier = std::forward<TierT>(value);
389 }
390 template <typename TierT = EnvironmentTier>
392 SetTier(std::forward<TierT>(value));
393 return *this;
394 }
396
398
401 inline const Aws::Vector<EnvironmentLink>& GetEnvironmentLinks() const { return m_environmentLinks; }
402 inline bool EnvironmentLinksHasBeenSet() const { return m_environmentLinksHasBeenSet; }
403 template <typename EnvironmentLinksT = Aws::Vector<EnvironmentLink>>
404 void SetEnvironmentLinks(EnvironmentLinksT&& value) {
405 m_environmentLinksHasBeenSet = true;
406 m_environmentLinks = std::forward<EnvironmentLinksT>(value);
407 }
408 template <typename EnvironmentLinksT = Aws::Vector<EnvironmentLink>>
409 EnvironmentDescription& WithEnvironmentLinks(EnvironmentLinksT&& value) {
410 SetEnvironmentLinks(std::forward<EnvironmentLinksT>(value));
411 return *this;
412 }
413 template <typename EnvironmentLinksT = EnvironmentLink>
414 EnvironmentDescription& AddEnvironmentLinks(EnvironmentLinksT&& value) {
415 m_environmentLinksHasBeenSet = true;
416 m_environmentLinks.emplace_back(std::forward<EnvironmentLinksT>(value));
417 return *this;
418 }
420
422
426 inline const Aws::String& GetEnvironmentArn() const { return m_environmentArn; }
427 inline bool EnvironmentArnHasBeenSet() const { return m_environmentArnHasBeenSet; }
428 template <typename EnvironmentArnT = Aws::String>
429 void SetEnvironmentArn(EnvironmentArnT&& value) {
430 m_environmentArnHasBeenSet = true;
431 m_environmentArn = std::forward<EnvironmentArnT>(value);
432 }
433 template <typename EnvironmentArnT = Aws::String>
434 EnvironmentDescription& WithEnvironmentArn(EnvironmentArnT&& value) {
435 SetEnvironmentArn(std::forward<EnvironmentArnT>(value));
436 return *this;
437 }
439
441
446 inline const Aws::String& GetOperationsRole() const { return m_operationsRole; }
447 inline bool OperationsRoleHasBeenSet() const { return m_operationsRoleHasBeenSet; }
448 template <typename OperationsRoleT = Aws::String>
449 void SetOperationsRole(OperationsRoleT&& value) {
450 m_operationsRoleHasBeenSet = true;
451 m_operationsRole = std::forward<OperationsRoleT>(value);
452 }
453 template <typename OperationsRoleT = Aws::String>
454 EnvironmentDescription& WithOperationsRole(OperationsRoleT&& value) {
455 SetOperationsRole(std::forward<OperationsRoleT>(value));
456 return *this;
457 }
459
461
462 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
463 template <typename ResponseMetadataT = ResponseMetadata>
464 void SetResponseMetadata(ResponseMetadataT&& value) {
465 m_responseMetadataHasBeenSet = true;
466 m_responseMetadata = std::forward<ResponseMetadataT>(value);
467 }
468 template <typename ResponseMetadataT = ResponseMetadata>
469 EnvironmentDescription& WithResponseMetadata(ResponseMetadataT&& value) {
470 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
471 return *this;
472 }
474 private:
475 Aws::String m_environmentName;
476
477 Aws::String m_environmentId;
478
479 Aws::String m_applicationName;
480
481 Aws::String m_versionLabel;
482
483 Aws::String m_solutionStackName;
484
485 Aws::String m_platformArn;
486
487 Aws::String m_templateName;
488
489 Aws::String m_description;
490
491 Aws::String m_endpointURL;
492
493 Aws::String m_cNAME;
494
495 Aws::Utils::DateTime m_dateCreated{};
496
497 Aws::Utils::DateTime m_dateUpdated{};
498
500
501 bool m_abortableOperationInProgress{false};
502
504
506
507 EnvironmentResourcesDescription m_resources;
508
509 EnvironmentTier m_tier;
510
511 Aws::Vector<EnvironmentLink> m_environmentLinks;
512
513 Aws::String m_environmentArn;
514
515 Aws::String m_operationsRole;
516
517 ResponseMetadata m_responseMetadata;
518 bool m_environmentNameHasBeenSet = false;
519 bool m_environmentIdHasBeenSet = false;
520 bool m_applicationNameHasBeenSet = false;
521 bool m_versionLabelHasBeenSet = false;
522 bool m_solutionStackNameHasBeenSet = false;
523 bool m_platformArnHasBeenSet = false;
524 bool m_templateNameHasBeenSet = false;
525 bool m_descriptionHasBeenSet = false;
526 bool m_endpointURLHasBeenSet = false;
527 bool m_cNAMEHasBeenSet = false;
528 bool m_dateCreatedHasBeenSet = false;
529 bool m_dateUpdatedHasBeenSet = false;
530 bool m_statusHasBeenSet = false;
531 bool m_abortableOperationInProgressHasBeenSet = false;
532 bool m_healthHasBeenSet = false;
533 bool m_healthStatusHasBeenSet = false;
534 bool m_resourcesHasBeenSet = false;
535 bool m_tierHasBeenSet = false;
536 bool m_environmentLinksHasBeenSet = false;
537 bool m_environmentArnHasBeenSet = false;
538 bool m_operationsRoleHasBeenSet = false;
539 bool m_responseMetadataHasBeenSet = true;
540};
541
542} // namespace Model
543} // namespace ElasticBeanstalk
544} // 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