AWS SDK for C++

AWS SDK for C++ Version 1.11.852

Loading...
Searching...
No Matches
DescribeAlarmsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/monitoring/CloudWatchRequest.h>
10#include <aws/monitoring/CloudWatch_EXPORTS.h>
11#include <aws/monitoring/model/AlarmType.h>
12#include <aws/monitoring/model/StateValue.h>
13
14#include <utility>
15
16namespace Aws {
17namespace CloudWatch {
18namespace Model {
19
23 public:
24 AWS_CLOUDWATCH_API DescribeAlarmsRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "DescribeAlarms"; }
31
32 AWS_CLOUDWATCH_API Aws::String SerializePayload() const override;
33
35
37
40 inline const Aws::Vector<Aws::String>& GetAlarmNames() const { return m_alarmNames; }
41 inline bool AlarmNamesHasBeenSet() const { return m_alarmNamesHasBeenSet; }
42 template <typename AlarmNamesT = Aws::Vector<Aws::String>>
43 void SetAlarmNames(AlarmNamesT&& value) {
44 m_alarmNamesHasBeenSet = true;
45 m_alarmNames = std::forward<AlarmNamesT>(value);
46 }
47 template <typename AlarmNamesT = Aws::Vector<Aws::String>>
48 DescribeAlarmsRequest& WithAlarmNames(AlarmNamesT&& value) {
49 SetAlarmNames(std::forward<AlarmNamesT>(value));
50 return *this;
51 }
52 template <typename AlarmNamesT = Aws::String>
53 DescribeAlarmsRequest& AddAlarmNames(AlarmNamesT&& value) {
54 m_alarmNamesHasBeenSet = true;
55 m_alarmNames.emplace_back(std::forward<AlarmNamesT>(value));
56 return *this;
57 }
59
61
66 inline const Aws::String& GetAlarmNamePrefix() const { return m_alarmNamePrefix; }
67 inline bool AlarmNamePrefixHasBeenSet() const { return m_alarmNamePrefixHasBeenSet; }
68 template <typename AlarmNamePrefixT = Aws::String>
69 void SetAlarmNamePrefix(AlarmNamePrefixT&& value) {
70 m_alarmNamePrefixHasBeenSet = true;
71 m_alarmNamePrefix = std::forward<AlarmNamePrefixT>(value);
72 }
73 template <typename AlarmNamePrefixT = Aws::String>
74 DescribeAlarmsRequest& WithAlarmNamePrefix(AlarmNamePrefixT&& value) {
75 SetAlarmNamePrefix(std::forward<AlarmNamePrefixT>(value));
76 return *this;
77 }
79
81
94 inline const Aws::Vector<AlarmType>& GetAlarmTypes() const { return m_alarmTypes; }
95 inline bool AlarmTypesHasBeenSet() const { return m_alarmTypesHasBeenSet; }
96 template <typename AlarmTypesT = Aws::Vector<AlarmType>>
97 void SetAlarmTypes(AlarmTypesT&& value) {
98 m_alarmTypesHasBeenSet = true;
99 m_alarmTypes = std::forward<AlarmTypesT>(value);
100 }
101 template <typename AlarmTypesT = Aws::Vector<AlarmType>>
102 DescribeAlarmsRequest& WithAlarmTypes(AlarmTypesT&& value) {
103 SetAlarmTypes(std::forward<AlarmTypesT>(value));
104 return *this;
105 }
107 m_alarmTypesHasBeenSet = true;
108 m_alarmTypes.push_back(value);
109 return *this;
110 }
112
114
131 inline const Aws::String& GetChildrenOfAlarmName() const { return m_childrenOfAlarmName; }
132 inline bool ChildrenOfAlarmNameHasBeenSet() const { return m_childrenOfAlarmNameHasBeenSet; }
133 template <typename ChildrenOfAlarmNameT = Aws::String>
134 void SetChildrenOfAlarmName(ChildrenOfAlarmNameT&& value) {
135 m_childrenOfAlarmNameHasBeenSet = true;
136 m_childrenOfAlarmName = std::forward<ChildrenOfAlarmNameT>(value);
137 }
138 template <typename ChildrenOfAlarmNameT = Aws::String>
139 DescribeAlarmsRequest& WithChildrenOfAlarmName(ChildrenOfAlarmNameT&& value) {
140 SetChildrenOfAlarmName(std::forward<ChildrenOfAlarmNameT>(value));
141 return *this;
142 }
144
146
160 inline const Aws::String& GetParentsOfAlarmName() const { return m_parentsOfAlarmName; }
161 inline bool ParentsOfAlarmNameHasBeenSet() const { return m_parentsOfAlarmNameHasBeenSet; }
162 template <typename ParentsOfAlarmNameT = Aws::String>
163 void SetParentsOfAlarmName(ParentsOfAlarmNameT&& value) {
164 m_parentsOfAlarmNameHasBeenSet = true;
165 m_parentsOfAlarmName = std::forward<ParentsOfAlarmNameT>(value);
166 }
167 template <typename ParentsOfAlarmNameT = Aws::String>
168 DescribeAlarmsRequest& WithParentsOfAlarmName(ParentsOfAlarmNameT&& value) {
169 SetParentsOfAlarmName(std::forward<ParentsOfAlarmNameT>(value));
170 return *this;
171 }
173
175
179 inline StateValue GetStateValue() const { return m_stateValue; }
180 inline bool StateValueHasBeenSet() const { return m_stateValueHasBeenSet; }
181 inline void SetStateValue(StateValue value) {
182 m_stateValueHasBeenSet = true;
183 m_stateValue = value;
184 }
186 SetStateValue(value);
187 return *this;
188 }
190
192
197 inline const Aws::String& GetActionPrefix() const { return m_actionPrefix; }
198 inline bool ActionPrefixHasBeenSet() const { return m_actionPrefixHasBeenSet; }
199 template <typename ActionPrefixT = Aws::String>
200 void SetActionPrefix(ActionPrefixT&& value) {
201 m_actionPrefixHasBeenSet = true;
202 m_actionPrefix = std::forward<ActionPrefixT>(value);
203 }
204 template <typename ActionPrefixT = Aws::String>
205 DescribeAlarmsRequest& WithActionPrefix(ActionPrefixT&& value) {
206 SetActionPrefix(std::forward<ActionPrefixT>(value));
207 return *this;
208 }
210
212
215 inline int GetMaxRecords() const { return m_maxRecords; }
216 inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
217 inline void SetMaxRecords(int value) {
218 m_maxRecordsHasBeenSet = true;
219 m_maxRecords = value;
220 }
222 SetMaxRecords(value);
223 return *this;
224 }
226
228
232 inline const Aws::String& GetNextToken() const { return m_nextToken; }
233 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
234 template <typename NextTokenT = Aws::String>
235 void SetNextToken(NextTokenT&& value) {
236 m_nextTokenHasBeenSet = true;
237 m_nextToken = std::forward<NextTokenT>(value);
238 }
239 template <typename NextTokenT = Aws::String>
241 SetNextToken(std::forward<NextTokenT>(value));
242 return *this;
243 }
245 private:
246 Aws::Vector<Aws::String> m_alarmNames;
247
248 Aws::String m_alarmNamePrefix;
249
250 Aws::Vector<AlarmType> m_alarmTypes;
251
252 Aws::String m_childrenOfAlarmName;
253
254 Aws::String m_parentsOfAlarmName;
255
256 StateValue m_stateValue{StateValue::NOT_SET};
257
258 Aws::String m_actionPrefix;
259
260 int m_maxRecords{0};
261
262 Aws::String m_nextToken;
263 bool m_alarmNamesHasBeenSet = false;
264 bool m_alarmNamePrefixHasBeenSet = false;
265 bool m_alarmTypesHasBeenSet = false;
266 bool m_childrenOfAlarmNameHasBeenSet = false;
267 bool m_parentsOfAlarmNameHasBeenSet = false;
268 bool m_stateValueHasBeenSet = false;
269 bool m_actionPrefixHasBeenSet = false;
270 bool m_maxRecordsHasBeenSet = false;
271 bool m_nextTokenHasBeenSet = false;
272};
273
274} // namespace Model
275} // namespace CloudWatch
276} // namespace Aws
AWS_CLOUDWATCH_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DescribeAlarmsRequest & WithAlarmNamePrefix(AlarmNamePrefixT &&value)
const Aws::Vector< AlarmType > & GetAlarmTypes() const
void SetParentsOfAlarmName(ParentsOfAlarmNameT &&value)
DescribeAlarmsRequest & WithStateValue(StateValue value)
DescribeAlarmsRequest & WithAlarmNames(AlarmNamesT &&value)
AWS_CLOUDWATCH_API Aws::String SerializePayload() const override
DescribeAlarmsRequest & WithActionPrefix(ActionPrefixT &&value)
DescribeAlarmsRequest & WithAlarmTypes(AlarmTypesT &&value)
DescribeAlarmsRequest & AddAlarmNames(AlarmNamesT &&value)
void SetChildrenOfAlarmName(ChildrenOfAlarmNameT &&value)
DescribeAlarmsRequest & AddAlarmTypes(AlarmType value)
virtual const char * GetServiceRequestName() const override
AWS_CLOUDWATCH_API DescribeAlarmsRequest()=default
DescribeAlarmsRequest & WithChildrenOfAlarmName(ChildrenOfAlarmNameT &&value)
DescribeAlarmsRequest & WithNextToken(NextTokenT &&value)
const Aws::Vector< Aws::String > & GetAlarmNames() const
DescribeAlarmsRequest & WithParentsOfAlarmName(ParentsOfAlarmNameT &&value)
DescribeAlarmsRequest & WithMaxRecords(int value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector