AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AlarmSpecification.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/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace AutoScaling
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_AUTOSCALING_API AlarmSpecification();
37 AWS_AUTOSCALING_API AlarmSpecification(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_AUTOSCALING_API AlarmSpecification& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
49 inline const Aws::Vector<Aws::String>& GetAlarms() const{ return m_alarms; }
50 inline bool AlarmsHasBeenSet() const { return m_alarmsHasBeenSet; }
51 inline void SetAlarms(const Aws::Vector<Aws::String>& value) { m_alarmsHasBeenSet = true; m_alarms = value; }
52 inline void SetAlarms(Aws::Vector<Aws::String>&& value) { m_alarmsHasBeenSet = true; m_alarms = std::move(value); }
53 inline AlarmSpecification& WithAlarms(const Aws::Vector<Aws::String>& value) { SetAlarms(value); return *this;}
54 inline AlarmSpecification& WithAlarms(Aws::Vector<Aws::String>&& value) { SetAlarms(std::move(value)); return *this;}
55 inline AlarmSpecification& AddAlarms(const Aws::String& value) { m_alarmsHasBeenSet = true; m_alarms.push_back(value); return *this; }
56 inline AlarmSpecification& AddAlarms(Aws::String&& value) { m_alarmsHasBeenSet = true; m_alarms.push_back(std::move(value)); return *this; }
57 inline AlarmSpecification& AddAlarms(const char* value) { m_alarmsHasBeenSet = true; m_alarms.push_back(value); return *this; }
59 private:
60
62 bool m_alarmsHasBeenSet = false;
63 };
64
65} // namespace Model
66} // namespace AutoScaling
67} // namespace Aws
AlarmSpecification & WithAlarms(const Aws::Vector< Aws::String > &value)
AlarmSpecification & AddAlarms(Aws::String &&value)
const Aws::Vector< Aws::String > & GetAlarms() const
void SetAlarms(Aws::Vector< Aws::String > &&value)
AWS_AUTOSCALING_API AlarmSpecification(const Aws::Utils::Xml::XmlNode &xmlNode)
AlarmSpecification & WithAlarms(Aws::Vector< Aws::String > &&value)
AlarmSpecification & AddAlarms(const char *value)
AlarmSpecification & AddAlarms(const Aws::String &value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetAlarms(const Aws::Vector< Aws::String > &value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_AUTOSCALING_API AlarmSpecification & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream