AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
PutCompositeAlarmRequest.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/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace CloudWatch {
17namespace Model {
18
22 public:
23 AWS_CLOUDWATCH_API PutCompositeAlarmRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "PutCompositeAlarm"; }
30
31 AWS_CLOUDWATCH_API Aws::String SerializePayload() const override;
32
34
36
40 inline bool GetActionsEnabled() const { return m_actionsEnabled; }
41 inline bool ActionsEnabledHasBeenSet() const { return m_actionsEnabledHasBeenSet; }
42 inline void SetActionsEnabled(bool value) {
43 m_actionsEnabledHasBeenSet = true;
44 m_actionsEnabled = value;
45 }
47 SetActionsEnabled(value);
48 return *this;
49 }
51
53
72 inline const Aws::Vector<Aws::String>& GetAlarmActions() const { return m_alarmActions; }
73 inline bool AlarmActionsHasBeenSet() const { return m_alarmActionsHasBeenSet; }
74 template <typename AlarmActionsT = Aws::Vector<Aws::String>>
75 void SetAlarmActions(AlarmActionsT&& value) {
76 m_alarmActionsHasBeenSet = true;
77 m_alarmActions = std::forward<AlarmActionsT>(value);
78 }
79 template <typename AlarmActionsT = Aws::Vector<Aws::String>>
81 SetAlarmActions(std::forward<AlarmActionsT>(value));
82 return *this;
83 }
84 template <typename AlarmActionsT = Aws::String>
85 PutCompositeAlarmRequest& AddAlarmActions(AlarmActionsT&& value) {
86 m_alarmActionsHasBeenSet = true;
87 m_alarmActions.emplace_back(std::forward<AlarmActionsT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetAlarmDescription() const { return m_alarmDescription; }
97 inline bool AlarmDescriptionHasBeenSet() const { return m_alarmDescriptionHasBeenSet; }
98 template <typename AlarmDescriptionT = Aws::String>
99 void SetAlarmDescription(AlarmDescriptionT&& value) {
100 m_alarmDescriptionHasBeenSet = true;
101 m_alarmDescription = std::forward<AlarmDescriptionT>(value);
102 }
103 template <typename AlarmDescriptionT = Aws::String>
104 PutCompositeAlarmRequest& WithAlarmDescription(AlarmDescriptionT&& value) {
105 SetAlarmDescription(std::forward<AlarmDescriptionT>(value));
106 return *this;
107 }
109
111
115 inline const Aws::String& GetAlarmName() const { return m_alarmName; }
116 inline bool AlarmNameHasBeenSet() const { return m_alarmNameHasBeenSet; }
117 template <typename AlarmNameT = Aws::String>
118 void SetAlarmName(AlarmNameT&& value) {
119 m_alarmNameHasBeenSet = true;
120 m_alarmName = std::forward<AlarmNameT>(value);
121 }
122 template <typename AlarmNameT = Aws::String>
124 SetAlarmName(std::forward<AlarmNameT>(value));
125 return *this;
126 }
128
130
168 inline const Aws::String& GetAlarmRule() const { return m_alarmRule; }
169 inline bool AlarmRuleHasBeenSet() const { return m_alarmRuleHasBeenSet; }
170 template <typename AlarmRuleT = Aws::String>
171 void SetAlarmRule(AlarmRuleT&& value) {
172 m_alarmRuleHasBeenSet = true;
173 m_alarmRule = std::forward<AlarmRuleT>(value);
174 }
175 template <typename AlarmRuleT = Aws::String>
177 SetAlarmRule(std::forward<AlarmRuleT>(value));
178 return *this;
179 }
181
183
198 inline const Aws::Vector<Aws::String>& GetInsufficientDataActions() const { return m_insufficientDataActions; }
199 inline bool InsufficientDataActionsHasBeenSet() const { return m_insufficientDataActionsHasBeenSet; }
200 template <typename InsufficientDataActionsT = Aws::Vector<Aws::String>>
201 void SetInsufficientDataActions(InsufficientDataActionsT&& value) {
202 m_insufficientDataActionsHasBeenSet = true;
203 m_insufficientDataActions = std::forward<InsufficientDataActionsT>(value);
204 }
205 template <typename InsufficientDataActionsT = Aws::Vector<Aws::String>>
206 PutCompositeAlarmRequest& WithInsufficientDataActions(InsufficientDataActionsT&& value) {
207 SetInsufficientDataActions(std::forward<InsufficientDataActionsT>(value));
208 return *this;
209 }
210 template <typename InsufficientDataActionsT = Aws::String>
211 PutCompositeAlarmRequest& AddInsufficientDataActions(InsufficientDataActionsT&& value) {
212 m_insufficientDataActionsHasBeenSet = true;
213 m_insufficientDataActions.emplace_back(std::forward<InsufficientDataActionsT>(value));
214 return *this;
215 }
217
219
233 inline const Aws::Vector<Aws::String>& GetOKActions() const { return m_oKActions; }
234 inline bool OKActionsHasBeenSet() const { return m_oKActionsHasBeenSet; }
235 template <typename OKActionsT = Aws::Vector<Aws::String>>
236 void SetOKActions(OKActionsT&& value) {
237 m_oKActionsHasBeenSet = true;
238 m_oKActions = std::forward<OKActionsT>(value);
239 }
240 template <typename OKActionsT = Aws::Vector<Aws::String>>
242 SetOKActions(std::forward<OKActionsT>(value));
243 return *this;
244 }
245 template <typename OKActionsT = Aws::String>
247 m_oKActionsHasBeenSet = true;
248 m_oKActions.emplace_back(std::forward<OKActionsT>(value));
249 return *this;
250 }
252
254
267 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
268 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
269 template <typename TagsT = Aws::Vector<Tag>>
270 void SetTags(TagsT&& value) {
271 m_tagsHasBeenSet = true;
272 m_tags = std::forward<TagsT>(value);
273 }
274 template <typename TagsT = Aws::Vector<Tag>>
276 SetTags(std::forward<TagsT>(value));
277 return *this;
278 }
279 template <typename TagsT = Tag>
281 m_tagsHasBeenSet = true;
282 m_tags.emplace_back(std::forward<TagsT>(value));
283 return *this;
284 }
286
288
293 inline const Aws::String& GetActionsSuppressor() const { return m_actionsSuppressor; }
294 inline bool ActionsSuppressorHasBeenSet() const { return m_actionsSuppressorHasBeenSet; }
295 template <typename ActionsSuppressorT = Aws::String>
296 void SetActionsSuppressor(ActionsSuppressorT&& value) {
297 m_actionsSuppressorHasBeenSet = true;
298 m_actionsSuppressor = std::forward<ActionsSuppressorT>(value);
299 }
300 template <typename ActionsSuppressorT = Aws::String>
301 PutCompositeAlarmRequest& WithActionsSuppressor(ActionsSuppressorT&& value) {
302 SetActionsSuppressor(std::forward<ActionsSuppressorT>(value));
303 return *this;
304 }
306
308
315 inline int GetActionsSuppressorWaitPeriod() const { return m_actionsSuppressorWaitPeriod; }
316 inline bool ActionsSuppressorWaitPeriodHasBeenSet() const { return m_actionsSuppressorWaitPeriodHasBeenSet; }
317 inline void SetActionsSuppressorWaitPeriod(int value) {
318 m_actionsSuppressorWaitPeriodHasBeenSet = true;
319 m_actionsSuppressorWaitPeriod = value;
320 }
323 return *this;
324 }
326
328
335 inline int GetActionsSuppressorExtensionPeriod() const { return m_actionsSuppressorExtensionPeriod; }
336 inline bool ActionsSuppressorExtensionPeriodHasBeenSet() const { return m_actionsSuppressorExtensionPeriodHasBeenSet; }
337 inline void SetActionsSuppressorExtensionPeriod(int value) {
338 m_actionsSuppressorExtensionPeriodHasBeenSet = true;
339 m_actionsSuppressorExtensionPeriod = value;
340 }
343 return *this;
344 }
346 private:
347 bool m_actionsEnabled{false};
348
349 Aws::Vector<Aws::String> m_alarmActions;
350
351 Aws::String m_alarmDescription;
352
353 Aws::String m_alarmName;
354
355 Aws::String m_alarmRule;
356
357 Aws::Vector<Aws::String> m_insufficientDataActions;
358
359 Aws::Vector<Aws::String> m_oKActions;
360
361 Aws::Vector<Tag> m_tags;
362
363 Aws::String m_actionsSuppressor;
364
365 int m_actionsSuppressorWaitPeriod{0};
366
367 int m_actionsSuppressorExtensionPeriod{0};
368 bool m_actionsEnabledHasBeenSet = false;
369 bool m_alarmActionsHasBeenSet = false;
370 bool m_alarmDescriptionHasBeenSet = false;
371 bool m_alarmNameHasBeenSet = false;
372 bool m_alarmRuleHasBeenSet = false;
373 bool m_insufficientDataActionsHasBeenSet = false;
374 bool m_oKActionsHasBeenSet = false;
375 bool m_tagsHasBeenSet = false;
376 bool m_actionsSuppressorHasBeenSet = false;
377 bool m_actionsSuppressorWaitPeriodHasBeenSet = false;
378 bool m_actionsSuppressorExtensionPeriodHasBeenSet = false;
379};
380
381} // namespace Model
382} // namespace CloudWatch
383} // namespace Aws
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Aws::String > & GetInsufficientDataActions() const
const Aws::Vector< Aws::String > & GetAlarmActions() const
PutCompositeAlarmRequest & WithActionsSuppressorWaitPeriod(int value)
PutCompositeAlarmRequest & WithActionsSuppressorExtensionPeriod(int value)
PutCompositeAlarmRequest & WithTags(TagsT &&value)
PutCompositeAlarmRequest & WithAlarmName(AlarmNameT &&value)
void SetInsufficientDataActions(InsufficientDataActionsT &&value)
PutCompositeAlarmRequest & WithAlarmActions(AlarmActionsT &&value)
AWS_CLOUDWATCH_API Aws::String SerializePayload() const override
PutCompositeAlarmRequest & AddOKActions(OKActionsT &&value)
PutCompositeAlarmRequest & WithOKActions(OKActionsT &&value)
PutCompositeAlarmRequest & WithActionsSuppressor(ActionsSuppressorT &&value)
PutCompositeAlarmRequest & AddInsufficientDataActions(InsufficientDataActionsT &&value)
PutCompositeAlarmRequest & AddTags(TagsT &&value)
PutCompositeAlarmRequest & WithInsufficientDataActions(InsufficientDataActionsT &&value)
AWS_CLOUDWATCH_API PutCompositeAlarmRequest()=default
const Aws::Vector< Aws::String > & GetOKActions() const
PutCompositeAlarmRequest & WithAlarmRule(AlarmRuleT &&value)
PutCompositeAlarmRequest & WithActionsEnabled(bool value)
PutCompositeAlarmRequest & WithAlarmDescription(AlarmDescriptionT &&value)
PutCompositeAlarmRequest & AddAlarmActions(AlarmActionsT &&value)
AWS_CLOUDWATCH_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
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