AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SystemStatus.h
1
6#pragma once
7#include <aws/elasticbeanstalk/ElasticBeanstalk_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/elasticbeanstalk/model/CPUUtilization.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace ElasticBeanstalk
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_ELASTICBEANSTALK_API SystemStatus() = default;
37 AWS_ELASTICBEANSTALK_API SystemStatus(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_ELASTICBEANSTALK_API SystemStatus& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const CPUUtilization& GetCPUUtilization() const { return m_cPUUtilization; }
49 inline bool CPUUtilizationHasBeenSet() const { return m_cPUUtilizationHasBeenSet; }
50 template<typename CPUUtilizationT = CPUUtilization>
51 void SetCPUUtilization(CPUUtilizationT&& value) { m_cPUUtilizationHasBeenSet = true; m_cPUUtilization = std::forward<CPUUtilizationT>(value); }
52 template<typename CPUUtilizationT = CPUUtilization>
53 SystemStatus& WithCPUUtilization(CPUUtilizationT&& value) { SetCPUUtilization(std::forward<CPUUtilizationT>(value)); return *this;}
55
57
63 inline const Aws::Vector<double>& GetLoadAverage() const { return m_loadAverage; }
64 inline bool LoadAverageHasBeenSet() const { return m_loadAverageHasBeenSet; }
65 template<typename LoadAverageT = Aws::Vector<double>>
66 void SetLoadAverage(LoadAverageT&& value) { m_loadAverageHasBeenSet = true; m_loadAverage = std::forward<LoadAverageT>(value); }
67 template<typename LoadAverageT = Aws::Vector<double>>
68 SystemStatus& WithLoadAverage(LoadAverageT&& value) { SetLoadAverage(std::forward<LoadAverageT>(value)); return *this;}
69 inline SystemStatus& AddLoadAverage(double value) { m_loadAverageHasBeenSet = true; m_loadAverage.push_back(value); return *this; }
71 private:
72
73 CPUUtilization m_cPUUtilization;
74 bool m_cPUUtilizationHasBeenSet = false;
75
76 Aws::Vector<double> m_loadAverage;
77 bool m_loadAverageHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace ElasticBeanstalk
82} // namespace Aws
SystemStatus & WithCPUUtilization(CPUUtilizationT &&value)
AWS_ELASTICBEANSTALK_API SystemStatus()=default
const Aws::Vector< double > & GetLoadAverage() const
const CPUUtilization & GetCPUUtilization() const
AWS_ELASTICBEANSTALK_API SystemStatus & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICBEANSTALK_API SystemStatus(const Aws::Utils::Xml::XmlNode &xmlNode)
SystemStatus & WithLoadAverage(LoadAverageT &&value)
void SetLoadAverage(LoadAverageT &&value)
SystemStatus & AddLoadAverage(double value)
void SetCPUUtilization(CPUUtilizationT &&value)
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
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream