AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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
69 inline const Aws::Vector<Aws::String>& GetAlarmActions() const{ return m_alarmActions; }
70 inline bool AlarmActionsHasBeenSet() const { return m_alarmActionsHasBeenSet; }
71 inline void SetAlarmActions(const Aws::Vector<Aws::String>& value) { m_alarmActionsHasBeenSet = true; m_alarmActions = value; }
72 inline void SetAlarmActions(Aws::Vector<Aws::String>&& value) { m_alarmActionsHasBeenSet = true; m_alarmActions = std::move(value); }
74 inline PutCompositeAlarmRequest& WithAlarmActions(Aws::Vector<Aws::String>&& value) { SetAlarmActions(std::move(value)); return *this;}
75 inline PutCompositeAlarmRequest& AddAlarmActions(const Aws::String& value) { m_alarmActionsHasBeenSet = true; m_alarmActions.push_back(value); return *this; }
76 inline PutCompositeAlarmRequest& AddAlarmActions(Aws::String&& value) { m_alarmActionsHasBeenSet = true; m_alarmActions.push_back(std::move(value)); return *this; }
77 inline PutCompositeAlarmRequest& AddAlarmActions(const char* value) { m_alarmActionsHasBeenSet = true; m_alarmActions.push_back(value); return *this; }
79
81
84 inline const Aws::String& GetAlarmDescription() const{ return m_alarmDescription; }
85 inline bool AlarmDescriptionHasBeenSet() const { return m_alarmDescriptionHasBeenSet; }
86 inline void SetAlarmDescription(const Aws::String& value) { m_alarmDescriptionHasBeenSet = true; m_alarmDescription = value; }
87 inline void SetAlarmDescription(Aws::String&& value) { m_alarmDescriptionHasBeenSet = true; m_alarmDescription = std::move(value); }
88 inline void SetAlarmDescription(const char* value) { m_alarmDescriptionHasBeenSet = true; m_alarmDescription.assign(value); }
90 inline PutCompositeAlarmRequest& WithAlarmDescription(Aws::String&& value) { SetAlarmDescription(std::move(value)); return *this;}
91 inline PutCompositeAlarmRequest& WithAlarmDescription(const char* value) { SetAlarmDescription(value); return *this;}
93
95
99 inline const Aws::String& GetAlarmName() const{ return m_alarmName; }
100 inline bool AlarmNameHasBeenSet() const { return m_alarmNameHasBeenSet; }
101 inline void SetAlarmName(const Aws::String& value) { m_alarmNameHasBeenSet = true; m_alarmName = value; }
102 inline void SetAlarmName(Aws::String&& value) { m_alarmNameHasBeenSet = true; m_alarmName = std::move(value); }
103 inline void SetAlarmName(const char* value) { m_alarmNameHasBeenSet = true; m_alarmName.assign(value); }
104 inline PutCompositeAlarmRequest& WithAlarmName(const Aws::String& value) { SetAlarmName(value); return *this;}
105 inline PutCompositeAlarmRequest& WithAlarmName(Aws::String&& value) { SetAlarmName(std::move(value)); return *this;}
106 inline PutCompositeAlarmRequest& WithAlarmName(const char* value) { SetAlarmName(value); return *this;}
108
110
148 inline const Aws::String& GetAlarmRule() const{ return m_alarmRule; }
149 inline bool AlarmRuleHasBeenSet() const { return m_alarmRuleHasBeenSet; }
150 inline void SetAlarmRule(const Aws::String& value) { m_alarmRuleHasBeenSet = true; m_alarmRule = value; }
151 inline void SetAlarmRule(Aws::String&& value) { m_alarmRuleHasBeenSet = true; m_alarmRule = std::move(value); }
152 inline void SetAlarmRule(const char* value) { m_alarmRuleHasBeenSet = true; m_alarmRule.assign(value); }
153 inline PutCompositeAlarmRequest& WithAlarmRule(const Aws::String& value) { SetAlarmRule(value); return *this;}
154 inline PutCompositeAlarmRequest& WithAlarmRule(Aws::String&& value) { SetAlarmRule(std::move(value)); return *this;}
155 inline PutCompositeAlarmRequest& WithAlarmRule(const char* value) { SetAlarmRule(value); return *this;}
157
159
174 inline const Aws::Vector<Aws::String>& GetInsufficientDataActions() const{ return m_insufficientDataActions; }
175 inline bool InsufficientDataActionsHasBeenSet() const { return m_insufficientDataActionsHasBeenSet; }
176 inline void SetInsufficientDataActions(const Aws::Vector<Aws::String>& value) { m_insufficientDataActionsHasBeenSet = true; m_insufficientDataActions = value; }
177 inline void SetInsufficientDataActions(Aws::Vector<Aws::String>&& value) { m_insufficientDataActionsHasBeenSet = true; m_insufficientDataActions = std::move(value); }
180 inline PutCompositeAlarmRequest& AddInsufficientDataActions(const Aws::String& value) { m_insufficientDataActionsHasBeenSet = true; m_insufficientDataActions.push_back(value); return *this; }
181 inline PutCompositeAlarmRequest& AddInsufficientDataActions(Aws::String&& value) { m_insufficientDataActionsHasBeenSet = true; m_insufficientDataActions.push_back(std::move(value)); return *this; }
182 inline PutCompositeAlarmRequest& AddInsufficientDataActions(const char* value) { m_insufficientDataActionsHasBeenSet = true; m_insufficientDataActions.push_back(value); return *this; }
184
186
200 inline const Aws::Vector<Aws::String>& GetOKActions() const{ return m_oKActions; }
201 inline bool OKActionsHasBeenSet() const { return m_oKActionsHasBeenSet; }
202 inline void SetOKActions(const Aws::Vector<Aws::String>& value) { m_oKActionsHasBeenSet = true; m_oKActions = value; }
203 inline void SetOKActions(Aws::Vector<Aws::String>&& value) { m_oKActionsHasBeenSet = true; m_oKActions = std::move(value); }
205 inline PutCompositeAlarmRequest& WithOKActions(Aws::Vector<Aws::String>&& value) { SetOKActions(std::move(value)); return *this;}
206 inline PutCompositeAlarmRequest& AddOKActions(const Aws::String& value) { m_oKActionsHasBeenSet = true; m_oKActions.push_back(value); return *this; }
207 inline PutCompositeAlarmRequest& AddOKActions(Aws::String&& value) { m_oKActionsHasBeenSet = true; m_oKActions.push_back(std::move(value)); return *this; }
208 inline PutCompositeAlarmRequest& AddOKActions(const char* value) { m_oKActionsHasBeenSet = true; m_oKActions.push_back(value); return *this; }
210
212
225 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
226 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
227 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
228 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
229 inline PutCompositeAlarmRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
230 inline PutCompositeAlarmRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
231 inline PutCompositeAlarmRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
232 inline PutCompositeAlarmRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
234
236
241 inline const Aws::String& GetActionsSuppressor() const{ return m_actionsSuppressor; }
242 inline bool ActionsSuppressorHasBeenSet() const { return m_actionsSuppressorHasBeenSet; }
243 inline void SetActionsSuppressor(const Aws::String& value) { m_actionsSuppressorHasBeenSet = true; m_actionsSuppressor = value; }
244 inline void SetActionsSuppressor(Aws::String&& value) { m_actionsSuppressorHasBeenSet = true; m_actionsSuppressor = std::move(value); }
245 inline void SetActionsSuppressor(const char* value) { m_actionsSuppressorHasBeenSet = true; m_actionsSuppressor.assign(value); }
247 inline PutCompositeAlarmRequest& WithActionsSuppressor(Aws::String&& value) { SetActionsSuppressor(std::move(value)); return *this;}
248 inline PutCompositeAlarmRequest& WithActionsSuppressor(const char* value) { SetActionsSuppressor(value); return *this;}
250
252
259 inline int GetActionsSuppressorWaitPeriod() const{ return m_actionsSuppressorWaitPeriod; }
260 inline bool ActionsSuppressorWaitPeriodHasBeenSet() const { return m_actionsSuppressorWaitPeriodHasBeenSet; }
261 inline void SetActionsSuppressorWaitPeriod(int value) { m_actionsSuppressorWaitPeriodHasBeenSet = true; m_actionsSuppressorWaitPeriod = value; }
264
266
273 inline int GetActionsSuppressorExtensionPeriod() const{ return m_actionsSuppressorExtensionPeriod; }
274 inline bool ActionsSuppressorExtensionPeriodHasBeenSet() const { return m_actionsSuppressorExtensionPeriodHasBeenSet; }
275 inline void SetActionsSuppressorExtensionPeriod(int value) { m_actionsSuppressorExtensionPeriodHasBeenSet = true; m_actionsSuppressorExtensionPeriod = value; }
278 private:
279
280 bool m_actionsEnabled;
281 bool m_actionsEnabledHasBeenSet = false;
282
283 Aws::Vector<Aws::String> m_alarmActions;
284 bool m_alarmActionsHasBeenSet = false;
285
286 Aws::String m_alarmDescription;
287 bool m_alarmDescriptionHasBeenSet = false;
288
289 Aws::String m_alarmName;
290 bool m_alarmNameHasBeenSet = false;
291
292 Aws::String m_alarmRule;
293 bool m_alarmRuleHasBeenSet = false;
294
295 Aws::Vector<Aws::String> m_insufficientDataActions;
296 bool m_insufficientDataActionsHasBeenSet = false;
297
298 Aws::Vector<Aws::String> m_oKActions;
299 bool m_oKActionsHasBeenSet = false;
300
301 Aws::Vector<Tag> m_tags;
302 bool m_tagsHasBeenSet = false;
303
304 Aws::String m_actionsSuppressor;
305 bool m_actionsSuppressorHasBeenSet = false;
306
307 int m_actionsSuppressorWaitPeriod;
308 bool m_actionsSuppressorWaitPeriodHasBeenSet = false;
309
310 int m_actionsSuppressorExtensionPeriod;
311 bool m_actionsSuppressorExtensionPeriodHasBeenSet = false;
312 };
313
314} // namespace Model
315} // namespace CloudWatch
316} // namespace Aws
PutCompositeAlarmRequest & WithAlarmName(Aws::String &&value)
PutCompositeAlarmRequest & WithAlarmRule(const char *value)
PutCompositeAlarmRequest & WithActionsSuppressor(const Aws::String &value)
PutCompositeAlarmRequest & AddInsufficientDataActions(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
PutCompositeAlarmRequest & WithAlarmName(const char *value)
PutCompositeAlarmRequest & WithAlarmDescription(Aws::String &&value)
const Aws::Vector< Aws::String > & GetInsufficientDataActions() const
PutCompositeAlarmRequest & WithOKActions(Aws::Vector< Aws::String > &&value)
void SetOKActions(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetAlarmActions() const
PutCompositeAlarmRequest & WithOKActions(const Aws::Vector< Aws::String > &value)
void SetInsufficientDataActions(Aws::Vector< Aws::String > &&value)
PutCompositeAlarmRequest & WithActionsSuppressorWaitPeriod(int value)
void SetInsufficientDataActions(const Aws::Vector< Aws::String > &value)
PutCompositeAlarmRequest & WithAlarmRule(const Aws::String &value)
PutCompositeAlarmRequest & WithActionsSuppressorExtensionPeriod(int value)
PutCompositeAlarmRequest & WithInsufficientDataActions(const Aws::Vector< Aws::String > &value)
PutCompositeAlarmRequest & WithTags(Aws::Vector< Tag > &&value)
PutCompositeAlarmRequest & WithAlarmActions(Aws::Vector< Aws::String > &&value)
PutCompositeAlarmRequest & WithInsufficientDataActions(Aws::Vector< Aws::String > &&value)
PutCompositeAlarmRequest & AddTags(const Tag &value)
PutCompositeAlarmRequest & WithAlarmDescription(const char *value)
void SetAlarmActions(Aws::Vector< Aws::String > &&value)
PutCompositeAlarmRequest & WithAlarmName(const Aws::String &value)
PutCompositeAlarmRequest & WithActionsSuppressor(const char *value)
PutCompositeAlarmRequest & AddAlarmActions(Aws::String &&value)
AWS_CLOUDWATCH_API Aws::String SerializePayload() const override
PutCompositeAlarmRequest & AddInsufficientDataActions(const char *value)
PutCompositeAlarmRequest & AddOKActions(Aws::String &&value)
AWS_CLOUDWATCH_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
PutCompositeAlarmRequest & AddAlarmActions(const Aws::String &value)
PutCompositeAlarmRequest & AddTags(Tag &&value)
PutCompositeAlarmRequest & AddInsufficientDataActions(const Aws::String &value)
PutCompositeAlarmRequest & AddOKActions(const Aws::String &value)
PutCompositeAlarmRequest & WithAlarmActions(const Aws::Vector< Aws::String > &value)
void SetOKActions(Aws::Vector< Aws::String > &&value)
void SetAlarmActions(const Aws::Vector< Aws::String > &value)
PutCompositeAlarmRequest & AddOKActions(const char *value)
PutCompositeAlarmRequest & WithActionsSuppressor(Aws::String &&value)
PutCompositeAlarmRequest & WithTags(const Aws::Vector< Tag > &value)
const Aws::Vector< Aws::String > & GetOKActions() const
PutCompositeAlarmRequest & WithAlarmRule(Aws::String &&value)
PutCompositeAlarmRequest & WithAlarmDescription(const Aws::String &value)
PutCompositeAlarmRequest & WithActionsEnabled(bool value)
PutCompositeAlarmRequest & AddAlarmActions(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector