AWS SDK for C++  0.14.3
AWS SDK for C++
SystemStatus.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
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Xml
26 {
27  class XmlNode;
28 } // namespace Xml
29 } // namespace Utils
30 namespace ElasticBeanstalk
31 {
32 namespace Model
33 {
34 
40  {
41  public:
42  SystemStatus();
43  SystemStatus(const Aws::Utils::Xml::XmlNode& xmlNode);
44  SystemStatus& 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 
49 
50  inline const CPUUtilization& GetCPUUtilization() const{ return m_cPUUtilization; }
51 
52 
53  inline void SetCPUUtilization(const CPUUtilization& value) { m_cPUUtilizationHasBeenSet = true; m_cPUUtilization = value; }
54 
55 
56  inline void SetCPUUtilization(CPUUtilization&& value) { m_cPUUtilizationHasBeenSet = true; m_cPUUtilization = value; }
57 
58 
59  inline SystemStatus& WithCPUUtilization(const CPUUtilization& value) { SetCPUUtilization(value); return *this;}
60 
61 
62  inline SystemStatus& WithCPUUtilization(CPUUtilization&& value) { SetCPUUtilization(value); return *this;}
63 
70  inline const Aws::Vector<double>& GetLoadAverage() const{ return m_loadAverage; }
71 
78  inline void SetLoadAverage(const Aws::Vector<double>& value) { m_loadAverageHasBeenSet = true; m_loadAverage = value; }
79 
86  inline void SetLoadAverage(Aws::Vector<double>&& value) { m_loadAverageHasBeenSet = true; m_loadAverage = value; }
87 
94  inline SystemStatus& WithLoadAverage(const Aws::Vector<double>& value) { SetLoadAverage(value); return *this;}
95 
102  inline SystemStatus& WithLoadAverage(Aws::Vector<double>&& value) { SetLoadAverage(value); return *this;}
103 
110  inline SystemStatus& AddLoadAverage(double value) { m_loadAverageHasBeenSet = true; m_loadAverage.push_back(value); return *this; }
111 
112  private:
113  CPUUtilization m_cPUUtilization;
114  bool m_cPUUtilizationHasBeenSet;
115  Aws::Vector<double> m_loadAverage;
116  bool m_loadAverageHasBeenSet;
117  };
118 
119 } // namespace Model
120 } // namespace ElasticBeanstalk
121 } // namespace Aws
SystemStatus & WithCPUUtilization(CPUUtilization &&value)
Definition: SystemStatus.h:62
#define AWS_ELASTICBEANSTALK_API
SystemStatus & WithLoadAverage(Aws::Vector< double > &&value)
Definition: SystemStatus.h:102
SystemStatus & AddLoadAverage(double value)
Definition: SystemStatus.h:110
void SetCPUUtilization(const CPUUtilization &value)
Definition: SystemStatus.h:53
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
void SetLoadAverage(Aws::Vector< double > &&value)
Definition: SystemStatus.h:86
SystemStatus & WithLoadAverage(const Aws::Vector< double > &value)
Definition: SystemStatus.h:94
void SetLoadAverage(const Aws::Vector< double > &value)
Definition: SystemStatus.h:78
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
const CPUUtilization & GetCPUUtilization() const
Definition: SystemStatus.h:50
SystemStatus & WithCPUUtilization(const CPUUtilization &value)
Definition: SystemStatus.h:59
void SetCPUUtilization(CPUUtilization &&value)
Definition: SystemStatus.h:56
const Aws::Vector< double > & GetLoadAverage() const
Definition: SystemStatus.h:70
JSON (JavaScript Object Notation).