AWS SDK for C++  1.9.175
AWS SDK for C++
SystemStatus.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace ElasticBeanstalk
23 {
24 namespace Model
25 {
26 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
47  inline const CPUUtilization& GetCPUUtilization() const{ return m_cPUUtilization; }
48 
52  inline bool CPUUtilizationHasBeenSet() const { return m_cPUUtilizationHasBeenSet; }
53 
57  inline void SetCPUUtilization(const CPUUtilization& value) { m_cPUUtilizationHasBeenSet = true; m_cPUUtilization = value; }
58 
62  inline void SetCPUUtilization(CPUUtilization&& value) { m_cPUUtilizationHasBeenSet = true; m_cPUUtilization = std::move(value); }
63 
67  inline SystemStatus& WithCPUUtilization(const CPUUtilization& value) { SetCPUUtilization(value); return *this;}
68 
72  inline SystemStatus& WithCPUUtilization(CPUUtilization&& value) { SetCPUUtilization(std::move(value)); return *this;}
73 
74 
81  inline const Aws::Vector<double>& GetLoadAverage() const{ return m_loadAverage; }
82 
89  inline bool LoadAverageHasBeenSet() const { return m_loadAverageHasBeenSet; }
90 
97  inline void SetLoadAverage(const Aws::Vector<double>& value) { m_loadAverageHasBeenSet = true; m_loadAverage = value; }
98 
105  inline void SetLoadAverage(Aws::Vector<double>&& value) { m_loadAverageHasBeenSet = true; m_loadAverage = std::move(value); }
106 
113  inline SystemStatus& WithLoadAverage(const Aws::Vector<double>& value) { SetLoadAverage(value); return *this;}
114 
121  inline SystemStatus& WithLoadAverage(Aws::Vector<double>&& value) { SetLoadAverage(std::move(value)); return *this;}
122 
129  inline SystemStatus& AddLoadAverage(double value) { m_loadAverageHasBeenSet = true; m_loadAverage.push_back(value); return *this; }
130 
131  private:
132 
133  CPUUtilization m_cPUUtilization;
134  bool m_cPUUtilizationHasBeenSet;
135 
136  Aws::Vector<double> m_loadAverage;
137  bool m_loadAverageHasBeenSet;
138  };
139 
140 } // namespace Model
141 } // namespace ElasticBeanstalk
142 } // namespace Aws
AWS_ELASTICBEANSTALK_API
#define AWS_ELASTICBEANSTALK_API
Definition: ElasticBeanstalk_EXPORTS.h:28
Aws::ElasticBeanstalk::Model::SystemStatus::WithLoadAverage
SystemStatus & WithLoadAverage(Aws::Vector< double > &&value)
Definition: SystemStatus.h:121
Aws::ElasticBeanstalk::Model::SystemStatus::SetCPUUtilization
void SetCPUUtilization(const CPUUtilization &value)
Definition: SystemStatus.h:57
Aws::ElasticBeanstalk::Model::SystemStatus::SetLoadAverage
void SetLoadAverage(Aws::Vector< double > &&value)
Definition: SystemStatus.h:105
Aws::ElasticBeanstalk::Model::SystemStatus::GetCPUUtilization
const CPUUtilization & GetCPUUtilization() const
Definition: SystemStatus.h:47
CPUUtilization.h
Aws::ElasticBeanstalk::Model::SystemStatus::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::ElasticBeanstalk::Model::SystemStatus::SetLoadAverage
void SetLoadAverage(const Aws::Vector< double > &value)
Definition: SystemStatus.h:97
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ElasticBeanstalk::Model::SystemStatus::LoadAverageHasBeenSet
bool LoadAverageHasBeenSet() const
Definition: SystemStatus.h:89
AWSStreamFwd.h
Aws::ElasticBeanstalk::Model::SystemStatus::SystemStatus
SystemStatus(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSVector.h
Aws::ElasticBeanstalk::Model::SystemStatus::WithCPUUtilization
SystemStatus & WithCPUUtilization(const CPUUtilization &value)
Definition: SystemStatus.h:67
Aws::ElasticBeanstalk::Model::SystemStatus::WithLoadAverage
SystemStatus & WithLoadAverage(const Aws::Vector< double > &value)
Definition: SystemStatus.h:113
Aws::ElasticBeanstalk::Model::SystemStatus
Definition: SystemStatus.h:34
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::ElasticBeanstalk::Model::SystemStatus::CPUUtilizationHasBeenSet
bool CPUUtilizationHasBeenSet() const
Definition: SystemStatus.h:52
Aws::ElasticBeanstalk::Model::SystemStatus::AddLoadAverage
SystemStatus & AddLoadAverage(double value)
Definition: SystemStatus.h:129
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::ElasticBeanstalk::Model::SystemStatus::SystemStatus
SystemStatus()
ElasticBeanstalk_EXPORTS.h
Aws::ElasticBeanstalk::Model::SystemStatus::SetCPUUtilization
void SetCPUUtilization(CPUUtilization &&value)
Definition: SystemStatus.h:62
Aws
Definition: AccessManagementClient.h:15
Aws::ElasticBeanstalk::Model::SystemStatus::operator=
SystemStatus & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::ElasticBeanstalk::Model::SystemStatus::GetLoadAverage
const Aws::Vector< double > & GetLoadAverage() const
Definition: SystemStatus.h:81
Aws::ElasticBeanstalk::Model::SystemStatus::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
index
int index
Definition: cJSON.h:181
Aws::ElasticBeanstalk::Model::CPUUtilization
Definition: CPUUtilization.h:30
Aws::ElasticBeanstalk::Model::SystemStatus::WithCPUUtilization
SystemStatus & WithCPUUtilization(CPUUtilization &&value)
Definition: SystemStatus.h:72