AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
SingleInstanceHealth.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/ApplicationMetrics.h>
13#include <aws/elasticbeanstalk/model/Deployment.h>
14#include <aws/elasticbeanstalk/model/SystemStatus.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Xml {
21class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace ElasticBeanstalk {
25namespace Model {
26
34 public:
35 AWS_ELASTICBEANSTALK_API SingleInstanceHealth() = default;
36 AWS_ELASTICBEANSTALK_API SingleInstanceHealth(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_ELASTICBEANSTALK_API SingleInstanceHealth& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index,
40 const char* locationValue) const;
41 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
44
47 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
48 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
49 template <typename InstanceIdT = Aws::String>
50 void SetInstanceId(InstanceIdT&& value) {
51 m_instanceIdHasBeenSet = true;
52 m_instanceId = std::forward<InstanceIdT>(value);
53 }
54 template <typename InstanceIdT = Aws::String>
55 SingleInstanceHealth& WithInstanceId(InstanceIdT&& value) {
56 SetInstanceId(std::forward<InstanceIdT>(value));
57 return *this;
58 }
60
62
68 inline const Aws::String& GetHealthStatus() const { return m_healthStatus; }
69 inline bool HealthStatusHasBeenSet() const { return m_healthStatusHasBeenSet; }
70 template <typename HealthStatusT = Aws::String>
71 void SetHealthStatus(HealthStatusT&& value) {
72 m_healthStatusHasBeenSet = true;
73 m_healthStatus = std::forward<HealthStatusT>(value);
74 }
75 template <typename HealthStatusT = Aws::String>
76 SingleInstanceHealth& WithHealthStatus(HealthStatusT&& value) {
77 SetHealthStatus(std::forward<HealthStatusT>(value));
78 return *this;
79 }
81
83
89 inline const Aws::String& GetColor() const { return m_color; }
90 inline bool ColorHasBeenSet() const { return m_colorHasBeenSet; }
91 template <typename ColorT = Aws::String>
92 void SetColor(ColorT&& value) {
93 m_colorHasBeenSet = true;
94 m_color = std::forward<ColorT>(value);
95 }
96 template <typename ColorT = Aws::String>
98 SetColor(std::forward<ColorT>(value));
99 return *this;
100 }
102
104
108 inline const Aws::Vector<Aws::String>& GetCauses() const { return m_causes; }
109 inline bool CausesHasBeenSet() const { return m_causesHasBeenSet; }
110 template <typename CausesT = Aws::Vector<Aws::String>>
111 void SetCauses(CausesT&& value) {
112 m_causesHasBeenSet = true;
113 m_causes = std::forward<CausesT>(value);
114 }
115 template <typename CausesT = Aws::Vector<Aws::String>>
117 SetCauses(std::forward<CausesT>(value));
118 return *this;
119 }
120 template <typename CausesT = Aws::String>
121 SingleInstanceHealth& AddCauses(CausesT&& value) {
122 m_causesHasBeenSet = true;
123 m_causes.emplace_back(std::forward<CausesT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::Utils::DateTime& GetLaunchedAt() const { return m_launchedAt; }
133 inline bool LaunchedAtHasBeenSet() const { return m_launchedAtHasBeenSet; }
134 template <typename LaunchedAtT = Aws::Utils::DateTime>
135 void SetLaunchedAt(LaunchedAtT&& value) {
136 m_launchedAtHasBeenSet = true;
137 m_launchedAt = std::forward<LaunchedAtT>(value);
138 }
139 template <typename LaunchedAtT = Aws::Utils::DateTime>
140 SingleInstanceHealth& WithLaunchedAt(LaunchedAtT&& value) {
141 SetLaunchedAt(std::forward<LaunchedAtT>(value));
142 return *this;
143 }
145
147
150 inline const ApplicationMetrics& GetApplicationMetrics() const { return m_applicationMetrics; }
151 inline bool ApplicationMetricsHasBeenSet() const { return m_applicationMetricsHasBeenSet; }
152 template <typename ApplicationMetricsT = ApplicationMetrics>
153 void SetApplicationMetrics(ApplicationMetricsT&& value) {
154 m_applicationMetricsHasBeenSet = true;
155 m_applicationMetrics = std::forward<ApplicationMetricsT>(value);
156 }
157 template <typename ApplicationMetricsT = ApplicationMetrics>
158 SingleInstanceHealth& WithApplicationMetrics(ApplicationMetricsT&& value) {
159 SetApplicationMetrics(std::forward<ApplicationMetricsT>(value));
160 return *this;
161 }
163
165
168 inline const SystemStatus& GetSystem() const { return m_system; }
169 inline bool SystemHasBeenSet() const { return m_systemHasBeenSet; }
170 template <typename SystemT = SystemStatus>
171 void SetSystem(SystemT&& value) {
172 m_systemHasBeenSet = true;
173 m_system = std::forward<SystemT>(value);
174 }
175 template <typename SystemT = SystemStatus>
177 SetSystem(std::forward<SystemT>(value));
178 return *this;
179 }
181
183
186 inline const Deployment& GetDeployment() const { return m_deployment; }
187 inline bool DeploymentHasBeenSet() const { return m_deploymentHasBeenSet; }
188 template <typename DeploymentT = Deployment>
189 void SetDeployment(DeploymentT&& value) {
190 m_deploymentHasBeenSet = true;
191 m_deployment = std::forward<DeploymentT>(value);
192 }
193 template <typename DeploymentT = Deployment>
194 SingleInstanceHealth& WithDeployment(DeploymentT&& value) {
195 SetDeployment(std::forward<DeploymentT>(value));
196 return *this;
197 }
199
201
204 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
205 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
206 template <typename AvailabilityZoneT = Aws::String>
207 void SetAvailabilityZone(AvailabilityZoneT&& value) {
208 m_availabilityZoneHasBeenSet = true;
209 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
210 }
211 template <typename AvailabilityZoneT = Aws::String>
212 SingleInstanceHealth& WithAvailabilityZone(AvailabilityZoneT&& value) {
213 SetAvailabilityZone(std::forward<AvailabilityZoneT>(value));
214 return *this;
215 }
217
219
222 inline const Aws::String& GetInstanceType() const { return m_instanceType; }
223 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
224 template <typename InstanceTypeT = Aws::String>
225 void SetInstanceType(InstanceTypeT&& value) {
226 m_instanceTypeHasBeenSet = true;
227 m_instanceType = std::forward<InstanceTypeT>(value);
228 }
229 template <typename InstanceTypeT = Aws::String>
230 SingleInstanceHealth& WithInstanceType(InstanceTypeT&& value) {
231 SetInstanceType(std::forward<InstanceTypeT>(value));
232 return *this;
233 }
235 private:
236 Aws::String m_instanceId;
237
238 Aws::String m_healthStatus;
239
240 Aws::String m_color;
241
243
244 Aws::Utils::DateTime m_launchedAt{};
245
246 ApplicationMetrics m_applicationMetrics;
247
248 SystemStatus m_system;
249
250 Deployment m_deployment;
251
252 Aws::String m_availabilityZone;
253
254 Aws::String m_instanceType;
255 bool m_instanceIdHasBeenSet = false;
256 bool m_healthStatusHasBeenSet = false;
257 bool m_colorHasBeenSet = false;
258 bool m_causesHasBeenSet = false;
259 bool m_launchedAtHasBeenSet = false;
260 bool m_applicationMetricsHasBeenSet = false;
261 bool m_systemHasBeenSet = false;
262 bool m_deploymentHasBeenSet = false;
263 bool m_availabilityZoneHasBeenSet = false;
264 bool m_instanceTypeHasBeenSet = false;
265};
266
267} // namespace Model
268} // namespace ElasticBeanstalk
269} // namespace Aws
SingleInstanceHealth & WithInstanceType(InstanceTypeT &&value)
void SetApplicationMetrics(ApplicationMetricsT &&value)
AWS_ELASTICBEANSTALK_API SingleInstanceHealth(const Aws::Utils::Xml::XmlNode &xmlNode)
SingleInstanceHealth & WithSystem(SystemT &&value)
SingleInstanceHealth & AddCauses(CausesT &&value)
const Aws::Vector< Aws::String > & GetCauses() const
SingleInstanceHealth & WithInstanceId(InstanceIdT &&value)
SingleInstanceHealth & WithCauses(CausesT &&value)
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &oStream, const char *location) const
SingleInstanceHealth & WithColor(ColorT &&value)
AWS_ELASTICBEANSTALK_API SingleInstanceHealth()=default
const ApplicationMetrics & GetApplicationMetrics() const
SingleInstanceHealth & WithApplicationMetrics(ApplicationMetricsT &&value)
const Aws::Utils::DateTime & GetLaunchedAt() const
SingleInstanceHealth & WithDeployment(DeploymentT &&value)
AWS_ELASTICBEANSTALK_API SingleInstanceHealth & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
SingleInstanceHealth & WithAvailabilityZone(AvailabilityZoneT &&value)
SingleInstanceHealth & WithLaunchedAt(LaunchedAtT &&value)
SingleInstanceHealth & WithHealthStatus(HealthStatusT &&value)
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
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