AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
DescribeAlarmsRequest.h
1
6#pragma once
7#include <aws/monitoring/CloudWatch_EXPORTS.h>
8#include <aws/monitoring/CloudWatchRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/monitoring/model/StateValue.h>
12#include <aws/monitoring/model/AlarmType.h>
13#include <utility>
14
15namespace Aws
16{
17namespace CloudWatch
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_CLOUDWATCH_API DescribeAlarmsRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "DescribeAlarms"; }
34
35 AWS_CLOUDWATCH_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_CLOUDWATCH_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39
40 public:
41
43
46 inline const Aws::Vector<Aws::String>& GetAlarmNames() const { return m_alarmNames; }
47 inline bool AlarmNamesHasBeenSet() const { return m_alarmNamesHasBeenSet; }
48 template<typename AlarmNamesT = Aws::Vector<Aws::String>>
49 void SetAlarmNames(AlarmNamesT&& value) { m_alarmNamesHasBeenSet = true; m_alarmNames = std::forward<AlarmNamesT>(value); }
50 template<typename AlarmNamesT = Aws::Vector<Aws::String>>
51 DescribeAlarmsRequest& WithAlarmNames(AlarmNamesT&& value) { SetAlarmNames(std::forward<AlarmNamesT>(value)); return *this;}
52 template<typename AlarmNamesT = Aws::String>
53 DescribeAlarmsRequest& AddAlarmNames(AlarmNamesT&& value) { m_alarmNamesHasBeenSet = true; m_alarmNames.emplace_back(std::forward<AlarmNamesT>(value)); return *this; }
55
57
62 inline const Aws::String& GetAlarmNamePrefix() const { return m_alarmNamePrefix; }
63 inline bool AlarmNamePrefixHasBeenSet() const { return m_alarmNamePrefixHasBeenSet; }
64 template<typename AlarmNamePrefixT = Aws::String>
65 void SetAlarmNamePrefix(AlarmNamePrefixT&& value) { m_alarmNamePrefixHasBeenSet = true; m_alarmNamePrefix = std::forward<AlarmNamePrefixT>(value); }
66 template<typename AlarmNamePrefixT = Aws::String>
67 DescribeAlarmsRequest& WithAlarmNamePrefix(AlarmNamePrefixT&& value) { SetAlarmNamePrefix(std::forward<AlarmNamePrefixT>(value)); return *this;}
69
71
81 inline const Aws::Vector<AlarmType>& GetAlarmTypes() const { return m_alarmTypes; }
82 inline bool AlarmTypesHasBeenSet() const { return m_alarmTypesHasBeenSet; }
83 template<typename AlarmTypesT = Aws::Vector<AlarmType>>
84 void SetAlarmTypes(AlarmTypesT&& value) { m_alarmTypesHasBeenSet = true; m_alarmTypes = std::forward<AlarmTypesT>(value); }
85 template<typename AlarmTypesT = Aws::Vector<AlarmType>>
86 DescribeAlarmsRequest& WithAlarmTypes(AlarmTypesT&& value) { SetAlarmTypes(std::forward<AlarmTypesT>(value)); return *this;}
87 inline DescribeAlarmsRequest& AddAlarmTypes(AlarmType value) { m_alarmTypesHasBeenSet = true; m_alarmTypes.push_back(value); return *this; }
89
91
108 inline const Aws::String& GetChildrenOfAlarmName() const { return m_childrenOfAlarmName; }
109 inline bool ChildrenOfAlarmNameHasBeenSet() const { return m_childrenOfAlarmNameHasBeenSet; }
110 template<typename ChildrenOfAlarmNameT = Aws::String>
111 void SetChildrenOfAlarmName(ChildrenOfAlarmNameT&& value) { m_childrenOfAlarmNameHasBeenSet = true; m_childrenOfAlarmName = std::forward<ChildrenOfAlarmNameT>(value); }
112 template<typename ChildrenOfAlarmNameT = Aws::String>
113 DescribeAlarmsRequest& WithChildrenOfAlarmName(ChildrenOfAlarmNameT&& value) { SetChildrenOfAlarmName(std::forward<ChildrenOfAlarmNameT>(value)); return *this;}
115
117
131 inline const Aws::String& GetParentsOfAlarmName() const { return m_parentsOfAlarmName; }
132 inline bool ParentsOfAlarmNameHasBeenSet() const { return m_parentsOfAlarmNameHasBeenSet; }
133 template<typename ParentsOfAlarmNameT = Aws::String>
134 void SetParentsOfAlarmName(ParentsOfAlarmNameT&& value) { m_parentsOfAlarmNameHasBeenSet = true; m_parentsOfAlarmName = std::forward<ParentsOfAlarmNameT>(value); }
135 template<typename ParentsOfAlarmNameT = Aws::String>
136 DescribeAlarmsRequest& WithParentsOfAlarmName(ParentsOfAlarmNameT&& value) { SetParentsOfAlarmName(std::forward<ParentsOfAlarmNameT>(value)); return *this;}
138
140
144 inline StateValue GetStateValue() const { return m_stateValue; }
145 inline bool StateValueHasBeenSet() const { return m_stateValueHasBeenSet; }
146 inline void SetStateValue(StateValue value) { m_stateValueHasBeenSet = true; m_stateValue = value; }
147 inline DescribeAlarmsRequest& WithStateValue(StateValue value) { SetStateValue(value); return *this;}
149
151
156 inline const Aws::String& GetActionPrefix() const { return m_actionPrefix; }
157 inline bool ActionPrefixHasBeenSet() const { return m_actionPrefixHasBeenSet; }
158 template<typename ActionPrefixT = Aws::String>
159 void SetActionPrefix(ActionPrefixT&& value) { m_actionPrefixHasBeenSet = true; m_actionPrefix = std::forward<ActionPrefixT>(value); }
160 template<typename ActionPrefixT = Aws::String>
161 DescribeAlarmsRequest& WithActionPrefix(ActionPrefixT&& value) { SetActionPrefix(std::forward<ActionPrefixT>(value)); return *this;}
163
165
168 inline int GetMaxRecords() const { return m_maxRecords; }
169 inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
170 inline void SetMaxRecords(int value) { m_maxRecordsHasBeenSet = true; m_maxRecords = value; }
171 inline DescribeAlarmsRequest& WithMaxRecords(int value) { SetMaxRecords(value); return *this;}
173
175
179 inline const Aws::String& GetNextToken() const { return m_nextToken; }
180 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
181 template<typename NextTokenT = Aws::String>
182 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
183 template<typename NextTokenT = Aws::String>
184 DescribeAlarmsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
186 private:
187
188 Aws::Vector<Aws::String> m_alarmNames;
189 bool m_alarmNamesHasBeenSet = false;
190
191 Aws::String m_alarmNamePrefix;
192 bool m_alarmNamePrefixHasBeenSet = false;
193
194 Aws::Vector<AlarmType> m_alarmTypes;
195 bool m_alarmTypesHasBeenSet = false;
196
197 Aws::String m_childrenOfAlarmName;
198 bool m_childrenOfAlarmNameHasBeenSet = false;
199
200 Aws::String m_parentsOfAlarmName;
201 bool m_parentsOfAlarmNameHasBeenSet = false;
202
203 StateValue m_stateValue{StateValue::NOT_SET};
204 bool m_stateValueHasBeenSet = false;
205
206 Aws::String m_actionPrefix;
207 bool m_actionPrefixHasBeenSet = false;
208
209 int m_maxRecords{0};
210 bool m_maxRecordsHasBeenSet = false;
211
212 Aws::String m_nextToken;
213 bool m_nextTokenHasBeenSet = false;
214 };
215
216} // namespace Model
217} // namespace CloudWatch
218} // namespace Aws
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)
AWS_CLOUDWATCH_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
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)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector