AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PutCompositeAlarmRequest.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/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace CloudWatch
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_CLOUDWATCH_API PutCompositeAlarmRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "PutCompositeAlarm"; }
33
34 AWS_CLOUDWATCH_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_CLOUDWATCH_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
46 inline bool GetActionsEnabled() const { return m_actionsEnabled; }
47 inline bool ActionsEnabledHasBeenSet() const { return m_actionsEnabledHasBeenSet; }
48 inline void SetActionsEnabled(bool value) { m_actionsEnabledHasBeenSet = true; m_actionsEnabled = value; }
49 inline PutCompositeAlarmRequest& WithActionsEnabled(bool value) { SetActionsEnabled(value); return *this;}
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) { m_alarmActionsHasBeenSet = true; m_alarmActions = std::forward<AlarmActionsT>(value); }
76 template<typename AlarmActionsT = Aws::Vector<Aws::String>>
77 PutCompositeAlarmRequest& WithAlarmActions(AlarmActionsT&& value) { SetAlarmActions(std::forward<AlarmActionsT>(value)); return *this;}
78 template<typename AlarmActionsT = Aws::String>
79 PutCompositeAlarmRequest& AddAlarmActions(AlarmActionsT&& value) { m_alarmActionsHasBeenSet = true; m_alarmActions.emplace_back(std::forward<AlarmActionsT>(value)); return *this; }
81
83
86 inline const Aws::String& GetAlarmDescription() const { return m_alarmDescription; }
87 inline bool AlarmDescriptionHasBeenSet() const { return m_alarmDescriptionHasBeenSet; }
88 template<typename AlarmDescriptionT = Aws::String>
89 void SetAlarmDescription(AlarmDescriptionT&& value) { m_alarmDescriptionHasBeenSet = true; m_alarmDescription = std::forward<AlarmDescriptionT>(value); }
90 template<typename AlarmDescriptionT = Aws::String>
91 PutCompositeAlarmRequest& WithAlarmDescription(AlarmDescriptionT&& value) { SetAlarmDescription(std::forward<AlarmDescriptionT>(value)); return *this;}
93
95
99 inline const Aws::String& GetAlarmName() const { return m_alarmName; }
100 inline bool AlarmNameHasBeenSet() const { return m_alarmNameHasBeenSet; }
101 template<typename AlarmNameT = Aws::String>
102 void SetAlarmName(AlarmNameT&& value) { m_alarmNameHasBeenSet = true; m_alarmName = std::forward<AlarmNameT>(value); }
103 template<typename AlarmNameT = Aws::String>
104 PutCompositeAlarmRequest& WithAlarmName(AlarmNameT&& value) { SetAlarmName(std::forward<AlarmNameT>(value)); return *this;}
106
108
146 inline const Aws::String& GetAlarmRule() const { return m_alarmRule; }
147 inline bool AlarmRuleHasBeenSet() const { return m_alarmRuleHasBeenSet; }
148 template<typename AlarmRuleT = Aws::String>
149 void SetAlarmRule(AlarmRuleT&& value) { m_alarmRuleHasBeenSet = true; m_alarmRule = std::forward<AlarmRuleT>(value); }
150 template<typename AlarmRuleT = Aws::String>
151 PutCompositeAlarmRequest& WithAlarmRule(AlarmRuleT&& value) { SetAlarmRule(std::forward<AlarmRuleT>(value)); return *this;}
153
155
170 inline const Aws::Vector<Aws::String>& GetInsufficientDataActions() const { return m_insufficientDataActions; }
171 inline bool InsufficientDataActionsHasBeenSet() const { return m_insufficientDataActionsHasBeenSet; }
172 template<typename InsufficientDataActionsT = Aws::Vector<Aws::String>>
173 void SetInsufficientDataActions(InsufficientDataActionsT&& value) { m_insufficientDataActionsHasBeenSet = true; m_insufficientDataActions = std::forward<InsufficientDataActionsT>(value); }
174 template<typename InsufficientDataActionsT = Aws::Vector<Aws::String>>
175 PutCompositeAlarmRequest& WithInsufficientDataActions(InsufficientDataActionsT&& value) { SetInsufficientDataActions(std::forward<InsufficientDataActionsT>(value)); return *this;}
176 template<typename InsufficientDataActionsT = Aws::String>
177 PutCompositeAlarmRequest& AddInsufficientDataActions(InsufficientDataActionsT&& value) { m_insufficientDataActionsHasBeenSet = true; m_insufficientDataActions.emplace_back(std::forward<InsufficientDataActionsT>(value)); return *this; }
179
181
195 inline const Aws::Vector<Aws::String>& GetOKActions() const { return m_oKActions; }
196 inline bool OKActionsHasBeenSet() const { return m_oKActionsHasBeenSet; }
197 template<typename OKActionsT = Aws::Vector<Aws::String>>
198 void SetOKActions(OKActionsT&& value) { m_oKActionsHasBeenSet = true; m_oKActions = std::forward<OKActionsT>(value); }
199 template<typename OKActionsT = Aws::Vector<Aws::String>>
200 PutCompositeAlarmRequest& WithOKActions(OKActionsT&& value) { SetOKActions(std::forward<OKActionsT>(value)); return *this;}
201 template<typename OKActionsT = Aws::String>
202 PutCompositeAlarmRequest& AddOKActions(OKActionsT&& value) { m_oKActionsHasBeenSet = true; m_oKActions.emplace_back(std::forward<OKActionsT>(value)); return *this; }
204
206
219 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
220 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
221 template<typename TagsT = Aws::Vector<Tag>>
222 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
223 template<typename TagsT = Aws::Vector<Tag>>
224 PutCompositeAlarmRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
225 template<typename TagsT = Tag>
226 PutCompositeAlarmRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
228
230
235 inline const Aws::String& GetActionsSuppressor() const { return m_actionsSuppressor; }
236 inline bool ActionsSuppressorHasBeenSet() const { return m_actionsSuppressorHasBeenSet; }
237 template<typename ActionsSuppressorT = Aws::String>
238 void SetActionsSuppressor(ActionsSuppressorT&& value) { m_actionsSuppressorHasBeenSet = true; m_actionsSuppressor = std::forward<ActionsSuppressorT>(value); }
239 template<typename ActionsSuppressorT = Aws::String>
240 PutCompositeAlarmRequest& WithActionsSuppressor(ActionsSuppressorT&& value) { SetActionsSuppressor(std::forward<ActionsSuppressorT>(value)); return *this;}
242
244
251 inline int GetActionsSuppressorWaitPeriod() const { return m_actionsSuppressorWaitPeriod; }
252 inline bool ActionsSuppressorWaitPeriodHasBeenSet() const { return m_actionsSuppressorWaitPeriodHasBeenSet; }
253 inline void SetActionsSuppressorWaitPeriod(int value) { m_actionsSuppressorWaitPeriodHasBeenSet = true; m_actionsSuppressorWaitPeriod = value; }
256
258
265 inline int GetActionsSuppressorExtensionPeriod() const { return m_actionsSuppressorExtensionPeriod; }
266 inline bool ActionsSuppressorExtensionPeriodHasBeenSet() const { return m_actionsSuppressorExtensionPeriodHasBeenSet; }
267 inline void SetActionsSuppressorExtensionPeriod(int value) { m_actionsSuppressorExtensionPeriodHasBeenSet = true; m_actionsSuppressorExtensionPeriod = value; }
270 private:
271
272 bool m_actionsEnabled{false};
273 bool m_actionsEnabledHasBeenSet = false;
274
275 Aws::Vector<Aws::String> m_alarmActions;
276 bool m_alarmActionsHasBeenSet = false;
277
278 Aws::String m_alarmDescription;
279 bool m_alarmDescriptionHasBeenSet = false;
280
281 Aws::String m_alarmName;
282 bool m_alarmNameHasBeenSet = false;
283
284 Aws::String m_alarmRule;
285 bool m_alarmRuleHasBeenSet = false;
286
287 Aws::Vector<Aws::String> m_insufficientDataActions;
288 bool m_insufficientDataActionsHasBeenSet = false;
289
290 Aws::Vector<Aws::String> m_oKActions;
291 bool m_oKActionsHasBeenSet = false;
292
293 Aws::Vector<Tag> m_tags;
294 bool m_tagsHasBeenSet = false;
295
296 Aws::String m_actionsSuppressor;
297 bool m_actionsSuppressorHasBeenSet = false;
298
299 int m_actionsSuppressorWaitPeriod{0};
300 bool m_actionsSuppressorWaitPeriodHasBeenSet = false;
301
302 int m_actionsSuppressorExtensionPeriod{0};
303 bool m_actionsSuppressorExtensionPeriodHasBeenSet = false;
304 };
305
306} // namespace Model
307} // namespace CloudWatch
308} // 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)
AWS_CLOUDWATCH_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
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)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector