AWS SDK for C++  1.9.176
AWS SDK for C++
DescribeEnvironmentHealthResult.h
Go to the documentation of this file.
1 
6 #pragma once
15 #include <utility>
16 
17 namespace Aws
18 {
19 template<typename RESULT_TYPE>
20 class AmazonWebServiceResult;
21 
22 namespace Utils
23 {
24 namespace Xml
25 {
26  class XmlDocument;
27 } // namespace Xml
28 } // namespace Utils
29 namespace ElasticBeanstalk
30 {
31 namespace Model
32 {
40  {
41  public:
45 
46 
50  inline const Aws::String& GetEnvironmentName() const{ return m_environmentName; }
51 
55  inline void SetEnvironmentName(const Aws::String& value) { m_environmentName = value; }
56 
60  inline void SetEnvironmentName(Aws::String&& value) { m_environmentName = std::move(value); }
61 
65  inline void SetEnvironmentName(const char* value) { m_environmentName.assign(value); }
66 
70  inline DescribeEnvironmentHealthResult& WithEnvironmentName(const Aws::String& value) { SetEnvironmentName(value); return *this;}
71 
75  inline DescribeEnvironmentHealthResult& WithEnvironmentName(Aws::String&& value) { SetEnvironmentName(std::move(value)); return *this;}
76 
80  inline DescribeEnvironmentHealthResult& WithEnvironmentName(const char* value) { SetEnvironmentName(value); return *this;}
81 
82 
88  inline const Aws::String& GetHealthStatus() const{ return m_healthStatus; }
89 
95  inline void SetHealthStatus(const Aws::String& value) { m_healthStatus = value; }
96 
102  inline void SetHealthStatus(Aws::String&& value) { m_healthStatus = std::move(value); }
103 
109  inline void SetHealthStatus(const char* value) { m_healthStatus.assign(value); }
110 
116  inline DescribeEnvironmentHealthResult& WithHealthStatus(const Aws::String& value) { SetHealthStatus(value); return *this;}
117 
123  inline DescribeEnvironmentHealthResult& WithHealthStatus(Aws::String&& value) { SetHealthStatus(std::move(value)); return *this;}
124 
130  inline DescribeEnvironmentHealthResult& WithHealthStatus(const char* value) { SetHealthStatus(value); return *this;}
131 
132 
138  inline const EnvironmentHealth& GetStatus() const{ return m_status; }
139 
145  inline void SetStatus(const EnvironmentHealth& value) { m_status = value; }
146 
152  inline void SetStatus(EnvironmentHealth&& value) { m_status = std::move(value); }
153 
159  inline DescribeEnvironmentHealthResult& WithStatus(const EnvironmentHealth& value) { SetStatus(value); return *this;}
160 
166  inline DescribeEnvironmentHealthResult& WithStatus(EnvironmentHealth&& value) { SetStatus(std::move(value)); return *this;}
167 
168 
174  inline const Aws::String& GetColor() const{ return m_color; }
175 
181  inline void SetColor(const Aws::String& value) { m_color = value; }
182 
188  inline void SetColor(Aws::String&& value) { m_color = std::move(value); }
189 
195  inline void SetColor(const char* value) { m_color.assign(value); }
196 
202  inline DescribeEnvironmentHealthResult& WithColor(const Aws::String& value) { SetColor(value); return *this;}
203 
209  inline DescribeEnvironmentHealthResult& WithColor(Aws::String&& value) { SetColor(std::move(value)); return *this;}
210 
216  inline DescribeEnvironmentHealthResult& WithColor(const char* value) { SetColor(value); return *this;}
217 
218 
223  inline const Aws::Vector<Aws::String>& GetCauses() const{ return m_causes; }
224 
229  inline void SetCauses(const Aws::Vector<Aws::String>& value) { m_causes = value; }
230 
235  inline void SetCauses(Aws::Vector<Aws::String>&& value) { m_causes = std::move(value); }
236 
241  inline DescribeEnvironmentHealthResult& WithCauses(const Aws::Vector<Aws::String>& value) { SetCauses(value); return *this;}
242 
247  inline DescribeEnvironmentHealthResult& WithCauses(Aws::Vector<Aws::String>&& value) { SetCauses(std::move(value)); return *this;}
248 
253  inline DescribeEnvironmentHealthResult& AddCauses(const Aws::String& value) { m_causes.push_back(value); return *this; }
254 
259  inline DescribeEnvironmentHealthResult& AddCauses(Aws::String&& value) { m_causes.push_back(std::move(value)); return *this; }
260 
265  inline DescribeEnvironmentHealthResult& AddCauses(const char* value) { m_causes.push_back(value); return *this; }
266 
267 
271  inline const ApplicationMetrics& GetApplicationMetrics() const{ return m_applicationMetrics; }
272 
276  inline void SetApplicationMetrics(const ApplicationMetrics& value) { m_applicationMetrics = value; }
277 
281  inline void SetApplicationMetrics(ApplicationMetrics&& value) { m_applicationMetrics = std::move(value); }
282 
286  inline DescribeEnvironmentHealthResult& WithApplicationMetrics(const ApplicationMetrics& value) { SetApplicationMetrics(value); return *this;}
287 
291  inline DescribeEnvironmentHealthResult& WithApplicationMetrics(ApplicationMetrics&& value) { SetApplicationMetrics(std::move(value)); return *this;}
292 
293 
297  inline const InstanceHealthSummary& GetInstancesHealth() const{ return m_instancesHealth; }
298 
302  inline void SetInstancesHealth(const InstanceHealthSummary& value) { m_instancesHealth = value; }
303 
307  inline void SetInstancesHealth(InstanceHealthSummary&& value) { m_instancesHealth = std::move(value); }
308 
312  inline DescribeEnvironmentHealthResult& WithInstancesHealth(const InstanceHealthSummary& value) { SetInstancesHealth(value); return *this;}
313 
317  inline DescribeEnvironmentHealthResult& WithInstancesHealth(InstanceHealthSummary&& value) { SetInstancesHealth(std::move(value)); return *this;}
318 
319 
323  inline const Aws::Utils::DateTime& GetRefreshedAt() const{ return m_refreshedAt; }
324 
328  inline void SetRefreshedAt(const Aws::Utils::DateTime& value) { m_refreshedAt = value; }
329 
333  inline void SetRefreshedAt(Aws::Utils::DateTime&& value) { m_refreshedAt = std::move(value); }
334 
338  inline DescribeEnvironmentHealthResult& WithRefreshedAt(const Aws::Utils::DateTime& value) { SetRefreshedAt(value); return *this;}
339 
343  inline DescribeEnvironmentHealthResult& WithRefreshedAt(Aws::Utils::DateTime&& value) { SetRefreshedAt(std::move(value)); return *this;}
344 
345 
346 
347  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
348 
349 
350  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
351 
352 
353  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
354 
355 
356  inline DescribeEnvironmentHealthResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
357 
358 
359  inline DescribeEnvironmentHealthResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
360 
361  private:
362 
363  Aws::String m_environmentName;
364 
365  Aws::String m_healthStatus;
366 
367  EnvironmentHealth m_status;
368 
369  Aws::String m_color;
370 
371  Aws::Vector<Aws::String> m_causes;
372 
373  ApplicationMetrics m_applicationMetrics;
374 
375  InstanceHealthSummary m_instancesHealth;
376 
377  Aws::Utils::DateTime m_refreshedAt;
378 
379  ResponseMetadata m_responseMetadata;
380  };
381 
382 } // namespace Model
383 } // namespace ElasticBeanstalk
384 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::ElasticBeanstalk::Model::DescribeEnvironmentHealthResult::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: DescribeEnvironmentHealthResult.h:347
Aws::ElasticBeanstalk::Model::DescribeEnvironmentHealthResult::SetHealthStatus
void SetHealthStatus(const char *value)
Definition: DescribeEnvironmentHealthResult.h:109
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
InstanceHealthSummary.h
Aws::ElasticBeanstalk::Model::DescribeEnvironmentHealthResult::WithApplicationMetrics
DescribeEnvironmentHealthResult & WithApplicationMetrics(ApplicationMetrics &&value)
Definition: DescribeEnvironmentHealthResult.h:291
Aws::ElasticBeanstalk::Model::DescribeEnvironmentHealthResult::GetEnvironmentName
const Aws::String & GetEnvironmentName() const
Definition: DescribeEnvironmentHealthResult.h:50
AWS_ELASTICBEANSTALK_API
#define AWS_ELASTICBEANSTALK_API
Definition: ElasticBeanstalk_EXPORTS.h:28
Aws::ElasticBeanstalk::Model::DescribeEnvironmentHealthResult::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: DescribeEnvironmentHealthResult.h:353
Aws::ElasticBeanstalk::Model::DescribeEnvironmentHealthResult::SetCauses
void SetCauses(Aws::Vector< Aws::String > &&value)
Definition: DescribeEnvironmentHealthResult.h:235
Aws::ElasticBeanstalk::Model::EnvironmentHealth
EnvironmentHealth
Definition: EnvironmentHealth.h:17
Aws::ElasticBeanstalk::Model::DescribeEnvironmentHealthResult::WithColor
DescribeEnvironmentHealthResult & WithColor(const Aws::String &value)
Definition: DescribeEnvironmentHealthResult.h:202
Aws::ElasticBeanstalk::Model::DescribeEnvironmentHealthResult::SetApplicationMetrics
void SetApplicationMetrics(const ApplicationMetrics &value)
Definition: DescribeEnvironmentHealthResult.h:276
DateTime.h
Aws::ElasticBeanstalk::Model::DescribeEnvironmentHealthResult::WithEnvironmentName
DescribeEnvironmentHealthResult & WithEnvironmentName(const Aws::String &value)
Definition: DescribeEnvironmentHealthResult.h:70
EnvironmentHealth.h
Aws::ElasticBeanstalk::Model::DescribeEnvironmentHealthResult::SetColor
void SetColor(const char *value)
Definition: DescribeEnvironmentHealthResult.h:195
Aws::ElasticBeanstalk::Model::DescribeEnvironmentHealthResult::WithRefreshedAt
DescribeEnvironmentHealthResult & WithRefreshedAt(Aws::Utils::DateTime &&value)
Definition: DescribeEnvironmentHealthResult.h:343
Aws::ElasticBeanstalk::Model::DescribeEnvironmentHealthResult::SetEnvironmentName
void SetEnvironmentName(Aws::String &&value)
Definition: DescribeEnvironmentHealthResult.h:60
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ElasticBeanstalk::Model::DescribeEnvironmentHealthResult::WithHealthStatus
DescribeEnvironmentHealthResult & WithHealthStatus(const Aws::String &value)
Definition: DescribeEnvironmentHealthResult.h:116
Aws::ElasticBeanstalk::Model::DescribeEnvironmentHealthResult::WithColor
DescribeEnvironmentHealthResult & WithColor(const char *value)
Definition: DescribeEnvironmentHealthResult.h:216
Aws::ElasticBeanstalk::Model::DescribeEnvironmentHealthResult::WithCauses
DescribeEnvironmentHealthResult & WithCauses(Aws::Vector< Aws::String > &&value)
Definition: DescribeEnvironmentHealthResult.h:247
Aws::ElasticBeanstalk::Model::DescribeEnvironmentHealthResult::WithResponseMetadata
DescribeEnvironmentHealthResult & WithResponseMetadata(ResponseMetadata &&value)
Definition: DescribeEnvironmentHealthResult.h:359
AWSVector.h
Aws::ElasticBeanstalk::Model::DescribeEnvironmentHealthResult::WithCauses
DescribeEnvironmentHealthResult & WithCauses(const Aws::Vector< Aws::String > &value)
Definition: DescribeEnvironmentHealthResult.h:241
Aws::ElasticBeanstalk::Model::DescribeEnvironmentHealthResult::DescribeEnvironmentHealthResult
DescribeEnvironmentHealthResult()
Aws::ElasticBeanstalk::Model::DescribeEnvironmentHealthResult::WithEnvironmentName
DescribeEnvironmentHealthResult & WithEnvironmentName(const char *value)
Definition: DescribeEnvironmentHealthResult.h:80
Aws::ElasticBeanstalk::Model::DescribeEnvironmentHealthResult::WithStatus
DescribeEnvironmentHealthResult & WithStatus(const EnvironmentHealth &value)
Definition: DescribeEnvironmentHealthResult.h:159
Aws::ElasticBeanstalk::Model::DescribeEnvironmentHealthResult::SetCauses
void SetCauses(const Aws::Vector< Aws::String > &value)
Definition: DescribeEnvironmentHealthResult.h:229
Aws::ElasticBeanstalk::Model::DescribeEnvironmentHealthResult::DescribeEnvironmentHealthResult
DescribeEnvironmentHealthResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::ElasticBeanstalk::Model::DescribeEnvironmentHealthResult::WithStatus
DescribeEnvironmentHealthResult & WithStatus(EnvironmentHealth &&value)
Definition: DescribeEnvironmentHealthResult.h:166
ApplicationMetrics.h
Aws::ElasticBeanstalk::Model::DescribeEnvironmentHealthResult::SetHealthStatus
void SetHealthStatus(const Aws::String &value)
Definition: DescribeEnvironmentHealthResult.h:95
Aws::ElasticBeanstalk::Model::DescribeEnvironmentHealthResult::SetInstancesHealth
void SetInstancesHealth(InstanceHealthSummary &&value)
Definition: DescribeEnvironmentHealthResult.h:307
Aws::ElasticBeanstalk::Model::DescribeEnvironmentHealthResult::SetStatus
void SetStatus(const EnvironmentHealth &value)
Definition: DescribeEnvironmentHealthResult.h:145
Aws::ElasticBeanstalk::Model::DescribeEnvironmentHealthResult::SetColor
void SetColor(const Aws::String &value)
Definition: DescribeEnvironmentHealthResult.h:181
Aws::ElasticBeanstalk::Model::DescribeEnvironmentHealthResult::AddCauses
DescribeEnvironmentHealthResult & AddCauses(Aws::String &&value)
Definition: DescribeEnvironmentHealthResult.h:259
Aws::ElasticBeanstalk::Model::DescribeEnvironmentHealthResult::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: DescribeEnvironmentHealthResult.h:350
Aws::ElasticBeanstalk::Model::DescribeEnvironmentHealthResult::SetEnvironmentName
void SetEnvironmentName(const char *value)
Definition: DescribeEnvironmentHealthResult.h:65
Aws::ElasticBeanstalk::Model::DescribeEnvironmentHealthResult::SetHealthStatus
void SetHealthStatus(Aws::String &&value)
Definition: DescribeEnvironmentHealthResult.h:102
Aws::ElasticBeanstalk::Model::DescribeEnvironmentHealthResult::GetColor
const Aws::String & GetColor() const
Definition: DescribeEnvironmentHealthResult.h:174
AWSString.h
Aws::ElasticBeanstalk::Model::DescribeEnvironmentHealthResult::SetApplicationMetrics
void SetApplicationMetrics(ApplicationMetrics &&value)
Definition: DescribeEnvironmentHealthResult.h:281
Aws::ElasticBeanstalk::Model::DescribeEnvironmentHealthResult::GetCauses
const Aws::Vector< Aws::String > & GetCauses() const
Definition: DescribeEnvironmentHealthResult.h:223
Aws::ElasticBeanstalk::Model::DescribeEnvironmentHealthResult::GetInstancesHealth
const InstanceHealthSummary & GetInstancesHealth() const
Definition: DescribeEnvironmentHealthResult.h:297
Aws::ElasticBeanstalk::Model::DescribeEnvironmentHealthResult::AddCauses
DescribeEnvironmentHealthResult & AddCauses(const char *value)
Definition: DescribeEnvironmentHealthResult.h:265
Aws::ElasticBeanstalk::Model::DescribeEnvironmentHealthResult::WithInstancesHealth
DescribeEnvironmentHealthResult & WithInstancesHealth(const InstanceHealthSummary &value)
Definition: DescribeEnvironmentHealthResult.h:312
ResponseMetadata.h
Aws::ElasticBeanstalk::Model::DescribeEnvironmentHealthResult::operator=
DescribeEnvironmentHealthResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
ElasticBeanstalk_EXPORTS.h
Aws::ElasticBeanstalk::Model::DescribeEnvironmentHealthResult::WithHealthStatus
DescribeEnvironmentHealthResult & WithHealthStatus(Aws::String &&value)
Definition: DescribeEnvironmentHealthResult.h:123
Aws::ElasticBeanstalk::Model::DescribeEnvironmentHealthResult::SetColor
void SetColor(Aws::String &&value)
Definition: DescribeEnvironmentHealthResult.h:188
Aws::ElasticBeanstalk::Model::DescribeEnvironmentHealthResult::AddCauses
DescribeEnvironmentHealthResult & AddCauses(const Aws::String &value)
Definition: DescribeEnvironmentHealthResult.h:253
Aws::ElasticBeanstalk::Model::DescribeEnvironmentHealthResult::SetRefreshedAt
void SetRefreshedAt(Aws::Utils::DateTime &&value)
Definition: DescribeEnvironmentHealthResult.h:333
Aws::ElasticBeanstalk::Model::DescribeEnvironmentHealthResult::WithColor
DescribeEnvironmentHealthResult & WithColor(Aws::String &&value)
Definition: DescribeEnvironmentHealthResult.h:209
Aws::ElasticBeanstalk::Model::DescribeEnvironmentHealthResult::SetStatus
void SetStatus(EnvironmentHealth &&value)
Definition: DescribeEnvironmentHealthResult.h:152
Aws::ElasticBeanstalk::Model::DescribeEnvironmentHealthResult::WithApplicationMetrics
DescribeEnvironmentHealthResult & WithApplicationMetrics(const ApplicationMetrics &value)
Definition: DescribeEnvironmentHealthResult.h:286
Aws::ElasticBeanstalk::Model::DescribeEnvironmentHealthResult::SetEnvironmentName
void SetEnvironmentName(const Aws::String &value)
Definition: DescribeEnvironmentHealthResult.h:55
Aws
Definition: AccessManagementClient.h:15
Aws::ElasticBeanstalk::Model::DescribeEnvironmentHealthResult::WithRefreshedAt
DescribeEnvironmentHealthResult & WithRefreshedAt(const Aws::Utils::DateTime &value)
Definition: DescribeEnvironmentHealthResult.h:338
Aws::ElasticBeanstalk::Model::DescribeEnvironmentHealthResult
Definition: DescribeEnvironmentHealthResult.h:40
Aws::ElasticBeanstalk::Model::DescribeEnvironmentHealthResult::WithHealthStatus
DescribeEnvironmentHealthResult & WithHealthStatus(const char *value)
Definition: DescribeEnvironmentHealthResult.h:130
Aws::ElasticBeanstalk::Model::DescribeEnvironmentHealthResult::SetInstancesHealth
void SetInstancesHealth(const InstanceHealthSummary &value)
Definition: DescribeEnvironmentHealthResult.h:302
Aws::ElasticBeanstalk::Model::ApplicationMetrics
Definition: ApplicationMetrics.h:34
Aws::ElasticBeanstalk::Model::DescribeEnvironmentHealthResult::WithEnvironmentName
DescribeEnvironmentHealthResult & WithEnvironmentName(Aws::String &&value)
Definition: DescribeEnvironmentHealthResult.h:75
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ElasticBeanstalk::Model::DescribeEnvironmentHealthResult::GetStatus
const EnvironmentHealth & GetStatus() const
Definition: DescribeEnvironmentHealthResult.h:138
Aws::ElasticBeanstalk::Model::DescribeEnvironmentHealthResult::GetApplicationMetrics
const ApplicationMetrics & GetApplicationMetrics() const
Definition: DescribeEnvironmentHealthResult.h:271
Aws::ElasticBeanstalk::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
Aws::ElasticBeanstalk::Model::DescribeEnvironmentHealthResult::GetHealthStatus
const Aws::String & GetHealthStatus() const
Definition: DescribeEnvironmentHealthResult.h:88
Aws::ElasticBeanstalk::Model::DescribeEnvironmentHealthResult::WithInstancesHealth
DescribeEnvironmentHealthResult & WithInstancesHealth(InstanceHealthSummary &&value)
Definition: DescribeEnvironmentHealthResult.h:317
Aws::ElasticBeanstalk::Model::InstanceHealthSummary
Definition: InstanceHealthSummary.h:33
Aws::ElasticBeanstalk::Model::DescribeEnvironmentHealthResult::WithResponseMetadata
DescribeEnvironmentHealthResult & WithResponseMetadata(const ResponseMetadata &value)
Definition: DescribeEnvironmentHealthResult.h:356
Aws::ElasticBeanstalk::Model::DescribeEnvironmentHealthResult::GetRefreshedAt
const Aws::Utils::DateTime & GetRefreshedAt() const
Definition: DescribeEnvironmentHealthResult.h:323
Aws::ElasticBeanstalk::Model::DescribeEnvironmentHealthResult::SetRefreshedAt
void SetRefreshedAt(const Aws::Utils::DateTime &value)
Definition: DescribeEnvironmentHealthResult.h:328