AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename AlarmsT = Aws::Vector<Aws::String>>
52 void SetAlarms(AlarmsT&& value) { m_alarmsHasBeenSet = true; m_alarms = std::forward<AlarmsT>(value); }
53 template<typename AlarmsT = Aws::Vector<Aws::String>>
54 AlarmSpecification& WithAlarms(AlarmsT&& value) { SetAlarms(std::forward<AlarmsT>(value)); return *this;}
55 template<typename AlarmsT = Aws::String>
56 AlarmSpecification& AddAlarms(AlarmsT&& value) { m_alarmsHasBeenSet = true; m_alarms.emplace_back(std::forward<AlarmsT>(value)); return *this; }
58 private:
59
61 bool m_alarmsHasBeenSet = false;
62 };
63
64} // namespace Model
65} // namespace AutoScaling
66} // namespace Aws
AlarmSpecification & WithAlarms(AlarmsT &&value)
const Aws::Vector< Aws::String > & GetAlarms() const
AWS_AUTOSCALING_API AlarmSpecification(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_AUTOSCALING_API AlarmSpecification()=default
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)
AlarmSpecification & AddAlarms(AlarmsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream