AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
SystemStatus.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/elasticbeanstalk/ElasticBeanstalk_EXPORTS.h>
10#include <aws/elasticbeanstalk/model/CPUUtilization.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace ElasticBeanstalk {
21namespace Model {
22
30 public:
31 AWS_ELASTICBEANSTALK_API SystemStatus() = default;
32 AWS_ELASTICBEANSTALK_API SystemStatus(const Aws::Utils::Xml::XmlNode& xmlNode);
33 AWS_ELASTICBEANSTALK_API SystemStatus& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
34
35 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index,
36 const char* locationValue) const;
37 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
38
40
43 inline const CPUUtilization& GetCPUUtilization() const { return m_cPUUtilization; }
44 inline bool CPUUtilizationHasBeenSet() const { return m_cPUUtilizationHasBeenSet; }
45 template <typename CPUUtilizationT = CPUUtilization>
46 void SetCPUUtilization(CPUUtilizationT&& value) {
47 m_cPUUtilizationHasBeenSet = true;
48 m_cPUUtilization = std::forward<CPUUtilizationT>(value);
49 }
50 template <typename CPUUtilizationT = CPUUtilization>
51 SystemStatus& WithCPUUtilization(CPUUtilizationT&& value) {
52 SetCPUUtilization(std::forward<CPUUtilizationT>(value));
53 return *this;
54 }
56
58
64 inline const Aws::Vector<double>& GetLoadAverage() const { return m_loadAverage; }
65 inline bool LoadAverageHasBeenSet() const { return m_loadAverageHasBeenSet; }
66 template <typename LoadAverageT = Aws::Vector<double>>
67 void SetLoadAverage(LoadAverageT&& value) {
68 m_loadAverageHasBeenSet = true;
69 m_loadAverage = std::forward<LoadAverageT>(value);
70 }
71 template <typename LoadAverageT = Aws::Vector<double>>
72 SystemStatus& WithLoadAverage(LoadAverageT&& value) {
73 SetLoadAverage(std::forward<LoadAverageT>(value));
74 return *this;
75 }
76 inline SystemStatus& AddLoadAverage(double value) {
77 m_loadAverageHasBeenSet = true;
78 m_loadAverage.push_back(value);
79 return *this;
80 }
82 private:
83 CPUUtilization m_cPUUtilization;
84
85 Aws::Vector<double> m_loadAverage;
86 bool m_cPUUtilizationHasBeenSet = false;
87 bool m_loadAverageHasBeenSet = false;
88};
89
90} // namespace Model
91} // namespace ElasticBeanstalk
92} // 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