AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
CPUUtilization.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/elasticbeanstalk/ElasticBeanstalk_EXPORTS.h>
9
10namespace Aws {
11namespace Utils {
12namespace Xml {
13class XmlNode;
14} // namespace Xml
15} // namespace Utils
16namespace ElasticBeanstalk {
17namespace Model {
18
25 public:
26 AWS_ELASTICBEANSTALK_API CPUUtilization() = default;
27 AWS_ELASTICBEANSTALK_API CPUUtilization(const Aws::Utils::Xml::XmlNode& xmlNode);
28 AWS_ELASTICBEANSTALK_API CPUUtilization& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
29
30 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index,
31 const char* locationValue) const;
32 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
33
35
39 inline double GetUser() const { return m_user; }
40 inline bool UserHasBeenSet() const { return m_userHasBeenSet; }
41 inline void SetUser(double value) {
42 m_userHasBeenSet = true;
43 m_user = value;
44 }
45 inline CPUUtilization& WithUser(double value) {
46 SetUser(value);
47 return *this;
48 }
50
52
56 inline double GetNice() const { return m_nice; }
57 inline bool NiceHasBeenSet() const { return m_niceHasBeenSet; }
58 inline void SetNice(double value) {
59 m_niceHasBeenSet = true;
60 m_nice = value;
61 }
62 inline CPUUtilization& WithNice(double value) {
63 SetNice(value);
64 return *this;
65 }
67
69
73 inline double GetSystem() const { return m_system; }
74 inline bool SystemHasBeenSet() const { return m_systemHasBeenSet; }
75 inline void SetSystem(double value) {
76 m_systemHasBeenSet = true;
77 m_system = value;
78 }
79 inline CPUUtilization& WithSystem(double value) {
80 SetSystem(value);
81 return *this;
82 }
84
86
90 inline double GetIdle() const { return m_idle; }
91 inline bool IdleHasBeenSet() const { return m_idleHasBeenSet; }
92 inline void SetIdle(double value) {
93 m_idleHasBeenSet = true;
94 m_idle = value;
95 }
96 inline CPUUtilization& WithIdle(double value) {
97 SetIdle(value);
98 return *this;
99 }
101
103
107 inline double GetIOWait() const { return m_iOWait; }
108 inline bool IOWaitHasBeenSet() const { return m_iOWaitHasBeenSet; }
109 inline void SetIOWait(double value) {
110 m_iOWaitHasBeenSet = true;
111 m_iOWait = value;
112 }
113 inline CPUUtilization& WithIOWait(double value) {
114 SetIOWait(value);
115 return *this;
116 }
118
120
124 inline double GetIRQ() const { return m_iRQ; }
125 inline bool IRQHasBeenSet() const { return m_iRQHasBeenSet; }
126 inline void SetIRQ(double value) {
127 m_iRQHasBeenSet = true;
128 m_iRQ = value;
129 }
130 inline CPUUtilization& WithIRQ(double value) {
131 SetIRQ(value);
132 return *this;
133 }
135
137
141 inline double GetSoftIRQ() const { return m_softIRQ; }
142 inline bool SoftIRQHasBeenSet() const { return m_softIRQHasBeenSet; }
143 inline void SetSoftIRQ(double value) {
144 m_softIRQHasBeenSet = true;
145 m_softIRQ = value;
146 }
147 inline CPUUtilization& WithSoftIRQ(double value) {
148 SetSoftIRQ(value);
149 return *this;
150 }
152
154
158 inline double GetPrivileged() const { return m_privileged; }
159 inline bool PrivilegedHasBeenSet() const { return m_privilegedHasBeenSet; }
160 inline void SetPrivileged(double value) {
161 m_privilegedHasBeenSet = true;
162 m_privileged = value;
163 }
164 inline CPUUtilization& WithPrivileged(double value) {
165 SetPrivileged(value);
166 return *this;
167 }
169 private:
170 double m_user{0.0};
171
172 double m_nice{0.0};
173
174 double m_system{0.0};
175
176 double m_idle{0.0};
177
178 double m_iOWait{0.0};
179
180 double m_iRQ{0.0};
181
182 double m_softIRQ{0.0};
183
184 double m_privileged{0.0};
185 bool m_userHasBeenSet = false;
186 bool m_niceHasBeenSet = false;
187 bool m_systemHasBeenSet = false;
188 bool m_idleHasBeenSet = false;
189 bool m_iOWaitHasBeenSet = false;
190 bool m_iRQHasBeenSet = false;
191 bool m_softIRQHasBeenSet = false;
192 bool m_privilegedHasBeenSet = false;
193};
194
195} // namespace Model
196} // namespace ElasticBeanstalk
197} // namespace Aws
CPUUtilization & WithPrivileged(double value)
CPUUtilization & WithSystem(double value)
CPUUtilization & WithNice(double value)
AWS_ELASTICBEANSTALK_API CPUUtilization()=default
CPUUtilization & WithIRQ(double value)
CPUUtilization & WithIOWait(double value)
CPUUtilization & WithUser(double value)
CPUUtilization & WithSoftIRQ(double value)
CPUUtilization & WithIdle(double value)
AWS_ELASTICBEANSTALK_API CPUUtilization(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_ELASTICBEANSTALK_API CPUUtilization & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_ostream< char, std::char_traits< char > > OStream