AWS SDK for C++  0.12.9
AWS SDK for C++
EnvironmentDescription.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
28 
29 namespace Aws
30 {
31 namespace Utils
32 {
33 namespace Xml
34 {
35  class XmlNode;
36 } // namespace Xml
37 } // namespace Utils
38 namespace ElasticBeanstalk
39 {
40 namespace Model
41 {
42 
47  {
48  public:
51  EnvironmentDescription& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
52 
53  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
54  void OutputToStream(Aws::OStream& oStream, const char* location) const;
55 
59  inline const Aws::String& GetEnvironmentName() const{ return m_environmentName; }
60 
64  inline void SetEnvironmentName(const Aws::String& value) { m_environmentNameHasBeenSet = true; m_environmentName = value; }
65 
69  inline void SetEnvironmentName(Aws::String&& value) { m_environmentNameHasBeenSet = true; m_environmentName = value; }
70 
74  inline void SetEnvironmentName(const char* value) { m_environmentNameHasBeenSet = true; m_environmentName.assign(value); }
75 
79  inline EnvironmentDescription& WithEnvironmentName(const Aws::String& value) { SetEnvironmentName(value); return *this;}
80 
84  inline EnvironmentDescription& WithEnvironmentName(Aws::String&& value) { SetEnvironmentName(value); return *this;}
85 
89  inline EnvironmentDescription& WithEnvironmentName(const char* value) { SetEnvironmentName(value); return *this;}
90 
94  inline const Aws::String& GetEnvironmentId() const{ return m_environmentId; }
95 
99  inline void SetEnvironmentId(const Aws::String& value) { m_environmentIdHasBeenSet = true; m_environmentId = value; }
100 
104  inline void SetEnvironmentId(Aws::String&& value) { m_environmentIdHasBeenSet = true; m_environmentId = value; }
105 
109  inline void SetEnvironmentId(const char* value) { m_environmentIdHasBeenSet = true; m_environmentId.assign(value); }
110 
114  inline EnvironmentDescription& WithEnvironmentId(const Aws::String& value) { SetEnvironmentId(value); return *this;}
115 
119  inline EnvironmentDescription& WithEnvironmentId(Aws::String&& value) { SetEnvironmentId(value); return *this;}
120 
124  inline EnvironmentDescription& WithEnvironmentId(const char* value) { SetEnvironmentId(value); return *this;}
125 
129  inline const Aws::String& GetApplicationName() const{ return m_applicationName; }
130 
134  inline void SetApplicationName(const Aws::String& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; }
135 
139  inline void SetApplicationName(Aws::String&& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; }
140 
144  inline void SetApplicationName(const char* value) { m_applicationNameHasBeenSet = true; m_applicationName.assign(value); }
145 
149  inline EnvironmentDescription& WithApplicationName(const Aws::String& value) { SetApplicationName(value); return *this;}
150 
154  inline EnvironmentDescription& WithApplicationName(Aws::String&& value) { SetApplicationName(value); return *this;}
155 
159  inline EnvironmentDescription& WithApplicationName(const char* value) { SetApplicationName(value); return *this;}
160 
164  inline const Aws::String& GetVersionLabel() const{ return m_versionLabel; }
165 
169  inline void SetVersionLabel(const Aws::String& value) { m_versionLabelHasBeenSet = true; m_versionLabel = value; }
170 
174  inline void SetVersionLabel(Aws::String&& value) { m_versionLabelHasBeenSet = true; m_versionLabel = value; }
175 
179  inline void SetVersionLabel(const char* value) { m_versionLabelHasBeenSet = true; m_versionLabel.assign(value); }
180 
184  inline EnvironmentDescription& WithVersionLabel(const Aws::String& value) { SetVersionLabel(value); return *this;}
185 
189  inline EnvironmentDescription& WithVersionLabel(Aws::String&& value) { SetVersionLabel(value); return *this;}
190 
194  inline EnvironmentDescription& WithVersionLabel(const char* value) { SetVersionLabel(value); return *this;}
195 
200  inline const Aws::String& GetSolutionStackName() const{ return m_solutionStackName; }
201 
206  inline void SetSolutionStackName(const Aws::String& value) { m_solutionStackNameHasBeenSet = true; m_solutionStackName = value; }
207 
212  inline void SetSolutionStackName(Aws::String&& value) { m_solutionStackNameHasBeenSet = true; m_solutionStackName = value; }
213 
218  inline void SetSolutionStackName(const char* value) { m_solutionStackNameHasBeenSet = true; m_solutionStackName.assign(value); }
219 
224  inline EnvironmentDescription& WithSolutionStackName(const Aws::String& value) { SetSolutionStackName(value); return *this;}
225 
230  inline EnvironmentDescription& WithSolutionStackName(Aws::String&& value) { SetSolutionStackName(value); return *this;}
231 
236  inline EnvironmentDescription& WithSolutionStackName(const char* value) { SetSolutionStackName(value); return *this;}
237 
242  inline const Aws::String& GetTemplateName() const{ return m_templateName; }
243 
248  inline void SetTemplateName(const Aws::String& value) { m_templateNameHasBeenSet = true; m_templateName = value; }
249 
254  inline void SetTemplateName(Aws::String&& value) { m_templateNameHasBeenSet = true; m_templateName = value; }
255 
260  inline void SetTemplateName(const char* value) { m_templateNameHasBeenSet = true; m_templateName.assign(value); }
261 
266  inline EnvironmentDescription& WithTemplateName(const Aws::String& value) { SetTemplateName(value); return *this;}
267 
272  inline EnvironmentDescription& WithTemplateName(Aws::String&& value) { SetTemplateName(value); return *this;}
273 
278  inline EnvironmentDescription& WithTemplateName(const char* value) { SetTemplateName(value); return *this;}
279 
283  inline const Aws::String& GetDescription() const{ return m_description; }
284 
288  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
289 
293  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
294 
298  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
299 
303  inline EnvironmentDescription& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
304 
308  inline EnvironmentDescription& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
309 
313  inline EnvironmentDescription& WithDescription(const char* value) { SetDescription(value); return *this;}
314 
319  inline const Aws::String& GetEndpointURL() const{ return m_endpointURL; }
320 
325  inline void SetEndpointURL(const Aws::String& value) { m_endpointURLHasBeenSet = true; m_endpointURL = value; }
326 
331  inline void SetEndpointURL(Aws::String&& value) { m_endpointURLHasBeenSet = true; m_endpointURL = value; }
332 
337  inline void SetEndpointURL(const char* value) { m_endpointURLHasBeenSet = true; m_endpointURL.assign(value); }
338 
343  inline EnvironmentDescription& WithEndpointURL(const Aws::String& value) { SetEndpointURL(value); return *this;}
344 
349  inline EnvironmentDescription& WithEndpointURL(Aws::String&& value) { SetEndpointURL(value); return *this;}
350 
355  inline EnvironmentDescription& WithEndpointURL(const char* value) { SetEndpointURL(value); return *this;}
356 
360  inline const Aws::String& GetCNAME() const{ return m_cNAME; }
361 
365  inline void SetCNAME(const Aws::String& value) { m_cNAMEHasBeenSet = true; m_cNAME = value; }
366 
370  inline void SetCNAME(Aws::String&& value) { m_cNAMEHasBeenSet = true; m_cNAME = value; }
371 
375  inline void SetCNAME(const char* value) { m_cNAMEHasBeenSet = true; m_cNAME.assign(value); }
376 
380  inline EnvironmentDescription& WithCNAME(const Aws::String& value) { SetCNAME(value); return *this;}
381 
385  inline EnvironmentDescription& WithCNAME(Aws::String&& value) { SetCNAME(value); return *this;}
386 
390  inline EnvironmentDescription& WithCNAME(const char* value) { SetCNAME(value); return *this;}
391 
395  inline const Aws::Utils::DateTime& GetDateCreated() const{ return m_dateCreated; }
396 
400  inline void SetDateCreated(const Aws::Utils::DateTime& value) { m_dateCreatedHasBeenSet = true; m_dateCreated = value; }
401 
405  inline void SetDateCreated(Aws::Utils::DateTime&& value) { m_dateCreatedHasBeenSet = true; m_dateCreated = value; }
406 
410  inline EnvironmentDescription& WithDateCreated(const Aws::Utils::DateTime& value) { SetDateCreated(value); return *this;}
411 
415  inline EnvironmentDescription& WithDateCreated(Aws::Utils::DateTime&& value) { SetDateCreated(value); return *this;}
416 
420  inline const Aws::Utils::DateTime& GetDateUpdated() const{ return m_dateUpdated; }
421 
425  inline void SetDateUpdated(const Aws::Utils::DateTime& value) { m_dateUpdatedHasBeenSet = true; m_dateUpdated = value; }
426 
430  inline void SetDateUpdated(Aws::Utils::DateTime&& value) { m_dateUpdatedHasBeenSet = true; m_dateUpdated = value; }
431 
435  inline EnvironmentDescription& WithDateUpdated(const Aws::Utils::DateTime& value) { SetDateUpdated(value); return *this;}
436 
440  inline EnvironmentDescription& WithDateUpdated(Aws::Utils::DateTime&& value) { SetDateUpdated(value); return *this;}
441 
452  inline const EnvironmentStatus& GetStatus() const{ return m_status; }
453 
464  inline void SetStatus(const EnvironmentStatus& value) { m_statusHasBeenSet = true; m_status = value; }
465 
476  inline void SetStatus(EnvironmentStatus&& value) { m_statusHasBeenSet = true; m_status = value; }
477 
488  inline EnvironmentDescription& WithStatus(const EnvironmentStatus& value) { SetStatus(value); return *this;}
489 
500  inline EnvironmentDescription& WithStatus(EnvironmentStatus&& value) { SetStatus(value); return *this;}
501 
508  inline bool GetAbortableOperationInProgress() const{ return m_abortableOperationInProgress; }
509 
516  inline void SetAbortableOperationInProgress(bool value) { m_abortableOperationInProgressHasBeenSet = true; m_abortableOperationInProgress = value; }
517 
524  inline EnvironmentDescription& WithAbortableOperationInProgress(bool value) { SetAbortableOperationInProgress(value); return *this;}
525 
539  inline const EnvironmentHealth& GetHealth() const{ return m_health; }
540 
554  inline void SetHealth(const EnvironmentHealth& value) { m_healthHasBeenSet = true; m_health = value; }
555 
569  inline void SetHealth(EnvironmentHealth&& value) { m_healthHasBeenSet = true; m_health = value; }
570 
584  inline EnvironmentDescription& WithHealth(const EnvironmentHealth& value) { SetHealth(value); return *this;}
585 
599  inline EnvironmentDescription& WithHealth(EnvironmentHealth&& value) { SetHealth(value); return *this;}
600 
607  inline const EnvironmentHealthStatus& GetHealthStatus() const{ return m_healthStatus; }
608 
615  inline void SetHealthStatus(const EnvironmentHealthStatus& value) { m_healthStatusHasBeenSet = true; m_healthStatus = value; }
616 
623  inline void SetHealthStatus(EnvironmentHealthStatus&& value) { m_healthStatusHasBeenSet = true; m_healthStatus = value; }
624 
631  inline EnvironmentDescription& WithHealthStatus(const EnvironmentHealthStatus& value) { SetHealthStatus(value); return *this;}
632 
639  inline EnvironmentDescription& WithHealthStatus(EnvironmentHealthStatus&& value) { SetHealthStatus(value); return *this;}
640 
644  inline const EnvironmentResourcesDescription& GetResources() const{ return m_resources; }
645 
649  inline void SetResources(const EnvironmentResourcesDescription& value) { m_resourcesHasBeenSet = true; m_resources = value; }
650 
654  inline void SetResources(EnvironmentResourcesDescription&& value) { m_resourcesHasBeenSet = true; m_resources = value; }
655 
659  inline EnvironmentDescription& WithResources(const EnvironmentResourcesDescription& value) { SetResources(value); return *this;}
660 
664  inline EnvironmentDescription& WithResources(EnvironmentResourcesDescription&& value) { SetResources(value); return *this;}
665 
669  inline const EnvironmentTier& GetTier() const{ return m_tier; }
670 
674  inline void SetTier(const EnvironmentTier& value) { m_tierHasBeenSet = true; m_tier = value; }
675 
679  inline void SetTier(EnvironmentTier&& value) { m_tierHasBeenSet = true; m_tier = value; }
680 
684  inline EnvironmentDescription& WithTier(const EnvironmentTier& value) { SetTier(value); return *this;}
685 
689  inline EnvironmentDescription& WithTier(EnvironmentTier&& value) { SetTier(value); return *this;}
690 
694  inline const Aws::Vector<EnvironmentLink>& GetEnvironmentLinks() const{ return m_environmentLinks; }
695 
699  inline void SetEnvironmentLinks(const Aws::Vector<EnvironmentLink>& value) { m_environmentLinksHasBeenSet = true; m_environmentLinks = value; }
700 
704  inline void SetEnvironmentLinks(Aws::Vector<EnvironmentLink>&& value) { m_environmentLinksHasBeenSet = true; m_environmentLinks = value; }
705 
709  inline EnvironmentDescription& WithEnvironmentLinks(const Aws::Vector<EnvironmentLink>& value) { SetEnvironmentLinks(value); return *this;}
710 
714  inline EnvironmentDescription& WithEnvironmentLinks(Aws::Vector<EnvironmentLink>&& value) { SetEnvironmentLinks(value); return *this;}
715 
719  inline EnvironmentDescription& AddEnvironmentLinks(const EnvironmentLink& value) { m_environmentLinksHasBeenSet = true; m_environmentLinks.push_back(value); return *this; }
720 
724  inline EnvironmentDescription& AddEnvironmentLinks(EnvironmentLink&& value) { m_environmentLinksHasBeenSet = true; m_environmentLinks.push_back(value); return *this; }
725 
726 
727  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
728 
729 
730  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadataHasBeenSet = true; m_responseMetadata = value; }
731 
732 
733  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadataHasBeenSet = true; m_responseMetadata = value; }
734 
735 
736  inline EnvironmentDescription& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
737 
738 
739  inline EnvironmentDescription& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(value); return *this;}
740 
741  private:
742  Aws::String m_environmentName;
743  bool m_environmentNameHasBeenSet;
744  Aws::String m_environmentId;
745  bool m_environmentIdHasBeenSet;
746  Aws::String m_applicationName;
747  bool m_applicationNameHasBeenSet;
748  Aws::String m_versionLabel;
749  bool m_versionLabelHasBeenSet;
750  Aws::String m_solutionStackName;
751  bool m_solutionStackNameHasBeenSet;
752  Aws::String m_templateName;
753  bool m_templateNameHasBeenSet;
754  Aws::String m_description;
755  bool m_descriptionHasBeenSet;
756  Aws::String m_endpointURL;
757  bool m_endpointURLHasBeenSet;
758  Aws::String m_cNAME;
759  bool m_cNAMEHasBeenSet;
760  Aws::Utils::DateTime m_dateCreated;
761  bool m_dateCreatedHasBeenSet;
762  Aws::Utils::DateTime m_dateUpdated;
763  bool m_dateUpdatedHasBeenSet;
764  EnvironmentStatus m_status;
765  bool m_statusHasBeenSet;
766  bool m_abortableOperationInProgress;
767  bool m_abortableOperationInProgressHasBeenSet;
768  EnvironmentHealth m_health;
769  bool m_healthHasBeenSet;
770  EnvironmentHealthStatus m_healthStatus;
771  bool m_healthStatusHasBeenSet;
773  bool m_resourcesHasBeenSet;
774  EnvironmentTier m_tier;
775  bool m_tierHasBeenSet;
776  Aws::Vector<EnvironmentLink> m_environmentLinks;
777  bool m_environmentLinksHasBeenSet;
778  ResponseMetadata m_responseMetadata;
779  bool m_responseMetadataHasBeenSet;
780  };
781 
782 } // namespace Model
783 } // namespace ElasticBeanstalk
784 } // namespace Aws
EnvironmentDescription & WithCNAME(const Aws::String &value)
EnvironmentDescription & WithStatus(const EnvironmentStatus &value)
EnvironmentDescription & AddEnvironmentLinks(const EnvironmentLink &value)
EnvironmentDescription & WithTemplateName(Aws::String &&value)
EnvironmentDescription & WithTier(EnvironmentTier &&value)
EnvironmentDescription & WithResources(EnvironmentResourcesDescription &&value)
EnvironmentDescription & WithSolutionStackName(Aws::String &&value)
EnvironmentDescription & WithDateUpdated(Aws::Utils::DateTime &&value)
EnvironmentDescription & WithDateCreated(const Aws::Utils::DateTime &value)
#define AWS_ELASTICBEANSTALK_API
void SetDateCreated(const Aws::Utils::DateTime &value)
EnvironmentDescription & WithResponseMetadata(const ResponseMetadata &value)
EnvironmentDescription & WithDescription(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
EnvironmentDescription & WithDescription(const char *value)
EnvironmentDescription & WithSolutionStackName(const Aws::String &value)
EnvironmentDescription & WithTemplateName(const Aws::String &value)
const Aws::Utils::DateTime & GetDateUpdated() const
const EnvironmentHealthStatus & GetHealthStatus() const
EnvironmentDescription & WithDateUpdated(const Aws::Utils::DateTime &value)
void SetResources(const EnvironmentResourcesDescription &value)
EnvironmentDescription & WithCNAME(Aws::String &&value)
EnvironmentDescription & WithDescription(Aws::String &&value)
EnvironmentDescription & WithHealth(const EnvironmentHealth &value)
EnvironmentDescription & WithEnvironmentId(Aws::String &&value)
const EnvironmentResourcesDescription & GetResources() const
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
EnvironmentDescription & WithEnvironmentId(const char *value)
const Aws::Utils::DateTime & GetDateCreated() const
EnvironmentDescription & WithStatus(EnvironmentStatus &&value)
void SetEnvironmentLinks(Aws::Vector< EnvironmentLink > &&value)
EnvironmentDescription & WithCNAME(const char *value)
EnvironmentDescription & WithResources(const EnvironmentResourcesDescription &value)
EnvironmentDescription & WithEnvironmentName(const Aws::String &value)
EnvironmentDescription & WithApplicationName(const Aws::String &value)
EnvironmentDescription & WithApplicationName(Aws::String &&value)
EnvironmentDescription & WithTemplateName(const char *value)
EnvironmentDescription & WithEnvironmentId(const Aws::String &value)
EnvironmentDescription & WithEnvironmentName(const char *value)
const Aws::Vector< EnvironmentLink > & GetEnvironmentLinks() const
EnvironmentDescription & WithEndpointURL(const Aws::String &value)
EnvironmentDescription & WithEndpointURL(Aws::String &&value)
EnvironmentDescription & WithSolutionStackName(const char *value)
EnvironmentDescription & WithEnvironmentLinks(const Aws::Vector< EnvironmentLink > &value)
EnvironmentDescription & WithEnvironmentName(Aws::String &&value)
EnvironmentDescription & WithDateCreated(Aws::Utils::DateTime &&value)
EnvironmentDescription & WithTier(const EnvironmentTier &value)
EnvironmentDescription & WithVersionLabel(const Aws::String &value)
void SetResources(EnvironmentResourcesDescription &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
EnvironmentDescription & WithApplicationName(const char *value)
EnvironmentDescription & WithAbortableOperationInProgress(bool value)
EnvironmentDescription & WithVersionLabel(Aws::String &&value)
void SetHealthStatus(const EnvironmentHealthStatus &value)
EnvironmentDescription & WithHealthStatus(EnvironmentHealthStatus &&value)
EnvironmentDescription & WithEnvironmentLinks(Aws::Vector< EnvironmentLink > &&value)
EnvironmentDescription & AddEnvironmentLinks(EnvironmentLink &&value)
void SetEnvironmentLinks(const Aws::Vector< EnvironmentLink > &value)
EnvironmentDescription & WithHealth(EnvironmentHealth &&value)
EnvironmentDescription & WithHealthStatus(const EnvironmentHealthStatus &value)
EnvironmentDescription & WithResponseMetadata(ResponseMetadata &&value)
EnvironmentDescription & WithEndpointURL(const char *value)
void SetHealthStatus(EnvironmentHealthStatus &&value)
JSON (JavaScript Object Notation).
EnvironmentDescription & WithVersionLabel(const char *value)
void SetDateUpdated(const Aws::Utils::DateTime &value)