AWS SDK for C++  0.12.9
AWS SDK for C++
CPUUtilization.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  CPUUtilization& 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 double GetUser() const{ return m_user; }
54 
59  inline void SetUser(double value) { m_userHasBeenSet = true; m_user = value; }
60 
65  inline CPUUtilization& WithUser(double value) { SetUser(value); return *this;}
66 
71  inline double GetNice() const{ return m_nice; }
72 
77  inline void SetNice(double value) { m_niceHasBeenSet = true; m_nice = value; }
78 
83  inline CPUUtilization& WithNice(double value) { SetNice(value); return *this;}
84 
89  inline double GetSystem() const{ return m_system; }
90 
95  inline void SetSystem(double value) { m_systemHasBeenSet = true; m_system = value; }
96 
101  inline CPUUtilization& WithSystem(double value) { SetSystem(value); return *this;}
102 
107  inline double GetIdle() const{ return m_idle; }
108 
113  inline void SetIdle(double value) { m_idleHasBeenSet = true; m_idle = value; }
114 
119  inline CPUUtilization& WithIdle(double value) { SetIdle(value); return *this;}
120 
125  inline double GetIOWait() const{ return m_iOWait; }
126 
131  inline void SetIOWait(double value) { m_iOWaitHasBeenSet = true; m_iOWait = value; }
132 
137  inline CPUUtilization& WithIOWait(double value) { SetIOWait(value); return *this;}
138 
143  inline double GetIRQ() const{ return m_iRQ; }
144 
149  inline void SetIRQ(double value) { m_iRQHasBeenSet = true; m_iRQ = value; }
150 
155  inline CPUUtilization& WithIRQ(double value) { SetIRQ(value); return *this;}
156 
161  inline double GetSoftIRQ() const{ return m_softIRQ; }
162 
167  inline void SetSoftIRQ(double value) { m_softIRQHasBeenSet = true; m_softIRQ = value; }
168 
173  inline CPUUtilization& WithSoftIRQ(double value) { SetSoftIRQ(value); return *this;}
174 
175  private:
176  double m_user;
177  bool m_userHasBeenSet;
178  double m_nice;
179  bool m_niceHasBeenSet;
180  double m_system;
181  bool m_systemHasBeenSet;
182  double m_idle;
183  bool m_idleHasBeenSet;
184  double m_iOWait;
185  bool m_iOWaitHasBeenSet;
186  double m_iRQ;
187  bool m_iRQHasBeenSet;
188  double m_softIRQ;
189  bool m_softIRQHasBeenSet;
190  };
191 
192 } // namespace Model
193 } // namespace ElasticBeanstalk
194 } // namespace Aws
#define AWS_ELASTICBEANSTALK_API
CPUUtilization & WithSoftIRQ(double value)
CPUUtilization & WithIRQ(double value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
CPUUtilization & WithIdle(double value)
CPUUtilization & WithIOWait(double value)
CPUUtilization & WithSystem(double value)
CPUUtilization & WithNice(double value)
CPUUtilization & WithUser(double value)
JSON (JavaScript Object Notation).