AWS SDK for C++  1.9.70
AWS SDK for C++
RunInstancesMonitoringEnabled.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
9 
10 namespace Aws
11 {
12 namespace Utils
13 {
14 namespace Xml
15 {
16  class XmlNode;
17 } // namespace Xml
18 } // namespace Utils
19 namespace EC2
20 {
21 namespace Model
22 {
23 
30  {
31  public:
35 
36  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
37  void OutputToStream(Aws::OStream& oStream, const char* location) const;
38 
39 
44  inline bool GetEnabled() const{ return m_enabled; }
45 
50  inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
51 
56  inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
57 
62  inline RunInstancesMonitoringEnabled& WithEnabled(bool value) { SetEnabled(value); return *this;}
63 
64  private:
65 
66  bool m_enabled;
67  bool m_enabledHasBeenSet;
68  };
69 
70 } // namespace Model
71 } // namespace EC2
72 } // namespace Aws
Aws::EC2::Model::RunInstancesMonitoringEnabled::EnabledHasBeenSet
bool EnabledHasBeenSet() const
Definition: RunInstancesMonitoringEnabled.h:50
Aws::EC2::Model::RunInstancesMonitoringEnabled::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::RunInstancesMonitoringEnabled::SetEnabled
void SetEnabled(bool value)
Definition: RunInstancesMonitoringEnabled.h:56
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
AWSStreamFwd.h
Aws::EC2::Model::RunInstancesMonitoringEnabled::RunInstancesMonitoringEnabled
RunInstancesMonitoringEnabled()
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::RunInstancesMonitoringEnabled
Definition: RunInstancesMonitoringEnabled.h:30
Aws::EC2::Model::RunInstancesMonitoringEnabled::GetEnabled
bool GetEnabled() const
Definition: RunInstancesMonitoringEnabled.h:44
Aws::EC2::Model::RunInstancesMonitoringEnabled::operator=
RunInstancesMonitoringEnabled & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::RunInstancesMonitoringEnabled::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws
Definition: AccessManagementClient.h:15
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::RunInstancesMonitoringEnabled::RunInstancesMonitoringEnabled
RunInstancesMonitoringEnabled(const Aws::Utils::Xml::XmlNode &xmlNode)
EC2_EXPORTS.h
Aws::EC2::Model::RunInstancesMonitoringEnabled::WithEnabled
RunInstancesMonitoringEnabled & WithEnabled(bool value)
Definition: RunInstancesMonitoringEnabled.h:62