AWS SDK for C++  0.14.3
AWS SDK for C++
SingleInstanceHealth.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
24 
25 namespace Aws
26 {
27 namespace Utils
28 {
29 namespace Xml
30 {
31  class XmlNode;
32 } // namespace Xml
33 } // namespace Utils
34 namespace ElasticBeanstalk
35 {
36 namespace Model
37 {
38 
45  {
46  public:
49  SingleInstanceHealth& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
50 
51  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
52  void OutputToStream(Aws::OStream& oStream, const char* location) const;
53 
57  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
58 
62  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
63 
67  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
68 
72  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
73 
77  inline SingleInstanceHealth& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
78 
82  inline SingleInstanceHealth& WithInstanceId(Aws::String&& value) { SetInstanceId(value); return *this;}
83 
87  inline SingleInstanceHealth& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
88 
95  inline const Aws::String& GetHealthStatus() const{ return m_healthStatus; }
96 
103  inline void SetHealthStatus(const Aws::String& value) { m_healthStatusHasBeenSet = true; m_healthStatus = value; }
104 
111  inline void SetHealthStatus(Aws::String&& value) { m_healthStatusHasBeenSet = true; m_healthStatus = value; }
112 
119  inline void SetHealthStatus(const char* value) { m_healthStatusHasBeenSet = true; m_healthStatus.assign(value); }
120 
127  inline SingleInstanceHealth& WithHealthStatus(const Aws::String& value) { SetHealthStatus(value); return *this;}
128 
135  inline SingleInstanceHealth& WithHealthStatus(Aws::String&& value) { SetHealthStatus(value); return *this;}
136 
143  inline SingleInstanceHealth& WithHealthStatus(const char* value) { SetHealthStatus(value); return *this;}
144 
151  inline const Aws::String& GetColor() const{ return m_color; }
152 
159  inline void SetColor(const Aws::String& value) { m_colorHasBeenSet = true; m_color = value; }
160 
167  inline void SetColor(Aws::String&& value) { m_colorHasBeenSet = true; m_color = value; }
168 
175  inline void SetColor(const char* value) { m_colorHasBeenSet = true; m_color.assign(value); }
176 
183  inline SingleInstanceHealth& WithColor(const Aws::String& value) { SetColor(value); return *this;}
184 
191  inline SingleInstanceHealth& WithColor(Aws::String&& value) { SetColor(value); return *this;}
192 
199  inline SingleInstanceHealth& WithColor(const char* value) { SetColor(value); return *this;}
200 
205  inline const Aws::Vector<Aws::String>& GetCauses() const{ return m_causes; }
206 
211  inline void SetCauses(const Aws::Vector<Aws::String>& value) { m_causesHasBeenSet = true; m_causes = value; }
212 
217  inline void SetCauses(Aws::Vector<Aws::String>&& value) { m_causesHasBeenSet = true; m_causes = value; }
218 
223  inline SingleInstanceHealth& WithCauses(const Aws::Vector<Aws::String>& value) { SetCauses(value); return *this;}
224 
229  inline SingleInstanceHealth& WithCauses(Aws::Vector<Aws::String>&& value) { SetCauses(value); return *this;}
230 
235  inline SingleInstanceHealth& AddCauses(const Aws::String& value) { m_causesHasBeenSet = true; m_causes.push_back(value); return *this; }
236 
241  inline SingleInstanceHealth& AddCauses(Aws::String&& value) { m_causesHasBeenSet = true; m_causes.push_back(value); return *this; }
242 
247  inline SingleInstanceHealth& AddCauses(const char* value) { m_causesHasBeenSet = true; m_causes.push_back(value); return *this; }
248 
252  inline const Aws::Utils::DateTime& GetLaunchedAt() const{ return m_launchedAt; }
253 
257  inline void SetLaunchedAt(const Aws::Utils::DateTime& value) { m_launchedAtHasBeenSet = true; m_launchedAt = value; }
258 
262  inline void SetLaunchedAt(Aws::Utils::DateTime&& value) { m_launchedAtHasBeenSet = true; m_launchedAt = value; }
263 
267  inline SingleInstanceHealth& WithLaunchedAt(const Aws::Utils::DateTime& value) { SetLaunchedAt(value); return *this;}
268 
272  inline SingleInstanceHealth& WithLaunchedAt(Aws::Utils::DateTime&& value) { SetLaunchedAt(value); return *this;}
273 
274 
275  inline const ApplicationMetrics& GetApplicationMetrics() const{ return m_applicationMetrics; }
276 
277 
278  inline void SetApplicationMetrics(const ApplicationMetrics& value) { m_applicationMetricsHasBeenSet = true; m_applicationMetrics = value; }
279 
280 
281  inline void SetApplicationMetrics(ApplicationMetrics&& value) { m_applicationMetricsHasBeenSet = true; m_applicationMetrics = value; }
282 
283 
284  inline SingleInstanceHealth& WithApplicationMetrics(const ApplicationMetrics& value) { SetApplicationMetrics(value); return *this;}
285 
286 
287  inline SingleInstanceHealth& WithApplicationMetrics(ApplicationMetrics&& value) { SetApplicationMetrics(value); return *this;}
288 
289 
290  inline const SystemStatus& GetSystem() const{ return m_system; }
291 
292 
293  inline void SetSystem(const SystemStatus& value) { m_systemHasBeenSet = true; m_system = value; }
294 
295 
296  inline void SetSystem(SystemStatus&& value) { m_systemHasBeenSet = true; m_system = value; }
297 
298 
299  inline SingleInstanceHealth& WithSystem(const SystemStatus& value) { SetSystem(value); return *this;}
300 
301 
302  inline SingleInstanceHealth& WithSystem(SystemStatus&& value) { SetSystem(value); return *this;}
303 
307  inline const Deployment& GetDeployment() const{ return m_deployment; }
308 
312  inline void SetDeployment(const Deployment& value) { m_deploymentHasBeenSet = true; m_deployment = value; }
313 
317  inline void SetDeployment(Deployment&& value) { m_deploymentHasBeenSet = true; m_deployment = value; }
318 
322  inline SingleInstanceHealth& WithDeployment(const Deployment& value) { SetDeployment(value); return *this;}
323 
327  inline SingleInstanceHealth& WithDeployment(Deployment&& value) { SetDeployment(value); return *this;}
328 
332  inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
333 
337  inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
338 
342  inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
343 
347  inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
348 
352  inline SingleInstanceHealth& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
353 
357  inline SingleInstanceHealth& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(value); return *this;}
358 
362  inline SingleInstanceHealth& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
363 
367  inline const Aws::String& GetInstanceType() const{ return m_instanceType; }
368 
372  inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
373 
377  inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
378 
382  inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); }
383 
387  inline SingleInstanceHealth& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;}
388 
392  inline SingleInstanceHealth& WithInstanceType(Aws::String&& value) { SetInstanceType(value); return *this;}
393 
397  inline SingleInstanceHealth& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
398 
399  private:
400  Aws::String m_instanceId;
401  bool m_instanceIdHasBeenSet;
402  Aws::String m_healthStatus;
403  bool m_healthStatusHasBeenSet;
404  Aws::String m_color;
405  bool m_colorHasBeenSet;
406  Aws::Vector<Aws::String> m_causes;
407  bool m_causesHasBeenSet;
408  Aws::Utils::DateTime m_launchedAt;
409  bool m_launchedAtHasBeenSet;
410  ApplicationMetrics m_applicationMetrics;
411  bool m_applicationMetricsHasBeenSet;
412  SystemStatus m_system;
413  bool m_systemHasBeenSet;
414  Deployment m_deployment;
415  bool m_deploymentHasBeenSet;
416  Aws::String m_availabilityZone;
417  bool m_availabilityZoneHasBeenSet;
418  Aws::String m_instanceType;
419  bool m_instanceTypeHasBeenSet;
420  };
421 
422 } // namespace Model
423 } // namespace ElasticBeanstalk
424 } // namespace Aws
SingleInstanceHealth & WithSystem(SystemStatus &&value)
SingleInstanceHealth & WithInstanceType(Aws::String &&value)
void SetLaunchedAt(const Aws::Utils::DateTime &value)
SingleInstanceHealth & WithInstanceType(const char *value)
SingleInstanceHealth & WithAvailabilityZone(Aws::String &&value)
#define AWS_ELASTICBEANSTALK_API
SingleInstanceHealth & WithColor(const char *value)
SingleInstanceHealth & WithDeployment(const Deployment &value)
void SetCauses(const Aws::Vector< Aws::String > &value)
SingleInstanceHealth & WithInstanceId(const Aws::String &value)
SingleInstanceHealth & WithCauses(Aws::Vector< Aws::String > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
SingleInstanceHealth & AddCauses(Aws::String &&value)
SingleInstanceHealth & WithAvailabilityZone(const Aws::String &value)
SingleInstanceHealth & WithInstanceId(Aws::String &&value)
SingleInstanceHealth & AddCauses(const char *value)
const Aws::Utils::DateTime & GetLaunchedAt() const
void SetApplicationMetrics(const ApplicationMetrics &value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
SingleInstanceHealth & WithInstanceId(const char *value)
void SetCauses(Aws::Vector< Aws::String > &&value)
SingleInstanceHealth & WithDeployment(Deployment &&value)
SingleInstanceHealth & WithLaunchedAt(const Aws::Utils::DateTime &value)
SingleInstanceHealth & WithCauses(const Aws::Vector< Aws::String > &value)
SingleInstanceHealth & WithApplicationMetrics(const ApplicationMetrics &value)
SingleInstanceHealth & WithSystem(const SystemStatus &value)
SingleInstanceHealth & WithAvailabilityZone(const char *value)
SingleInstanceHealth & WithHealthStatus(const Aws::String &value)
SingleInstanceHealth & AddCauses(const Aws::String &value)
SingleInstanceHealth & WithInstanceType(const Aws::String &value)
SingleInstanceHealth & WithHealthStatus(Aws::String &&value)
const Aws::Vector< Aws::String > & GetCauses() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const ApplicationMetrics & GetApplicationMetrics() const
SingleInstanceHealth & WithHealthStatus(const char *value)
SingleInstanceHealth & WithLaunchedAt(Aws::Utils::DateTime &&value)
SingleInstanceHealth & WithApplicationMetrics(ApplicationMetrics &&value)
SingleInstanceHealth & WithColor(Aws::String &&value)
SingleInstanceHealth & WithColor(const Aws::String &value)
JSON (JavaScript Object Notation).
void SetApplicationMetrics(ApplicationMetrics &&value)