AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename InstanceIdT = Aws::String>
55 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
56 template<typename InstanceIdT = Aws::String>
57 SingleInstanceHealth& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
59
61
67 inline const Aws::String& GetHealthStatus() const { return m_healthStatus; }
68 inline bool HealthStatusHasBeenSet() const { return m_healthStatusHasBeenSet; }
69 template<typename HealthStatusT = Aws::String>
70 void SetHealthStatus(HealthStatusT&& value) { m_healthStatusHasBeenSet = true; m_healthStatus = std::forward<HealthStatusT>(value); }
71 template<typename HealthStatusT = Aws::String>
72 SingleInstanceHealth& WithHealthStatus(HealthStatusT&& value) { SetHealthStatus(std::forward<HealthStatusT>(value)); return *this;}
74
76
82 inline const Aws::String& GetColor() const { return m_color; }
83 inline bool ColorHasBeenSet() const { return m_colorHasBeenSet; }
84 template<typename ColorT = Aws::String>
85 void SetColor(ColorT&& value) { m_colorHasBeenSet = true; m_color = std::forward<ColorT>(value); }
86 template<typename ColorT = Aws::String>
87 SingleInstanceHealth& WithColor(ColorT&& value) { SetColor(std::forward<ColorT>(value)); return *this;}
89
91
95 inline const Aws::Vector<Aws::String>& GetCauses() const { return m_causes; }
96 inline bool CausesHasBeenSet() const { return m_causesHasBeenSet; }
97 template<typename CausesT = Aws::Vector<Aws::String>>
98 void SetCauses(CausesT&& value) { m_causesHasBeenSet = true; m_causes = std::forward<CausesT>(value); }
99 template<typename CausesT = Aws::Vector<Aws::String>>
100 SingleInstanceHealth& WithCauses(CausesT&& value) { SetCauses(std::forward<CausesT>(value)); return *this;}
101 template<typename CausesT = Aws::String>
102 SingleInstanceHealth& AddCauses(CausesT&& value) { m_causesHasBeenSet = true; m_causes.emplace_back(std::forward<CausesT>(value)); return *this; }
104
106
109 inline const Aws::Utils::DateTime& GetLaunchedAt() const { return m_launchedAt; }
110 inline bool LaunchedAtHasBeenSet() const { return m_launchedAtHasBeenSet; }
111 template<typename LaunchedAtT = Aws::Utils::DateTime>
112 void SetLaunchedAt(LaunchedAtT&& value) { m_launchedAtHasBeenSet = true; m_launchedAt = std::forward<LaunchedAtT>(value); }
113 template<typename LaunchedAtT = Aws::Utils::DateTime>
114 SingleInstanceHealth& WithLaunchedAt(LaunchedAtT&& value) { SetLaunchedAt(std::forward<LaunchedAtT>(value)); return *this;}
116
118
121 inline const ApplicationMetrics& GetApplicationMetrics() const { return m_applicationMetrics; }
122 inline bool ApplicationMetricsHasBeenSet() const { return m_applicationMetricsHasBeenSet; }
123 template<typename ApplicationMetricsT = ApplicationMetrics>
124 void SetApplicationMetrics(ApplicationMetricsT&& value) { m_applicationMetricsHasBeenSet = true; m_applicationMetrics = std::forward<ApplicationMetricsT>(value); }
125 template<typename ApplicationMetricsT = ApplicationMetrics>
126 SingleInstanceHealth& WithApplicationMetrics(ApplicationMetricsT&& value) { SetApplicationMetrics(std::forward<ApplicationMetricsT>(value)); return *this;}
128
130
133 inline const SystemStatus& GetSystem() const { return m_system; }
134 inline bool SystemHasBeenSet() const { return m_systemHasBeenSet; }
135 template<typename SystemT = SystemStatus>
136 void SetSystem(SystemT&& value) { m_systemHasBeenSet = true; m_system = std::forward<SystemT>(value); }
137 template<typename SystemT = SystemStatus>
138 SingleInstanceHealth& WithSystem(SystemT&& value) { SetSystem(std::forward<SystemT>(value)); return *this;}
140
142
145 inline const Deployment& GetDeployment() const { return m_deployment; }
146 inline bool DeploymentHasBeenSet() const { return m_deploymentHasBeenSet; }
147 template<typename DeploymentT = Deployment>
148 void SetDeployment(DeploymentT&& value) { m_deploymentHasBeenSet = true; m_deployment = std::forward<DeploymentT>(value); }
149 template<typename DeploymentT = Deployment>
150 SingleInstanceHealth& WithDeployment(DeploymentT&& value) { SetDeployment(std::forward<DeploymentT>(value)); return *this;}
152
154
157 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
158 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
159 template<typename AvailabilityZoneT = Aws::String>
160 void SetAvailabilityZone(AvailabilityZoneT&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::forward<AvailabilityZoneT>(value); }
161 template<typename AvailabilityZoneT = Aws::String>
162 SingleInstanceHealth& WithAvailabilityZone(AvailabilityZoneT&& value) { SetAvailabilityZone(std::forward<AvailabilityZoneT>(value)); return *this;}
164
166
169 inline const Aws::String& GetInstanceType() const { return m_instanceType; }
170 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
171 template<typename InstanceTypeT = Aws::String>
172 void SetInstanceType(InstanceTypeT&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::forward<InstanceTypeT>(value); }
173 template<typename InstanceTypeT = Aws::String>
174 SingleInstanceHealth& WithInstanceType(InstanceTypeT&& value) { SetInstanceType(std::forward<InstanceTypeT>(value)); return *this;}
176 private:
177
178 Aws::String m_instanceId;
179 bool m_instanceIdHasBeenSet = false;
180
181 Aws::String m_healthStatus;
182 bool m_healthStatusHasBeenSet = false;
183
184 Aws::String m_color;
185 bool m_colorHasBeenSet = false;
186
188 bool m_causesHasBeenSet = false;
189
190 Aws::Utils::DateTime m_launchedAt{};
191 bool m_launchedAtHasBeenSet = false;
192
193 ApplicationMetrics m_applicationMetrics;
194 bool m_applicationMetricsHasBeenSet = false;
195
196 SystemStatus m_system;
197 bool m_systemHasBeenSet = false;
198
199 Deployment m_deployment;
200 bool m_deploymentHasBeenSet = false;
201
202 Aws::String m_availabilityZone;
203 bool m_availabilityZoneHasBeenSet = false;
204
205 Aws::String m_instanceType;
206 bool m_instanceTypeHasBeenSet = false;
207 };
208
209} // namespace Model
210} // namespace ElasticBeanstalk
211} // 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