AWS SDK for C++  0.12.9
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 long GetNoData() const{ return m_noData; }
54 
59  inline void SetNoData(long value) { m_noDataHasBeenSet = true; m_noData = value; }
60 
65  inline InstanceHealthSummary& WithNoData(long value) { SetNoData(value); return *this;}
66 
71  inline long GetUnknown() const{ return m_unknown; }
72 
77  inline void SetUnknown(long value) { m_unknownHasBeenSet = true; m_unknown = value; }
78 
83  inline InstanceHealthSummary& WithUnknown(long value) { SetUnknown(value); return *this;}
84 
89  inline long GetPending() const{ return m_pending; }
90 
95  inline void SetPending(long value) { m_pendingHasBeenSet = true; m_pending = value; }
96 
101  inline InstanceHealthSummary& WithPending(long value) { SetPending(value); return *this;}
102 
107  inline long GetOk() const{ return m_ok; }
108 
113  inline void SetOk(long value) { m_okHasBeenSet = true; m_ok = value; }
114 
119  inline InstanceHealthSummary& WithOk(long value) { SetOk(value); return *this;}
120 
124  inline long GetInfo() const{ return m_info; }
125 
129  inline void SetInfo(long value) { m_infoHasBeenSet = true; m_info = value; }
130 
134  inline InstanceHealthSummary& WithInfo(long value) { SetInfo(value); return *this;}
135 
140  inline long GetWarning() const{ return m_warning; }
141 
146  inline void SetWarning(long value) { m_warningHasBeenSet = true; m_warning = value; }
147 
152  inline InstanceHealthSummary& WithWarning(long value) { SetWarning(value); return *this;}
153 
158  inline long GetDegraded() const{ return m_degraded; }
159 
164  inline void SetDegraded(long value) { m_degradedHasBeenSet = true; m_degraded = value; }
165 
170  inline InstanceHealthSummary& WithDegraded(long value) { SetDegraded(value); return *this;}
171 
176  inline long GetSevere() const{ return m_severe; }
177 
182  inline void SetSevere(long value) { m_severeHasBeenSet = true; m_severe = value; }
183 
188  inline InstanceHealthSummary& WithSevere(long value) { SetSevere(value); return *this;}
189 
190  private:
191  long m_noData;
192  bool m_noDataHasBeenSet;
193  long m_unknown;
194  bool m_unknownHasBeenSet;
195  long m_pending;
196  bool m_pendingHasBeenSet;
197  long m_ok;
198  bool m_okHasBeenSet;
199  long m_info;
200  bool m_infoHasBeenSet;
201  long m_warning;
202  bool m_warningHasBeenSet;
203  long m_degraded;
204  bool m_degradedHasBeenSet;
205  long 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).