AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeAlarmsResult.h
1
6#pragma once
7#include <aws/monitoring/CloudWatch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/monitoring/model/ResponseMetadata.h>
11#include <aws/monitoring/model/CompositeAlarm.h>
12#include <aws/monitoring/model/MetricAlarm.h>
13#include <utility>
14
15namespace Aws
16{
17template<typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils
21{
22namespace Xml
23{
24 class XmlDocument;
25} // namespace Xml
26} // namespace Utils
27namespace CloudWatch
28{
29namespace Model
30{
32 {
33 public:
34 AWS_CLOUDWATCH_API DescribeAlarmsResult();
37
38
40
43 inline const Aws::Vector<CompositeAlarm>& GetCompositeAlarms() const{ return m_compositeAlarms; }
44 inline void SetCompositeAlarms(const Aws::Vector<CompositeAlarm>& value) { m_compositeAlarms = value; }
45 inline void SetCompositeAlarms(Aws::Vector<CompositeAlarm>&& value) { m_compositeAlarms = std::move(value); }
48 inline DescribeAlarmsResult& AddCompositeAlarms(const CompositeAlarm& value) { m_compositeAlarms.push_back(value); return *this; }
49 inline DescribeAlarmsResult& AddCompositeAlarms(CompositeAlarm&& value) { m_compositeAlarms.push_back(std::move(value)); return *this; }
51
53
56 inline const Aws::Vector<MetricAlarm>& GetMetricAlarms() const{ return m_metricAlarms; }
57 inline void SetMetricAlarms(const Aws::Vector<MetricAlarm>& value) { m_metricAlarms = value; }
58 inline void SetMetricAlarms(Aws::Vector<MetricAlarm>&& value) { m_metricAlarms = std::move(value); }
60 inline DescribeAlarmsResult& WithMetricAlarms(Aws::Vector<MetricAlarm>&& value) { SetMetricAlarms(std::move(value)); return *this;}
61 inline DescribeAlarmsResult& AddMetricAlarms(const MetricAlarm& value) { m_metricAlarms.push_back(value); return *this; }
62 inline DescribeAlarmsResult& AddMetricAlarms(MetricAlarm&& value) { m_metricAlarms.push_back(std::move(value)); return *this; }
64
66
69 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
70 inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
71 inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
72 inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
73 inline DescribeAlarmsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
74 inline DescribeAlarmsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
75 inline DescribeAlarmsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
77
79
80 inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
81 inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
82 inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
84 inline DescribeAlarmsResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
86 private:
87
88 Aws::Vector<CompositeAlarm> m_compositeAlarms;
89
90 Aws::Vector<MetricAlarm> m_metricAlarms;
91
92 Aws::String m_nextToken;
93
94 ResponseMetadata m_responseMetadata;
95 };
96
97} // namespace Model
98} // namespace CloudWatch
99} // namespace Aws
void SetCompositeAlarms(const Aws::Vector< CompositeAlarm > &value)
void SetResponseMetadata(ResponseMetadata &&value)
DescribeAlarmsResult & AddMetricAlarms(MetricAlarm &&value)
const Aws::Vector< MetricAlarm > & GetMetricAlarms() const
const ResponseMetadata & GetResponseMetadata() const
const Aws::Vector< CompositeAlarm > & GetCompositeAlarms() const
AWS_CLOUDWATCH_API DescribeAlarmsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
DescribeAlarmsResult & AddCompositeAlarms(const CompositeAlarm &value)
DescribeAlarmsResult & WithNextToken(Aws::String &&value)
void SetMetricAlarms(const Aws::Vector< MetricAlarm > &value)
DescribeAlarmsResult & WithCompositeAlarms(const Aws::Vector< CompositeAlarm > &value)
DescribeAlarmsResult & AddMetricAlarms(const MetricAlarm &value)
void SetResponseMetadata(const ResponseMetadata &value)
DescribeAlarmsResult & WithResponseMetadata(const ResponseMetadata &value)
DescribeAlarmsResult & AddCompositeAlarms(CompositeAlarm &&value)
DescribeAlarmsResult & WithResponseMetadata(ResponseMetadata &&value)
void SetMetricAlarms(Aws::Vector< MetricAlarm > &&value)
DescribeAlarmsResult & WithMetricAlarms(const Aws::Vector< MetricAlarm > &value)
DescribeAlarmsResult & WithCompositeAlarms(Aws::Vector< CompositeAlarm > &&value)
DescribeAlarmsResult & WithNextToken(const Aws::String &value)
DescribeAlarmsResult & WithNextToken(const char *value)
DescribeAlarmsResult & WithMetricAlarms(Aws::Vector< MetricAlarm > &&value)
AWS_CLOUDWATCH_API DescribeAlarmsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
void SetCompositeAlarms(Aws::Vector< CompositeAlarm > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument