AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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
91 inline const Aws::Vector<AlarmType>& GetAlarmTypes() const { return m_alarmTypes; }
92 inline bool AlarmTypesHasBeenSet() const { return m_alarmTypesHasBeenSet; }
93 template <typename AlarmTypesT = Aws::Vector<AlarmType>>
94 void SetAlarmTypes(AlarmTypesT&& value) {
95 m_alarmTypesHasBeenSet = true;
96 m_alarmTypes = std::forward<AlarmTypesT>(value);
97 }
98 template <typename AlarmTypesT = Aws::Vector<AlarmType>>
99 DescribeAlarmsRequest& WithAlarmTypes(AlarmTypesT&& value) {
100 SetAlarmTypes(std::forward<AlarmTypesT>(value));
101 return *this;
102 }
104 m_alarmTypesHasBeenSet = true;
105 m_alarmTypes.push_back(value);
106 return *this;
107 }
109
111
128 inline const Aws::String& GetChildrenOfAlarmName() const { return m_childrenOfAlarmName; }
129 inline bool ChildrenOfAlarmNameHasBeenSet() const { return m_childrenOfAlarmNameHasBeenSet; }
130 template <typename ChildrenOfAlarmNameT = Aws::String>
131 void SetChildrenOfAlarmName(ChildrenOfAlarmNameT&& value) {
132 m_childrenOfAlarmNameHasBeenSet = true;
133 m_childrenOfAlarmName = std::forward<ChildrenOfAlarmNameT>(value);
134 }
135 template <typename ChildrenOfAlarmNameT = Aws::String>
136 DescribeAlarmsRequest& WithChildrenOfAlarmName(ChildrenOfAlarmNameT&& value) {
137 SetChildrenOfAlarmName(std::forward<ChildrenOfAlarmNameT>(value));
138 return *this;
139 }
141
143
157 inline const Aws::String& GetParentsOfAlarmName() const { return m_parentsOfAlarmName; }
158 inline bool ParentsOfAlarmNameHasBeenSet() const { return m_parentsOfAlarmNameHasBeenSet; }
159 template <typename ParentsOfAlarmNameT = Aws::String>
160 void SetParentsOfAlarmName(ParentsOfAlarmNameT&& value) {
161 m_parentsOfAlarmNameHasBeenSet = true;
162 m_parentsOfAlarmName = std::forward<ParentsOfAlarmNameT>(value);
163 }
164 template <typename ParentsOfAlarmNameT = Aws::String>
165 DescribeAlarmsRequest& WithParentsOfAlarmName(ParentsOfAlarmNameT&& value) {
166 SetParentsOfAlarmName(std::forward<ParentsOfAlarmNameT>(value));
167 return *this;
168 }
170
172
176 inline StateValue GetStateValue() const { return m_stateValue; }
177 inline bool StateValueHasBeenSet() const { return m_stateValueHasBeenSet; }
178 inline void SetStateValue(StateValue value) {
179 m_stateValueHasBeenSet = true;
180 m_stateValue = value;
181 }
183 SetStateValue(value);
184 return *this;
185 }
187
189
194 inline const Aws::String& GetActionPrefix() const { return m_actionPrefix; }
195 inline bool ActionPrefixHasBeenSet() const { return m_actionPrefixHasBeenSet; }
196 template <typename ActionPrefixT = Aws::String>
197 void SetActionPrefix(ActionPrefixT&& value) {
198 m_actionPrefixHasBeenSet = true;
199 m_actionPrefix = std::forward<ActionPrefixT>(value);
200 }
201 template <typename ActionPrefixT = Aws::String>
202 DescribeAlarmsRequest& WithActionPrefix(ActionPrefixT&& value) {
203 SetActionPrefix(std::forward<ActionPrefixT>(value));
204 return *this;
205 }
207
209
212 inline int GetMaxRecords() const { return m_maxRecords; }
213 inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
214 inline void SetMaxRecords(int value) {
215 m_maxRecordsHasBeenSet = true;
216 m_maxRecords = value;
217 }
219 SetMaxRecords(value);
220 return *this;
221 }
223
225
229 inline const Aws::String& GetNextToken() const { return m_nextToken; }
230 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
231 template <typename NextTokenT = Aws::String>
232 void SetNextToken(NextTokenT&& value) {
233 m_nextTokenHasBeenSet = true;
234 m_nextToken = std::forward<NextTokenT>(value);
235 }
236 template <typename NextTokenT = Aws::String>
238 SetNextToken(std::forward<NextTokenT>(value));
239 return *this;
240 }
242 private:
243 Aws::Vector<Aws::String> m_alarmNames;
244
245 Aws::String m_alarmNamePrefix;
246
247 Aws::Vector<AlarmType> m_alarmTypes;
248
249 Aws::String m_childrenOfAlarmName;
250
251 Aws::String m_parentsOfAlarmName;
252
253 StateValue m_stateValue{StateValue::NOT_SET};
254
255 Aws::String m_actionPrefix;
256
257 int m_maxRecords{0};
258
259 Aws::String m_nextToken;
260 bool m_alarmNamesHasBeenSet = false;
261 bool m_alarmNamePrefixHasBeenSet = false;
262 bool m_alarmTypesHasBeenSet = false;
263 bool m_childrenOfAlarmNameHasBeenSet = false;
264 bool m_parentsOfAlarmNameHasBeenSet = false;
265 bool m_stateValueHasBeenSet = false;
266 bool m_actionPrefixHasBeenSet = false;
267 bool m_maxRecordsHasBeenSet = false;
268 bool m_nextTokenHasBeenSet = false;
269};
270
271} // namespace Model
272} // namespace CloudWatch
273} // 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