AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Alarm.h
1
6#pragma once
7#include <aws/autoscaling/AutoScaling_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace AutoScaling
22{
23namespace Model
24{
25
31 class Alarm
32 {
33 public:
34 AWS_AUTOSCALING_API Alarm();
35 AWS_AUTOSCALING_API Alarm(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_AUTOSCALING_API Alarm& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
41
43
46 inline const Aws::String& GetAlarmName() const{ return m_alarmName; }
47 inline bool AlarmNameHasBeenSet() const { return m_alarmNameHasBeenSet; }
48 inline void SetAlarmName(const Aws::String& value) { m_alarmNameHasBeenSet = true; m_alarmName = value; }
49 inline void SetAlarmName(Aws::String&& value) { m_alarmNameHasBeenSet = true; m_alarmName = std::move(value); }
50 inline void SetAlarmName(const char* value) { m_alarmNameHasBeenSet = true; m_alarmName.assign(value); }
51 inline Alarm& WithAlarmName(const Aws::String& value) { SetAlarmName(value); return *this;}
52 inline Alarm& WithAlarmName(Aws::String&& value) { SetAlarmName(std::move(value)); return *this;}
53 inline Alarm& WithAlarmName(const char* value) { SetAlarmName(value); return *this;}
55
57
60 inline const Aws::String& GetAlarmARN() const{ return m_alarmARN; }
61 inline bool AlarmARNHasBeenSet() const { return m_alarmARNHasBeenSet; }
62 inline void SetAlarmARN(const Aws::String& value) { m_alarmARNHasBeenSet = true; m_alarmARN = value; }
63 inline void SetAlarmARN(Aws::String&& value) { m_alarmARNHasBeenSet = true; m_alarmARN = std::move(value); }
64 inline void SetAlarmARN(const char* value) { m_alarmARNHasBeenSet = true; m_alarmARN.assign(value); }
65 inline Alarm& WithAlarmARN(const Aws::String& value) { SetAlarmARN(value); return *this;}
66 inline Alarm& WithAlarmARN(Aws::String&& value) { SetAlarmARN(std::move(value)); return *this;}
67 inline Alarm& WithAlarmARN(const char* value) { SetAlarmARN(value); return *this;}
69 private:
70
71 Aws::String m_alarmName;
72 bool m_alarmNameHasBeenSet = false;
73
74 Aws::String m_alarmARN;
75 bool m_alarmARNHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace AutoScaling
80} // namespace Aws
bool AlarmNameHasBeenSet() const
Definition Alarm.h:47
Alarm & WithAlarmARN(const Aws::String &value)
Definition Alarm.h:65
Alarm & WithAlarmName(const Aws::String &value)
Definition Alarm.h:51
AWS_AUTOSCALING_API Alarm(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetAlarmName() const
Definition Alarm.h:46
bool AlarmARNHasBeenSet() const
Definition Alarm.h:61
Alarm & WithAlarmARN(const char *value)
Definition Alarm.h:67
AWS_AUTOSCALING_API Alarm & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetAlarmARN(const char *value)
Definition Alarm.h:64
const Aws::String & GetAlarmARN() const
Definition Alarm.h:60
Alarm & WithAlarmName(Aws::String &&value)
Definition Alarm.h:52
void SetAlarmName(const char *value)
Definition Alarm.h:50
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetAlarmARN(Aws::String &&value)
Definition Alarm.h:63
Alarm & WithAlarmName(const char *value)
Definition Alarm.h:53
void SetAlarmName(const Aws::String &value)
Definition Alarm.h:48
void SetAlarmName(Aws::String &&value)
Definition Alarm.h:49
AWS_AUTOSCALING_API Alarm()
Alarm & WithAlarmARN(Aws::String &&value)
Definition Alarm.h:66
void SetAlarmARN(const Aws::String &value)
Definition Alarm.h:62
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream