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>
24namespace ElasticBeanstalk {
40 const char* locationValue)
const;
49 template <
typename InstanceIdT = Aws::String>
51 m_instanceIdHasBeenSet =
true;
52 m_instanceId = std::forward<InstanceIdT>(value);
54 template <
typename InstanceIdT = Aws::String>
70 template <
typename HealthStatusT = Aws::String>
72 m_healthStatusHasBeenSet =
true;
73 m_healthStatus = std::forward<HealthStatusT>(value);
75 template <
typename HealthStatusT = Aws::String>
91 template <
typename ColorT = Aws::String>
93 m_colorHasBeenSet =
true;
94 m_color = std::forward<ColorT>(value);
96 template <
typename ColorT = Aws::String>
98 SetColor(std::forward<ColorT>(value));
110 template <
typename CausesT = Aws::Vector<Aws::String>>
112 m_causesHasBeenSet =
true;
113 m_causes = std::forward<CausesT>(value);
115 template <
typename CausesT = Aws::Vector<Aws::String>>
120 template <
typename CausesT = Aws::String>
122 m_causesHasBeenSet =
true;
123 m_causes.emplace_back(std::forward<CausesT>(value));
134 template <
typename LaunchedAtT = Aws::Utils::DateTime>
136 m_launchedAtHasBeenSet =
true;
137 m_launchedAt = std::forward<LaunchedAtT>(value);
139 template <
typename LaunchedAtT = Aws::Utils::DateTime>
152 template <
typename ApplicationMetricsT = ApplicationMetrics>
154 m_applicationMetricsHasBeenSet =
true;
155 m_applicationMetrics = std::forward<ApplicationMetricsT>(value);
157 template <
typename ApplicationMetricsT = ApplicationMetrics>
170 template <
typename SystemT = SystemStatus>
172 m_systemHasBeenSet =
true;
173 m_system = std::forward<SystemT>(value);
175 template <
typename SystemT = SystemStatus>
188 template <
typename DeploymentT = Deployment>
190 m_deploymentHasBeenSet =
true;
191 m_deployment = std::forward<DeploymentT>(value);
193 template <
typename DeploymentT = Deployment>
206 template <
typename AvailabilityZoneT = Aws::String>
208 m_availabilityZoneHasBeenSet =
true;
209 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
211 template <
typename AvailabilityZoneT = Aws::String>
224 template <
typename InstanceTypeT = Aws::String>
226 m_instanceTypeHasBeenSet =
true;
227 m_instanceType = std::forward<InstanceTypeT>(value);
229 template <
typename InstanceTypeT = Aws::String>
246 ApplicationMetrics m_applicationMetrics;
248 SystemStatus m_system;
250 Deployment m_deployment;
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;
bool SystemHasBeenSet() const
SingleInstanceHealth & WithInstanceType(InstanceTypeT &&value)
void SetApplicationMetrics(ApplicationMetricsT &&value)
AWS_ELASTICBEANSTALK_API SingleInstanceHealth(const Aws::Utils::Xml::XmlNode &xmlNode)
bool LaunchedAtHasBeenSet() const
const Aws::String & GetAvailabilityZone() const
SingleInstanceHealth & WithSystem(SystemT &&value)
bool HealthStatusHasBeenSet() const
SingleInstanceHealth & AddCauses(CausesT &&value)
const Aws::String & GetColor() const
const Aws::Vector< Aws::String > & GetCauses() const
const Deployment & GetDeployment() const
void SetCauses(CausesT &&value)
SingleInstanceHealth & WithInstanceId(InstanceIdT &&value)
bool AvailabilityZoneHasBeenSet() const
SingleInstanceHealth & WithCauses(CausesT &&value)
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &oStream, const char *location) const
bool InstanceIdHasBeenSet() const
bool InstanceTypeHasBeenSet() const
const SystemStatus & GetSystem() const
SingleInstanceHealth & WithColor(ColorT &&value)
const Aws::String & GetHealthStatus() const
AWS_ELASTICBEANSTALK_API SingleInstanceHealth()=default
bool ColorHasBeenSet() const
void SetDeployment(DeploymentT &&value)
const Aws::String & GetInstanceId() const
const ApplicationMetrics & GetApplicationMetrics() const
SingleInstanceHealth & WithApplicationMetrics(ApplicationMetricsT &&value)
bool ApplicationMetricsHasBeenSet() const
const Aws::Utils::DateTime & GetLaunchedAt() const
SingleInstanceHealth & WithDeployment(DeploymentT &&value)
bool CausesHasBeenSet() const
void SetInstanceId(InstanceIdT &&value)
void SetColor(ColorT &&value)
bool DeploymentHasBeenSet() const
void SetInstanceType(InstanceTypeT &&value)
AWS_ELASTICBEANSTALK_API SingleInstanceHealth & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetInstanceType() const
void SetSystem(SystemT &&value)
SingleInstanceHealth & WithAvailabilityZone(AvailabilityZoneT &&value)
void SetAvailabilityZone(AvailabilityZoneT &&value)
SingleInstanceHealth & WithLaunchedAt(LaunchedAtT &&value)
void SetHealthStatus(HealthStatusT &&value)
SingleInstanceHealth & WithHealthStatus(HealthStatusT &&value)
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetLaunchedAt(LaunchedAtT &&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