AWS SDK for C++  0.14.3
AWS SDK for C++
InstanceHealthSummary.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
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Xml
24 {
25  class XmlNode;
26 } // namespace Xml
27 } // namespace Utils
28 namespace ElasticBeanstalk
29 {
30 namespace Model
31 {
32 
40  {
41  public:
44  InstanceHealthSummary& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
45 
46  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
47  void OutputToStream(Aws::OStream& oStream, const char* location) const;
48 
53  inline int GetNoData() const{ return m_noData; }
54 
59  inline void SetNoData(int value) { m_noDataHasBeenSet = true; m_noData = value; }
60 
65  inline InstanceHealthSummary& WithNoData(int value) { SetNoData(value); return *this;}
66 
71  inline int GetUnknown() const{ return m_unknown; }
72 
77  inline void SetUnknown(int value) { m_unknownHasBeenSet = true; m_unknown = value; }
78 
83  inline InstanceHealthSummary& WithUnknown(int value) { SetUnknown(value); return *this;}
84 
89  inline int GetPending() const{ return m_pending; }
90 
95  inline void SetPending(int value) { m_pendingHasBeenSet = true; m_pending = value; }
96 
101  inline InstanceHealthSummary& WithPending(int value) { SetPending(value); return *this;}
102 
107  inline int GetOk() const{ return m_ok; }
108 
113  inline void SetOk(int value) { m_okHasBeenSet = true; m_ok = value; }
114 
119  inline InstanceHealthSummary& WithOk(int value) { SetOk(value); return *this;}
120 
124  inline int GetInfo() const{ return m_info; }
125 
129  inline void SetInfo(int value) { m_infoHasBeenSet = true; m_info = value; }
130 
134  inline InstanceHealthSummary& WithInfo(int value) { SetInfo(value); return *this;}
135 
140  inline int GetWarning() const{ return m_warning; }
141 
146  inline void SetWarning(int value) { m_warningHasBeenSet = true; m_warning = value; }
147 
152  inline InstanceHealthSummary& WithWarning(int value) { SetWarning(value); return *this;}
153 
158  inline int GetDegraded() const{ return m_degraded; }
159 
164  inline void SetDegraded(int value) { m_degradedHasBeenSet = true; m_degraded = value; }
165 
170  inline InstanceHealthSummary& WithDegraded(int value) { SetDegraded(value); return *this;}
171 
176  inline int GetSevere() const{ return m_severe; }
177 
182  inline void SetSevere(int value) { m_severeHasBeenSet = true; m_severe = value; }
183 
188  inline InstanceHealthSummary& WithSevere(int value) { SetSevere(value); return *this;}
189 
190  private:
191  int m_noData;
192  bool m_noDataHasBeenSet;
193  int m_unknown;
194  bool m_unknownHasBeenSet;
195  int m_pending;
196  bool m_pendingHasBeenSet;
197  int m_ok;
198  bool m_okHasBeenSet;
199  int m_info;
200  bool m_infoHasBeenSet;
201  int m_warning;
202  bool m_warningHasBeenSet;
203  int m_degraded;
204  bool m_degradedHasBeenSet;
205  int m_severe;
206  bool m_severeHasBeenSet;
207  };
208 
209 } // namespace Model
210 } // namespace ElasticBeanstalk
211 } // namespace Aws
#define AWS_ELASTICBEANSTALK_API
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
JSON (JavaScript Object Notation).