AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeEnvironmentHealthResult.h
1
6#pragma once
7#include <aws/elasticbeanstalk/ElasticBeanstalk_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/elasticbeanstalk/model/EnvironmentHealth.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/elasticbeanstalk/model/ApplicationMetrics.h>
12#include <aws/elasticbeanstalk/model/InstanceHealthSummary.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/elasticbeanstalk/model/ResponseMetadata.h>
15#include <utility>
16
17namespace Aws
18{
19template<typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils
23{
24namespace Xml
25{
26 class XmlDocument;
27} // namespace Xml
28} // namespace Utils
29namespace ElasticBeanstalk
30{
31namespace Model
32{
40 {
41 public:
42 AWS_ELASTICBEANSTALK_API DescribeEnvironmentHealthResult();
45
46
48
51 inline const Aws::String& GetEnvironmentName() const{ return m_environmentName; }
52 inline void SetEnvironmentName(const Aws::String& value) { m_environmentName = value; }
53 inline void SetEnvironmentName(Aws::String&& value) { m_environmentName = std::move(value); }
54 inline void SetEnvironmentName(const char* value) { m_environmentName.assign(value); }
56 inline DescribeEnvironmentHealthResult& WithEnvironmentName(Aws::String&& value) { SetEnvironmentName(std::move(value)); return *this;}
57 inline DescribeEnvironmentHealthResult& WithEnvironmentName(const char* value) { SetEnvironmentName(value); return *this;}
59
61
66 inline const Aws::String& GetHealthStatus() const{ return m_healthStatus; }
67 inline void SetHealthStatus(const Aws::String& value) { m_healthStatus = value; }
68 inline void SetHealthStatus(Aws::String&& value) { m_healthStatus = std::move(value); }
69 inline void SetHealthStatus(const char* value) { m_healthStatus.assign(value); }
70 inline DescribeEnvironmentHealthResult& WithHealthStatus(const Aws::String& value) { SetHealthStatus(value); return *this;}
71 inline DescribeEnvironmentHealthResult& WithHealthStatus(Aws::String&& value) { SetHealthStatus(std::move(value)); return *this;}
72 inline DescribeEnvironmentHealthResult& WithHealthStatus(const char* value) { SetHealthStatus(value); return *this;}
74
76
81 inline const EnvironmentHealth& GetStatus() const{ return m_status; }
82 inline void SetStatus(const EnvironmentHealth& value) { m_status = value; }
83 inline void SetStatus(EnvironmentHealth&& value) { m_status = std::move(value); }
84 inline DescribeEnvironmentHealthResult& WithStatus(const EnvironmentHealth& value) { SetStatus(value); return *this;}
85 inline DescribeEnvironmentHealthResult& WithStatus(EnvironmentHealth&& value) { SetStatus(std::move(value)); return *this;}
87
89
94 inline const Aws::String& GetColor() const{ return m_color; }
95 inline void SetColor(const Aws::String& value) { m_color = value; }
96 inline void SetColor(Aws::String&& value) { m_color = std::move(value); }
97 inline void SetColor(const char* value) { m_color.assign(value); }
98 inline DescribeEnvironmentHealthResult& WithColor(const Aws::String& value) { SetColor(value); return *this;}
99 inline DescribeEnvironmentHealthResult& WithColor(Aws::String&& value) { SetColor(std::move(value)); return *this;}
100 inline DescribeEnvironmentHealthResult& WithColor(const char* value) { SetColor(value); return *this;}
102
104
108 inline const Aws::Vector<Aws::String>& GetCauses() const{ return m_causes; }
109 inline void SetCauses(const Aws::Vector<Aws::String>& value) { m_causes = value; }
110 inline void SetCauses(Aws::Vector<Aws::String>&& value) { m_causes = std::move(value); }
112 inline DescribeEnvironmentHealthResult& WithCauses(Aws::Vector<Aws::String>&& value) { SetCauses(std::move(value)); return *this;}
113 inline DescribeEnvironmentHealthResult& AddCauses(const Aws::String& value) { m_causes.push_back(value); return *this; }
114 inline DescribeEnvironmentHealthResult& AddCauses(Aws::String&& value) { m_causes.push_back(std::move(value)); return *this; }
115 inline DescribeEnvironmentHealthResult& AddCauses(const char* value) { m_causes.push_back(value); return *this; }
117
119
122 inline const ApplicationMetrics& GetApplicationMetrics() const{ return m_applicationMetrics; }
123 inline void SetApplicationMetrics(const ApplicationMetrics& value) { m_applicationMetrics = value; }
124 inline void SetApplicationMetrics(ApplicationMetrics&& value) { m_applicationMetrics = std::move(value); }
128
130
133 inline const InstanceHealthSummary& GetInstancesHealth() const{ return m_instancesHealth; }
134 inline void SetInstancesHealth(const InstanceHealthSummary& value) { m_instancesHealth = value; }
135 inline void SetInstancesHealth(InstanceHealthSummary&& value) { m_instancesHealth = std::move(value); }
139
141
144 inline const Aws::Utils::DateTime& GetRefreshedAt() const{ return m_refreshedAt; }
145 inline void SetRefreshedAt(const Aws::Utils::DateTime& value) { m_refreshedAt = value; }
146 inline void SetRefreshedAt(Aws::Utils::DateTime&& value) { m_refreshedAt = std::move(value); }
148 inline DescribeEnvironmentHealthResult& WithRefreshedAt(Aws::Utils::DateTime&& value) { SetRefreshedAt(std::move(value)); return *this;}
150
152
153 inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
154 inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
155 inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
159 private:
160
161 Aws::String m_environmentName;
162
163 Aws::String m_healthStatus;
164
165 EnvironmentHealth m_status;
166
167 Aws::String m_color;
168
170
171 ApplicationMetrics m_applicationMetrics;
172
173 InstanceHealthSummary m_instancesHealth;
174
175 Aws::Utils::DateTime m_refreshedAt;
176
177 ResponseMetadata m_responseMetadata;
178 };
179
180} // namespace Model
181} // namespace ElasticBeanstalk
182} // namespace Aws
DescribeEnvironmentHealthResult & AddCauses(Aws::String &&value)
DescribeEnvironmentHealthResult & WithStatus(const EnvironmentHealth &value)
DescribeEnvironmentHealthResult & WithHealthStatus(const Aws::String &value)
DescribeEnvironmentHealthResult & WithHealthStatus(Aws::String &&value)
DescribeEnvironmentHealthResult & WithColor(const char *value)
DescribeEnvironmentHealthResult & WithApplicationMetrics(ApplicationMetrics &&value)
AWS_ELASTICBEANSTALK_API DescribeEnvironmentHealthResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
DescribeEnvironmentHealthResult & WithEnvironmentName(const char *value)
DescribeEnvironmentHealthResult & WithInstancesHealth(InstanceHealthSummary &&value)
DescribeEnvironmentHealthResult & WithResponseMetadata(const ResponseMetadata &value)
DescribeEnvironmentHealthResult & WithRefreshedAt(Aws::Utils::DateTime &&value)
DescribeEnvironmentHealthResult & WithEnvironmentName(Aws::String &&value)
DescribeEnvironmentHealthResult & AddCauses(const Aws::String &value)
DescribeEnvironmentHealthResult & WithInstancesHealth(const InstanceHealthSummary &value)
DescribeEnvironmentHealthResult & WithEnvironmentName(const Aws::String &value)
DescribeEnvironmentHealthResult & WithStatus(EnvironmentHealth &&value)
DescribeEnvironmentHealthResult & WithRefreshedAt(const Aws::Utils::DateTime &value)
DescribeEnvironmentHealthResult & WithCauses(Aws::Vector< Aws::String > &&value)
DescribeEnvironmentHealthResult & WithCauses(const Aws::Vector< Aws::String > &value)
DescribeEnvironmentHealthResult & WithApplicationMetrics(const ApplicationMetrics &value)
AWS_ELASTICBEANSTALK_API DescribeEnvironmentHealthResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
DescribeEnvironmentHealthResult & WithColor(const Aws::String &value)
DescribeEnvironmentHealthResult & WithResponseMetadata(ResponseMetadata &&value)
DescribeEnvironmentHealthResult & WithColor(Aws::String &&value)
DescribeEnvironmentHealthResult & WithHealthStatus(const char *value)
DescribeEnvironmentHealthResult & AddCauses(const char *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