AWS SDK for C++  1.9.108
AWS SDK for C++
Alarm.h
Go to the documentation of this file.
1 
6 #pragma once
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 AutoScaling
22 {
23 namespace Model
24 {
25 
32  {
33  public:
34  Alarm();
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 
45  inline const Aws::String& GetAlarmName() const{ return m_alarmName; }
46 
50  inline bool AlarmNameHasBeenSet() const { return m_alarmNameHasBeenSet; }
51 
55  inline void SetAlarmName(const Aws::String& value) { m_alarmNameHasBeenSet = true; m_alarmName = value; }
56 
60  inline void SetAlarmName(Aws::String&& value) { m_alarmNameHasBeenSet = true; m_alarmName = std::move(value); }
61 
65  inline void SetAlarmName(const char* value) { m_alarmNameHasBeenSet = true; m_alarmName.assign(value); }
66 
70  inline Alarm& WithAlarmName(const Aws::String& value) { SetAlarmName(value); return *this;}
71 
75  inline Alarm& WithAlarmName(Aws::String&& value) { SetAlarmName(std::move(value)); return *this;}
76 
80  inline Alarm& WithAlarmName(const char* value) { SetAlarmName(value); return *this;}
81 
82 
86  inline const Aws::String& GetAlarmARN() const{ return m_alarmARN; }
87 
91  inline bool AlarmARNHasBeenSet() const { return m_alarmARNHasBeenSet; }
92 
96  inline void SetAlarmARN(const Aws::String& value) { m_alarmARNHasBeenSet = true; m_alarmARN = value; }
97 
101  inline void SetAlarmARN(Aws::String&& value) { m_alarmARNHasBeenSet = true; m_alarmARN = std::move(value); }
102 
106  inline void SetAlarmARN(const char* value) { m_alarmARNHasBeenSet = true; m_alarmARN.assign(value); }
107 
111  inline Alarm& WithAlarmARN(const Aws::String& value) { SetAlarmARN(value); return *this;}
112 
116  inline Alarm& WithAlarmARN(Aws::String&& value) { SetAlarmARN(std::move(value)); return *this;}
117 
121  inline Alarm& WithAlarmARN(const char* value) { SetAlarmARN(value); return *this;}
122 
123  private:
124 
125  Aws::String m_alarmName;
126  bool m_alarmNameHasBeenSet;
127 
128  Aws::String m_alarmARN;
129  bool m_alarmARNHasBeenSet;
130  };
131 
132 } // namespace Model
133 } // namespace AutoScaling
134 } // namespace Aws
Aws::AutoScaling::Model::Alarm::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::AutoScaling::Model::Alarm::GetAlarmARN
const Aws::String & GetAlarmARN() const
Definition: Alarm.h:86
Aws::AutoScaling::Model::Alarm::SetAlarmName
void SetAlarmName(const char *value)
Definition: Alarm.h:65
Aws::AutoScaling::Model::Alarm::SetAlarmARN
void SetAlarmARN(Aws::String &&value)
Definition: Alarm.h:101
Aws::AutoScaling::Model::Alarm::AlarmARNHasBeenSet
bool AlarmARNHasBeenSet() const
Definition: Alarm.h:91
Aws::AutoScaling::Model::Alarm::SetAlarmARN
void SetAlarmARN(const Aws::String &value)
Definition: Alarm.h:96
Aws::AutoScaling::Model::Alarm::WithAlarmName
Alarm & WithAlarmName(const char *value)
Definition: Alarm.h:80
Aws::AutoScaling::Model::Alarm::SetAlarmARN
void SetAlarmARN(const char *value)
Definition: Alarm.h:106
Aws::AutoScaling::Model::Alarm::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::AutoScaling::Model::Alarm::SetAlarmName
void SetAlarmName(Aws::String &&value)
Definition: Alarm.h:60
Aws::AutoScaling::Model::Alarm
Definition: Alarm.h:32
AWSStreamFwd.h
Aws::AutoScaling::Model::Alarm::WithAlarmName
Alarm & WithAlarmName(const Aws::String &value)
Definition: Alarm.h:70
Aws::AutoScaling::Model::Alarm::Alarm
Alarm(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::AutoScaling::Model::Alarm::WithAlarmARN
Alarm & WithAlarmARN(const Aws::String &value)
Definition: Alarm.h:111
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::AutoScaling::Model::Alarm::Alarm
Alarm()
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
AWS_AUTOSCALING_API
#define AWS_AUTOSCALING_API
Definition: AutoScaling_EXPORTS.h:28
Aws::AutoScaling::Model::Alarm::WithAlarmName
Alarm & WithAlarmName(Aws::String &&value)
Definition: Alarm.h:75
Aws::AutoScaling::Model::Alarm::AlarmNameHasBeenSet
bool AlarmNameHasBeenSet() const
Definition: Alarm.h:50
AWSString.h
Aws::AutoScaling::Model::Alarm::operator=
Alarm & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::AutoScaling::Model::Alarm::SetAlarmName
void SetAlarmName(const Aws::String &value)
Definition: Alarm.h:55
Aws::AutoScaling::Model::Alarm::WithAlarmARN
Alarm & WithAlarmARN(Aws::String &&value)
Definition: Alarm.h:116
AutoScaling_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
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::AutoScaling::Model::Alarm::GetAlarmName
const Aws::String & GetAlarmName() const
Definition: Alarm.h:45
Aws::AutoScaling::Model::Alarm::WithAlarmARN
Alarm & WithAlarmARN(const char *value)
Definition: Alarm.h:121