AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InstanceMonitoring.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/Monitoring.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_EC2_API InstanceMonitoring();
36 AWS_EC2_API InstanceMonitoring(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
47 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
48 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
49 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
50 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
51 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
52 inline InstanceMonitoring& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
53 inline InstanceMonitoring& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
54 inline InstanceMonitoring& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
56
58
61 inline const Monitoring& GetMonitoring() const{ return m_monitoring; }
62 inline bool MonitoringHasBeenSet() const { return m_monitoringHasBeenSet; }
63 inline void SetMonitoring(const Monitoring& value) { m_monitoringHasBeenSet = true; m_monitoring = value; }
64 inline void SetMonitoring(Monitoring&& value) { m_monitoringHasBeenSet = true; m_monitoring = std::move(value); }
65 inline InstanceMonitoring& WithMonitoring(const Monitoring& value) { SetMonitoring(value); return *this;}
66 inline InstanceMonitoring& WithMonitoring(Monitoring&& value) { SetMonitoring(std::move(value)); return *this;}
68 private:
69
70 Aws::String m_instanceId;
71 bool m_instanceIdHasBeenSet = false;
72
73 Monitoring m_monitoring;
74 bool m_monitoringHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace EC2
79} // namespace Aws
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Monitoring & GetMonitoring() const
void SetMonitoring(Monitoring &&value)
void SetInstanceId(Aws::String &&value)
InstanceMonitoring & WithMonitoring(const Monitoring &value)
AWS_EC2_API InstanceMonitoring & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
InstanceMonitoring & WithInstanceId(Aws::String &&value)
InstanceMonitoring & WithMonitoring(Monitoring &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetInstanceId(const Aws::String &value)
void SetMonitoring(const Monitoring &value)
InstanceMonitoring & WithInstanceId(const char *value)
const Aws::String & GetInstanceId() const
AWS_EC2_API InstanceMonitoring(const Aws::Utils::Xml::XmlNode &xmlNode)
InstanceMonitoring & WithInstanceId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream