AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SingleInstanceHealth.h
1
6#pragma once
7#include <aws/elasticbeanstalk/ElasticBeanstalk_EXPORTS.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/core/utils/DateTime.h>
12#include <aws/elasticbeanstalk/model/ApplicationMetrics.h>
13#include <aws/elasticbeanstalk/model/SystemStatus.h>
14#include <aws/elasticbeanstalk/model/Deployment.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Xml
22{
23 class XmlNode;
24} // namespace Xml
25} // namespace Utils
26namespace ElasticBeanstalk
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_ELASTICBEANSTALK_API SingleInstanceHealth();
41 AWS_ELASTICBEANSTALK_API SingleInstanceHealth(const Aws::Utils::Xml::XmlNode& xmlNode);
42 AWS_ELASTICBEANSTALK_API SingleInstanceHealth& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
43
44 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
46
47
49
52 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
53 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
54 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
55 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
56 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
57 inline SingleInstanceHealth& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
58 inline SingleInstanceHealth& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
59 inline SingleInstanceHealth& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
61
63
69 inline const Aws::String& GetHealthStatus() const{ return m_healthStatus; }
70 inline bool HealthStatusHasBeenSet() const { return m_healthStatusHasBeenSet; }
71 inline void SetHealthStatus(const Aws::String& value) { m_healthStatusHasBeenSet = true; m_healthStatus = value; }
72 inline void SetHealthStatus(Aws::String&& value) { m_healthStatusHasBeenSet = true; m_healthStatus = std::move(value); }
73 inline void SetHealthStatus(const char* value) { m_healthStatusHasBeenSet = true; m_healthStatus.assign(value); }
74 inline SingleInstanceHealth& WithHealthStatus(const Aws::String& value) { SetHealthStatus(value); return *this;}
75 inline SingleInstanceHealth& WithHealthStatus(Aws::String&& value) { SetHealthStatus(std::move(value)); return *this;}
76 inline SingleInstanceHealth& WithHealthStatus(const char* value) { SetHealthStatus(value); return *this;}
78
80
86 inline const Aws::String& GetColor() const{ return m_color; }
87 inline bool ColorHasBeenSet() const { return m_colorHasBeenSet; }
88 inline void SetColor(const Aws::String& value) { m_colorHasBeenSet = true; m_color = value; }
89 inline void SetColor(Aws::String&& value) { m_colorHasBeenSet = true; m_color = std::move(value); }
90 inline void SetColor(const char* value) { m_colorHasBeenSet = true; m_color.assign(value); }
91 inline SingleInstanceHealth& WithColor(const Aws::String& value) { SetColor(value); return *this;}
92 inline SingleInstanceHealth& WithColor(Aws::String&& value) { SetColor(std::move(value)); return *this;}
93 inline SingleInstanceHealth& WithColor(const char* value) { SetColor(value); return *this;}
95
97
101 inline const Aws::Vector<Aws::String>& GetCauses() const{ return m_causes; }
102 inline bool CausesHasBeenSet() const { return m_causesHasBeenSet; }
103 inline void SetCauses(const Aws::Vector<Aws::String>& value) { m_causesHasBeenSet = true; m_causes = value; }
104 inline void SetCauses(Aws::Vector<Aws::String>&& value) { m_causesHasBeenSet = true; m_causes = std::move(value); }
105 inline SingleInstanceHealth& WithCauses(const Aws::Vector<Aws::String>& value) { SetCauses(value); return *this;}
106 inline SingleInstanceHealth& WithCauses(Aws::Vector<Aws::String>&& value) { SetCauses(std::move(value)); return *this;}
107 inline SingleInstanceHealth& AddCauses(const Aws::String& value) { m_causesHasBeenSet = true; m_causes.push_back(value); return *this; }
108 inline SingleInstanceHealth& AddCauses(Aws::String&& value) { m_causesHasBeenSet = true; m_causes.push_back(std::move(value)); return *this; }
109 inline SingleInstanceHealth& AddCauses(const char* value) { m_causesHasBeenSet = true; m_causes.push_back(value); return *this; }
111
113
116 inline const Aws::Utils::DateTime& GetLaunchedAt() const{ return m_launchedAt; }
117 inline bool LaunchedAtHasBeenSet() const { return m_launchedAtHasBeenSet; }
118 inline void SetLaunchedAt(const Aws::Utils::DateTime& value) { m_launchedAtHasBeenSet = true; m_launchedAt = value; }
119 inline void SetLaunchedAt(Aws::Utils::DateTime&& value) { m_launchedAtHasBeenSet = true; m_launchedAt = std::move(value); }
120 inline SingleInstanceHealth& WithLaunchedAt(const Aws::Utils::DateTime& value) { SetLaunchedAt(value); return *this;}
121 inline SingleInstanceHealth& WithLaunchedAt(Aws::Utils::DateTime&& value) { SetLaunchedAt(std::move(value)); return *this;}
123
125
128 inline const ApplicationMetrics& GetApplicationMetrics() const{ return m_applicationMetrics; }
129 inline bool ApplicationMetricsHasBeenSet() const { return m_applicationMetricsHasBeenSet; }
130 inline void SetApplicationMetrics(const ApplicationMetrics& value) { m_applicationMetricsHasBeenSet = true; m_applicationMetrics = value; }
131 inline void SetApplicationMetrics(ApplicationMetrics&& value) { m_applicationMetricsHasBeenSet = true; m_applicationMetrics = std::move(value); }
133 inline SingleInstanceHealth& WithApplicationMetrics(ApplicationMetrics&& value) { SetApplicationMetrics(std::move(value)); return *this;}
135
137
140 inline const SystemStatus& GetSystem() const{ return m_system; }
141 inline bool SystemHasBeenSet() const { return m_systemHasBeenSet; }
142 inline void SetSystem(const SystemStatus& value) { m_systemHasBeenSet = true; m_system = value; }
143 inline void SetSystem(SystemStatus&& value) { m_systemHasBeenSet = true; m_system = std::move(value); }
144 inline SingleInstanceHealth& WithSystem(const SystemStatus& value) { SetSystem(value); return *this;}
145 inline SingleInstanceHealth& WithSystem(SystemStatus&& value) { SetSystem(std::move(value)); return *this;}
147
149
152 inline const Deployment& GetDeployment() const{ return m_deployment; }
153 inline bool DeploymentHasBeenSet() const { return m_deploymentHasBeenSet; }
154 inline void SetDeployment(const Deployment& value) { m_deploymentHasBeenSet = true; m_deployment = value; }
155 inline void SetDeployment(Deployment&& value) { m_deploymentHasBeenSet = true; m_deployment = std::move(value); }
156 inline SingleInstanceHealth& WithDeployment(const Deployment& value) { SetDeployment(value); return *this;}
157 inline SingleInstanceHealth& WithDeployment(Deployment&& value) { SetDeployment(std::move(value)); return *this;}
159
161
164 inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
165 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
166 inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
167 inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
168 inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
169 inline SingleInstanceHealth& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
170 inline SingleInstanceHealth& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
171 inline SingleInstanceHealth& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
173
175
178 inline const Aws::String& GetInstanceType() const{ return m_instanceType; }
179 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
180 inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
181 inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
182 inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); }
183 inline SingleInstanceHealth& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;}
184 inline SingleInstanceHealth& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
185 inline SingleInstanceHealth& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
187 private:
188
189 Aws::String m_instanceId;
190 bool m_instanceIdHasBeenSet = false;
191
192 Aws::String m_healthStatus;
193 bool m_healthStatusHasBeenSet = false;
194
195 Aws::String m_color;
196 bool m_colorHasBeenSet = false;
197
199 bool m_causesHasBeenSet = false;
200
201 Aws::Utils::DateTime m_launchedAt;
202 bool m_launchedAtHasBeenSet = false;
203
204 ApplicationMetrics m_applicationMetrics;
205 bool m_applicationMetricsHasBeenSet = false;
206
207 SystemStatus m_system;
208 bool m_systemHasBeenSet = false;
209
210 Deployment m_deployment;
211 bool m_deploymentHasBeenSet = false;
212
213 Aws::String m_availabilityZone;
214 bool m_availabilityZoneHasBeenSet = false;
215
216 Aws::String m_instanceType;
217 bool m_instanceTypeHasBeenSet = false;
218 };
219
220} // namespace Model
221} // namespace ElasticBeanstalk
222} // namespace Aws
SingleInstanceHealth & WithDeployment(Deployment &&value)
void SetCauses(const Aws::Vector< Aws::String > &value)
SingleInstanceHealth & WithApplicationMetrics(ApplicationMetrics &&value)
AWS_ELASTICBEANSTALK_API SingleInstanceHealth(const Aws::Utils::Xml::XmlNode &xmlNode)
SingleInstanceHealth & WithCauses(Aws::Vector< Aws::String > &&value)
SingleInstanceHealth & AddCauses(const Aws::String &value)
SingleInstanceHealth & WithColor(Aws::String &&value)
SingleInstanceHealth & WithDeployment(const Deployment &value)
const Aws::Vector< Aws::String > & GetCauses() const
SingleInstanceHealth & WithInstanceId(Aws::String &&value)
SingleInstanceHealth & WithColor(const Aws::String &value)
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &oStream, const char *location) const
SingleInstanceHealth & WithCauses(const Aws::Vector< Aws::String > &value)
void SetApplicationMetrics(const ApplicationMetrics &value)
SingleInstanceHealth & WithSystem(SystemStatus &&value)
SingleInstanceHealth & WithAvailabilityZone(Aws::String &&value)
SingleInstanceHealth & WithLaunchedAt(Aws::Utils::DateTime &&value)
SingleInstanceHealth & WithSystem(const SystemStatus &value)
void SetLaunchedAt(const Aws::Utils::DateTime &value)
const ApplicationMetrics & GetApplicationMetrics() const
SingleInstanceHealth & WithInstanceType(Aws::String &&value)
SingleInstanceHealth & WithHealthStatus(const Aws::String &value)
SingleInstanceHealth & WithHealthStatus(const char *value)
const Aws::Utils::DateTime & GetLaunchedAt() const
SingleInstanceHealth & WithInstanceType(const char *value)
SingleInstanceHealth & WithAvailabilityZone(const Aws::String &value)
void SetCauses(Aws::Vector< Aws::String > &&value)
SingleInstanceHealth & WithHealthStatus(Aws::String &&value)
SingleInstanceHealth & WithLaunchedAt(const Aws::Utils::DateTime &value)
SingleInstanceHealth & AddCauses(Aws::String &&value)
SingleInstanceHealth & WithAvailabilityZone(const char *value)
SingleInstanceHealth & WithInstanceId(const char *value)
SingleInstanceHealth & WithColor(const char *value)
AWS_ELASTICBEANSTALK_API SingleInstanceHealth & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
SingleInstanceHealth & AddCauses(const char *value)
SingleInstanceHealth & WithInstanceType(const Aws::String &value)
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
SingleInstanceHealth & WithApplicationMetrics(const ApplicationMetrics &value)
SingleInstanceHealth & WithInstanceId(const Aws::String &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