AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAlarmNames(const Aws::Vector<Aws::String>& value) { m_alarmNamesHasBeenSet = true; m_alarmNames = value; }
49 inline void SetAlarmNames(Aws::Vector<Aws::String>&& value) { m_alarmNamesHasBeenSet = true; m_alarmNames = std::move(value); }
50 inline DescribeAlarmsRequest& WithAlarmNames(const Aws::Vector<Aws::String>& value) { SetAlarmNames(value); return *this;}
51 inline DescribeAlarmsRequest& WithAlarmNames(Aws::Vector<Aws::String>&& value) { SetAlarmNames(std::move(value)); return *this;}
52 inline DescribeAlarmsRequest& AddAlarmNames(const Aws::String& value) { m_alarmNamesHasBeenSet = true; m_alarmNames.push_back(value); return *this; }
53 inline DescribeAlarmsRequest& AddAlarmNames(Aws::String&& value) { m_alarmNamesHasBeenSet = true; m_alarmNames.push_back(std::move(value)); return *this; }
54 inline DescribeAlarmsRequest& AddAlarmNames(const char* value) { m_alarmNamesHasBeenSet = true; m_alarmNames.push_back(value); return *this; }
56
58
63 inline const Aws::String& GetAlarmNamePrefix() const{ return m_alarmNamePrefix; }
64 inline bool AlarmNamePrefixHasBeenSet() const { return m_alarmNamePrefixHasBeenSet; }
65 inline void SetAlarmNamePrefix(const Aws::String& value) { m_alarmNamePrefixHasBeenSet = true; m_alarmNamePrefix = value; }
66 inline void SetAlarmNamePrefix(Aws::String&& value) { m_alarmNamePrefixHasBeenSet = true; m_alarmNamePrefix = std::move(value); }
67 inline void SetAlarmNamePrefix(const char* value) { m_alarmNamePrefixHasBeenSet = true; m_alarmNamePrefix.assign(value); }
68 inline DescribeAlarmsRequest& WithAlarmNamePrefix(const Aws::String& value) { SetAlarmNamePrefix(value); return *this;}
69 inline DescribeAlarmsRequest& WithAlarmNamePrefix(Aws::String&& value) { SetAlarmNamePrefix(std::move(value)); return *this;}
70 inline DescribeAlarmsRequest& WithAlarmNamePrefix(const char* value) { SetAlarmNamePrefix(value); return *this;}
72
74
84 inline const Aws::Vector<AlarmType>& GetAlarmTypes() const{ return m_alarmTypes; }
85 inline bool AlarmTypesHasBeenSet() const { return m_alarmTypesHasBeenSet; }
86 inline void SetAlarmTypes(const Aws::Vector<AlarmType>& value) { m_alarmTypesHasBeenSet = true; m_alarmTypes = value; }
87 inline void SetAlarmTypes(Aws::Vector<AlarmType>&& value) { m_alarmTypesHasBeenSet = true; m_alarmTypes = std::move(value); }
88 inline DescribeAlarmsRequest& WithAlarmTypes(const Aws::Vector<AlarmType>& value) { SetAlarmTypes(value); return *this;}
89 inline DescribeAlarmsRequest& WithAlarmTypes(Aws::Vector<AlarmType>&& value) { SetAlarmTypes(std::move(value)); return *this;}
90 inline DescribeAlarmsRequest& AddAlarmTypes(const AlarmType& value) { m_alarmTypesHasBeenSet = true; m_alarmTypes.push_back(value); return *this; }
91 inline DescribeAlarmsRequest& AddAlarmTypes(AlarmType&& value) { m_alarmTypesHasBeenSet = true; m_alarmTypes.push_back(std::move(value)); return *this; }
93
95
112 inline const Aws::String& GetChildrenOfAlarmName() const{ return m_childrenOfAlarmName; }
113 inline bool ChildrenOfAlarmNameHasBeenSet() const { return m_childrenOfAlarmNameHasBeenSet; }
114 inline void SetChildrenOfAlarmName(const Aws::String& value) { m_childrenOfAlarmNameHasBeenSet = true; m_childrenOfAlarmName = value; }
115 inline void SetChildrenOfAlarmName(Aws::String&& value) { m_childrenOfAlarmNameHasBeenSet = true; m_childrenOfAlarmName = std::move(value); }
116 inline void SetChildrenOfAlarmName(const char* value) { m_childrenOfAlarmNameHasBeenSet = true; m_childrenOfAlarmName.assign(value); }
118 inline DescribeAlarmsRequest& WithChildrenOfAlarmName(Aws::String&& value) { SetChildrenOfAlarmName(std::move(value)); return *this;}
119 inline DescribeAlarmsRequest& WithChildrenOfAlarmName(const char* value) { SetChildrenOfAlarmName(value); return *this;}
121
123
137 inline const Aws::String& GetParentsOfAlarmName() const{ return m_parentsOfAlarmName; }
138 inline bool ParentsOfAlarmNameHasBeenSet() const { return m_parentsOfAlarmNameHasBeenSet; }
139 inline void SetParentsOfAlarmName(const Aws::String& value) { m_parentsOfAlarmNameHasBeenSet = true; m_parentsOfAlarmName = value; }
140 inline void SetParentsOfAlarmName(Aws::String&& value) { m_parentsOfAlarmNameHasBeenSet = true; m_parentsOfAlarmName = std::move(value); }
141 inline void SetParentsOfAlarmName(const char* value) { m_parentsOfAlarmNameHasBeenSet = true; m_parentsOfAlarmName.assign(value); }
143 inline DescribeAlarmsRequest& WithParentsOfAlarmName(Aws::String&& value) { SetParentsOfAlarmName(std::move(value)); return *this;}
144 inline DescribeAlarmsRequest& WithParentsOfAlarmName(const char* value) { SetParentsOfAlarmName(value); return *this;}
146
148
152 inline const StateValue& GetStateValue() const{ return m_stateValue; }
153 inline bool StateValueHasBeenSet() const { return m_stateValueHasBeenSet; }
154 inline void SetStateValue(const StateValue& value) { m_stateValueHasBeenSet = true; m_stateValue = value; }
155 inline void SetStateValue(StateValue&& value) { m_stateValueHasBeenSet = true; m_stateValue = std::move(value); }
156 inline DescribeAlarmsRequest& WithStateValue(const StateValue& value) { SetStateValue(value); return *this;}
157 inline DescribeAlarmsRequest& WithStateValue(StateValue&& value) { SetStateValue(std::move(value)); return *this;}
159
161
166 inline const Aws::String& GetActionPrefix() const{ return m_actionPrefix; }
167 inline bool ActionPrefixHasBeenSet() const { return m_actionPrefixHasBeenSet; }
168 inline void SetActionPrefix(const Aws::String& value) { m_actionPrefixHasBeenSet = true; m_actionPrefix = value; }
169 inline void SetActionPrefix(Aws::String&& value) { m_actionPrefixHasBeenSet = true; m_actionPrefix = std::move(value); }
170 inline void SetActionPrefix(const char* value) { m_actionPrefixHasBeenSet = true; m_actionPrefix.assign(value); }
171 inline DescribeAlarmsRequest& WithActionPrefix(const Aws::String& value) { SetActionPrefix(value); return *this;}
172 inline DescribeAlarmsRequest& WithActionPrefix(Aws::String&& value) { SetActionPrefix(std::move(value)); return *this;}
173 inline DescribeAlarmsRequest& WithActionPrefix(const char* value) { SetActionPrefix(value); return *this;}
175
177
180 inline int GetMaxRecords() const{ return m_maxRecords; }
181 inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
182 inline void SetMaxRecords(int value) { m_maxRecordsHasBeenSet = true; m_maxRecords = value; }
183 inline DescribeAlarmsRequest& WithMaxRecords(int value) { SetMaxRecords(value); return *this;}
185
187
191 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
192 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
193 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
194 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
195 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
196 inline DescribeAlarmsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
197 inline DescribeAlarmsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
198 inline DescribeAlarmsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
200 private:
201
202 Aws::Vector<Aws::String> m_alarmNames;
203 bool m_alarmNamesHasBeenSet = false;
204
205 Aws::String m_alarmNamePrefix;
206 bool m_alarmNamePrefixHasBeenSet = false;
207
208 Aws::Vector<AlarmType> m_alarmTypes;
209 bool m_alarmTypesHasBeenSet = false;
210
211 Aws::String m_childrenOfAlarmName;
212 bool m_childrenOfAlarmNameHasBeenSet = false;
213
214 Aws::String m_parentsOfAlarmName;
215 bool m_parentsOfAlarmNameHasBeenSet = false;
216
217 StateValue m_stateValue;
218 bool m_stateValueHasBeenSet = false;
219
220 Aws::String m_actionPrefix;
221 bool m_actionPrefixHasBeenSet = false;
222
223 int m_maxRecords;
224 bool m_maxRecordsHasBeenSet = false;
225
226 Aws::String m_nextToken;
227 bool m_nextTokenHasBeenSet = false;
228 };
229
230} // namespace Model
231} // namespace CloudWatch
232} // namespace Aws
const Aws::Vector< AlarmType > & GetAlarmTypes() const
void SetAlarmTypes(Aws::Vector< AlarmType > &&value)
void SetAlarmNames(Aws::Vector< Aws::String > &&value)
DescribeAlarmsRequest & WithAlarmNames(Aws::Vector< Aws::String > &&value)
void SetAlarmNames(const Aws::Vector< Aws::String > &value)
DescribeAlarmsRequest & WithAlarmNamePrefix(Aws::String &&value)
AWS_CLOUDWATCH_API Aws::String SerializePayload() const override
DescribeAlarmsRequest & WithNextToken(Aws::String &&value)
DescribeAlarmsRequest & WithAlarmTypes(Aws::Vector< AlarmType > &&value)
DescribeAlarmsRequest & AddAlarmNames(const char *value)
DescribeAlarmsRequest & WithAlarmTypes(const Aws::Vector< AlarmType > &value)
DescribeAlarmsRequest & WithParentsOfAlarmName(const Aws::String &value)
DescribeAlarmsRequest & AddAlarmNames(const Aws::String &value)
DescribeAlarmsRequest & WithChildrenOfAlarmName(Aws::String &&value)
DescribeAlarmsRequest & AddAlarmTypes(const AlarmType &value)
DescribeAlarmsRequest & WithChildrenOfAlarmName(const char *value)
DescribeAlarmsRequest & WithNextToken(const Aws::String &value)
void SetChildrenOfAlarmName(const Aws::String &value)
DescribeAlarmsRequest & WithActionPrefix(const char *value)
DescribeAlarmsRequest & WithStateValue(StateValue &&value)
AWS_CLOUDWATCH_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeAlarmsRequest & WithNextToken(const char *value)
virtual const char * GetServiceRequestName() const override
DescribeAlarmsRequest & AddAlarmNames(Aws::String &&value)
DescribeAlarmsRequest & WithParentsOfAlarmName(Aws::String &&value)
DescribeAlarmsRequest & WithStateValue(const StateValue &value)
DescribeAlarmsRequest & WithParentsOfAlarmName(const char *value)
DescribeAlarmsRequest & AddAlarmTypes(AlarmType &&value)
DescribeAlarmsRequest & WithChildrenOfAlarmName(const Aws::String &value)
DescribeAlarmsRequest & WithActionPrefix(Aws::String &&value)
const Aws::Vector< Aws::String > & GetAlarmNames() const
DescribeAlarmsRequest & WithAlarmNamePrefix(const Aws::String &value)
void SetAlarmTypes(const Aws::Vector< AlarmType > &value)
DescribeAlarmsRequest & WithActionPrefix(const Aws::String &value)
DescribeAlarmsRequest & WithAlarmNamePrefix(const char *value)
DescribeAlarmsRequest & WithMaxRecords(int value)
DescribeAlarmsRequest & WithAlarmNames(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector