AWS SDK for C++

AWS SDK for C++ Version 1.11.748

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/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace AutoScaling {
21namespace Model {
22
30 public:
31 AWS_AUTOSCALING_API AlarmSpecification() = default;
32 AWS_AUTOSCALING_API AlarmSpecification(const Aws::Utils::Xml::XmlNode& xmlNode);
33 AWS_AUTOSCALING_API AlarmSpecification& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
34
35 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
43 inline const Aws::Vector<Aws::String>& GetAlarms() const { return m_alarms; }
44 inline bool AlarmsHasBeenSet() const { return m_alarmsHasBeenSet; }
45 template <typename AlarmsT = Aws::Vector<Aws::String>>
46 void SetAlarms(AlarmsT&& value) {
47 m_alarmsHasBeenSet = true;
48 m_alarms = std::forward<AlarmsT>(value);
49 }
50 template <typename AlarmsT = Aws::Vector<Aws::String>>
51 AlarmSpecification& WithAlarms(AlarmsT&& value) {
52 SetAlarms(std::forward<AlarmsT>(value));
53 return *this;
54 }
55 template <typename AlarmsT = Aws::String>
56 AlarmSpecification& AddAlarms(AlarmsT&& value) {
57 m_alarmsHasBeenSet = true;
58 m_alarms.emplace_back(std::forward<AlarmsT>(value));
59 return *this;
60 }
62 private:
64 bool m_alarmsHasBeenSet = false;
65};
66
67} // namespace Model
68} // namespace AutoScaling
69} // 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