AWS SDK for C++  1.9.67
AWS SDK for C++
Monitoring.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace EC2
22 {
23 namespace Model
24 {
25 
32  {
33  public:
37 
38  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39  void OutputToStream(Aws::OStream& oStream, const char* location) const;
40 
41 
46  inline const MonitoringState& GetState() const{ return m_state; }
47 
52  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
53 
58  inline void SetState(const MonitoringState& value) { m_stateHasBeenSet = true; m_state = value; }
59 
64  inline void SetState(MonitoringState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
65 
70  inline Monitoring& WithState(const MonitoringState& value) { SetState(value); return *this;}
71 
76  inline Monitoring& WithState(MonitoringState&& value) { SetState(std::move(value)); return *this;}
77 
78  private:
79 
80  MonitoringState m_state;
81  bool m_stateHasBeenSet;
82  };
83 
84 } // namespace Model
85 } // namespace EC2
86 } // namespace Aws
Aws::EC2::Model::Monitoring::SetState
void SetState(MonitoringState &&value)
Definition: Monitoring.h:64
Aws::EC2::Model::Monitoring::Monitoring
Monitoring()
Aws::EC2::Model::MonitoringState
MonitoringState
Definition: MonitoringState.h:17
Aws::EC2::Model::Monitoring
Definition: Monitoring.h:32
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
AWSStreamFwd.h
MonitoringState.h
Aws::EC2::Model::Monitoring::WithState
Monitoring & WithState(MonitoringState &&value)
Definition: Monitoring.h:76
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::Monitoring::WithState
Monitoring & WithState(const MonitoringState &value)
Definition: Monitoring.h:70
Aws::EC2::Model::Monitoring::StateHasBeenSet
bool StateHasBeenSet() const
Definition: Monitoring.h:52
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::Monitoring::Monitoring
Monitoring(const Aws::Utils::Xml::XmlNode &xmlNode)
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::Monitoring::operator=
Monitoring & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::Monitoring::SetState
void SetState(const MonitoringState &value)
Definition: Monitoring.h:58
Aws::EC2::Model::Monitoring::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::Monitoring::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
EC2_EXPORTS.h
Aws::EC2::Model::Monitoring::GetState
const MonitoringState & GetState() const
Definition: Monitoring.h:46