AWS SDK for C++  1.9.70
AWS SDK for C++
InstanceMonitoring.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
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 EC2
23 {
24 namespace Model
25 {
26 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
46  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
47 
51  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
52 
56  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
57 
61  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
62 
66  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
67 
71  inline InstanceMonitoring& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
72 
76  inline InstanceMonitoring& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
77 
81  inline InstanceMonitoring& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
82 
83 
87  inline const Monitoring& GetMonitoring() const{ return m_monitoring; }
88 
92  inline bool MonitoringHasBeenSet() const { return m_monitoringHasBeenSet; }
93 
97  inline void SetMonitoring(const Monitoring& value) { m_monitoringHasBeenSet = true; m_monitoring = value; }
98 
102  inline void SetMonitoring(Monitoring&& value) { m_monitoringHasBeenSet = true; m_monitoring = std::move(value); }
103 
107  inline InstanceMonitoring& WithMonitoring(const Monitoring& value) { SetMonitoring(value); return *this;}
108 
112  inline InstanceMonitoring& WithMonitoring(Monitoring&& value) { SetMonitoring(std::move(value)); return *this;}
113 
114  private:
115 
116  Aws::String m_instanceId;
117  bool m_instanceIdHasBeenSet;
118 
119  Monitoring m_monitoring;
120  bool m_monitoringHasBeenSet;
121  };
122 
123 } // namespace Model
124 } // namespace EC2
125 } // namespace Aws
Aws::EC2::Model::InstanceMonitoring::InstanceMonitoring
InstanceMonitoring(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::InstanceMonitoring::SetMonitoring
void SetMonitoring(Monitoring &&value)
Definition: InstanceMonitoring.h:102
Aws::EC2::Model::InstanceMonitoring::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: InstanceMonitoring.h:61
Aws::EC2::Model::InstanceMonitoring::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: InstanceMonitoring.h:46
Aws::EC2::Model::InstanceMonitoring::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: InstanceMonitoring.h:56
Aws::EC2::Model::InstanceMonitoring::MonitoringHasBeenSet
bool MonitoringHasBeenSet() const
Definition: InstanceMonitoring.h:92
Aws::EC2::Model::Monitoring
Definition: Monitoring.h:32
Aws::EC2::Model::InstanceMonitoring::InstanceIdHasBeenSet
bool InstanceIdHasBeenSet() const
Definition: InstanceMonitoring.h:51
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Monitoring.h
AWSStreamFwd.h
Aws::EC2::Model::InstanceMonitoring::WithInstanceId
InstanceMonitoring & WithInstanceId(const char *value)
Definition: InstanceMonitoring.h:81
Aws::EC2::Model::InstanceMonitoring::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::InstanceMonitoring::WithInstanceId
InstanceMonitoring & WithInstanceId(Aws::String &&value)
Definition: InstanceMonitoring.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::InstanceMonitoring::GetMonitoring
const Monitoring & GetMonitoring() const
Definition: InstanceMonitoring.h:87
Aws::EC2::Model::InstanceMonitoring::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::InstanceMonitoring::InstanceMonitoring
InstanceMonitoring()
AWSString.h
Aws::EC2::Model::InstanceMonitoring::WithMonitoring
InstanceMonitoring & WithMonitoring(const Monitoring &value)
Definition: InstanceMonitoring.h:107
Aws::EC2::Model::InstanceMonitoring
Definition: InstanceMonitoring.h:33
Aws::EC2::Model::InstanceMonitoring::WithInstanceId
InstanceMonitoring & WithInstanceId(const Aws::String &value)
Definition: InstanceMonitoring.h:71
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::InstanceMonitoring::WithMonitoring
InstanceMonitoring & WithMonitoring(Monitoring &&value)
Definition: InstanceMonitoring.h:112
Aws::EC2::Model::InstanceMonitoring::SetMonitoring
void SetMonitoring(const Monitoring &value)
Definition: InstanceMonitoring.h:97
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::InstanceMonitoring::operator=
InstanceMonitoring & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
EC2_EXPORTS.h
Aws::EC2::Model::InstanceMonitoring::SetInstanceId
void SetInstanceId(const char *value)
Definition: InstanceMonitoring.h:66