AWS SDK for C++  1.9.67
AWS SDK for C++
UpdateAlarmModelRequest.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace IoTEvents
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "UpdateAlarmModel"; }
35 
36  Aws::String SerializePayload() const override;
37 
38 
42  inline const Aws::String& GetAlarmModelName() const{ return m_alarmModelName; }
43 
47  inline bool AlarmModelNameHasBeenSet() const { return m_alarmModelNameHasBeenSet; }
48 
52  inline void SetAlarmModelName(const Aws::String& value) { m_alarmModelNameHasBeenSet = true; m_alarmModelName = value; }
53 
57  inline void SetAlarmModelName(Aws::String&& value) { m_alarmModelNameHasBeenSet = true; m_alarmModelName = std::move(value); }
58 
62  inline void SetAlarmModelName(const char* value) { m_alarmModelNameHasBeenSet = true; m_alarmModelName.assign(value); }
63 
67  inline UpdateAlarmModelRequest& WithAlarmModelName(const Aws::String& value) { SetAlarmModelName(value); return *this;}
68 
72  inline UpdateAlarmModelRequest& WithAlarmModelName(Aws::String&& value) { SetAlarmModelName(std::move(value)); return *this;}
73 
77  inline UpdateAlarmModelRequest& WithAlarmModelName(const char* value) { SetAlarmModelName(value); return *this;}
78 
79 
83  inline const Aws::String& GetAlarmModelDescription() const{ return m_alarmModelDescription; }
84 
88  inline bool AlarmModelDescriptionHasBeenSet() const { return m_alarmModelDescriptionHasBeenSet; }
89 
93  inline void SetAlarmModelDescription(const Aws::String& value) { m_alarmModelDescriptionHasBeenSet = true; m_alarmModelDescription = value; }
94 
98  inline void SetAlarmModelDescription(Aws::String&& value) { m_alarmModelDescriptionHasBeenSet = true; m_alarmModelDescription = std::move(value); }
99 
103  inline void SetAlarmModelDescription(const char* value) { m_alarmModelDescriptionHasBeenSet = true; m_alarmModelDescription.assign(value); }
104 
108  inline UpdateAlarmModelRequest& WithAlarmModelDescription(const Aws::String& value) { SetAlarmModelDescription(value); return *this;}
109 
113  inline UpdateAlarmModelRequest& WithAlarmModelDescription(Aws::String&& value) { SetAlarmModelDescription(std::move(value)); return *this;}
114 
118  inline UpdateAlarmModelRequest& WithAlarmModelDescription(const char* value) { SetAlarmModelDescription(value); return *this;}
119 
120 
127  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
128 
135  inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
136 
143  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
144 
151  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
152 
159  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
160 
167  inline UpdateAlarmModelRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
168 
175  inline UpdateAlarmModelRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
176 
183  inline UpdateAlarmModelRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
184 
185 
189  inline int GetSeverity() const{ return m_severity; }
190 
194  inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
195 
199  inline void SetSeverity(int value) { m_severityHasBeenSet = true; m_severity = value; }
200 
204  inline UpdateAlarmModelRequest& WithSeverity(int value) { SetSeverity(value); return *this;}
205 
206 
210  inline const AlarmRule& GetAlarmRule() const{ return m_alarmRule; }
211 
215  inline bool AlarmRuleHasBeenSet() const { return m_alarmRuleHasBeenSet; }
216 
220  inline void SetAlarmRule(const AlarmRule& value) { m_alarmRuleHasBeenSet = true; m_alarmRule = value; }
221 
225  inline void SetAlarmRule(AlarmRule&& value) { m_alarmRuleHasBeenSet = true; m_alarmRule = std::move(value); }
226 
230  inline UpdateAlarmModelRequest& WithAlarmRule(const AlarmRule& value) { SetAlarmRule(value); return *this;}
231 
235  inline UpdateAlarmModelRequest& WithAlarmRule(AlarmRule&& value) { SetAlarmRule(std::move(value)); return *this;}
236 
237 
241  inline const AlarmNotification& GetAlarmNotification() const{ return m_alarmNotification; }
242 
246  inline bool AlarmNotificationHasBeenSet() const { return m_alarmNotificationHasBeenSet; }
247 
251  inline void SetAlarmNotification(const AlarmNotification& value) { m_alarmNotificationHasBeenSet = true; m_alarmNotification = value; }
252 
256  inline void SetAlarmNotification(AlarmNotification&& value) { m_alarmNotificationHasBeenSet = true; m_alarmNotification = std::move(value); }
257 
261  inline UpdateAlarmModelRequest& WithAlarmNotification(const AlarmNotification& value) { SetAlarmNotification(value); return *this;}
262 
266  inline UpdateAlarmModelRequest& WithAlarmNotification(AlarmNotification&& value) { SetAlarmNotification(std::move(value)); return *this;}
267 
268 
272  inline const AlarmEventActions& GetAlarmEventActions() const{ return m_alarmEventActions; }
273 
277  inline bool AlarmEventActionsHasBeenSet() const { return m_alarmEventActionsHasBeenSet; }
278 
282  inline void SetAlarmEventActions(const AlarmEventActions& value) { m_alarmEventActionsHasBeenSet = true; m_alarmEventActions = value; }
283 
287  inline void SetAlarmEventActions(AlarmEventActions&& value) { m_alarmEventActionsHasBeenSet = true; m_alarmEventActions = std::move(value); }
288 
292  inline UpdateAlarmModelRequest& WithAlarmEventActions(const AlarmEventActions& value) { SetAlarmEventActions(value); return *this;}
293 
297  inline UpdateAlarmModelRequest& WithAlarmEventActions(AlarmEventActions&& value) { SetAlarmEventActions(std::move(value)); return *this;}
298 
299 
303  inline const AlarmCapabilities& GetAlarmCapabilities() const{ return m_alarmCapabilities; }
304 
308  inline bool AlarmCapabilitiesHasBeenSet() const { return m_alarmCapabilitiesHasBeenSet; }
309 
313  inline void SetAlarmCapabilities(const AlarmCapabilities& value) { m_alarmCapabilitiesHasBeenSet = true; m_alarmCapabilities = value; }
314 
318  inline void SetAlarmCapabilities(AlarmCapabilities&& value) { m_alarmCapabilitiesHasBeenSet = true; m_alarmCapabilities = std::move(value); }
319 
323  inline UpdateAlarmModelRequest& WithAlarmCapabilities(const AlarmCapabilities& value) { SetAlarmCapabilities(value); return *this;}
324 
328  inline UpdateAlarmModelRequest& WithAlarmCapabilities(AlarmCapabilities&& value) { SetAlarmCapabilities(std::move(value)); return *this;}
329 
330  private:
331 
332  Aws::String m_alarmModelName;
333  bool m_alarmModelNameHasBeenSet;
334 
335  Aws::String m_alarmModelDescription;
336  bool m_alarmModelDescriptionHasBeenSet;
337 
338  Aws::String m_roleArn;
339  bool m_roleArnHasBeenSet;
340 
341  int m_severity;
342  bool m_severityHasBeenSet;
343 
344  AlarmRule m_alarmRule;
345  bool m_alarmRuleHasBeenSet;
346 
347  AlarmNotification m_alarmNotification;
348  bool m_alarmNotificationHasBeenSet;
349 
350  AlarmEventActions m_alarmEventActions;
351  bool m_alarmEventActionsHasBeenSet;
352 
353  AlarmCapabilities m_alarmCapabilities;
354  bool m_alarmCapabilitiesHasBeenSet;
355  };
356 
357 } // namespace Model
358 } // namespace IoTEvents
359 } // namespace Aws
Aws::IoTEvents::Model::UpdateAlarmModelRequest::SetAlarmNotification
void SetAlarmNotification(const AlarmNotification &value)
Definition: UpdateAlarmModelRequest.h:251
AlarmEventActions.h
Aws::IoTEvents::Model::UpdateAlarmModelRequest::WithRoleArn
UpdateAlarmModelRequest & WithRoleArn(const Aws::String &value)
Definition: UpdateAlarmModelRequest.h:167
Aws::IoTEvents::Model::UpdateAlarmModelRequest::WithRoleArn
UpdateAlarmModelRequest & WithRoleArn(Aws::String &&value)
Definition: UpdateAlarmModelRequest.h:175
Aws::IoTEvents::Model::UpdateAlarmModelRequest::AlarmModelDescriptionHasBeenSet
bool AlarmModelDescriptionHasBeenSet() const
Definition: UpdateAlarmModelRequest.h:88
Aws::IoTEvents::Model::UpdateAlarmModelRequest::RoleArnHasBeenSet
bool RoleArnHasBeenSet() const
Definition: UpdateAlarmModelRequest.h:135
IoTEventsRequest.h
Aws::IoTEvents::Model::UpdateAlarmModelRequest::AlarmCapabilitiesHasBeenSet
bool AlarmCapabilitiesHasBeenSet() const
Definition: UpdateAlarmModelRequest.h:308
Aws::IoTEvents::Model::UpdateAlarmModelRequest::AlarmRuleHasBeenSet
bool AlarmRuleHasBeenSet() const
Definition: UpdateAlarmModelRequest.h:215
Aws::IoTEvents::Model::UpdateAlarmModelRequest::SetRoleArn
void SetRoleArn(Aws::String &&value)
Definition: UpdateAlarmModelRequest.h:151
Aws::IoTEvents::Model::UpdateAlarmModelRequest::WithAlarmModelDescription
UpdateAlarmModelRequest & WithAlarmModelDescription(const Aws::String &value)
Definition: UpdateAlarmModelRequest.h:108
Aws::IoTEvents::Model::UpdateAlarmModelRequest::AlarmModelNameHasBeenSet
bool AlarmModelNameHasBeenSet() const
Definition: UpdateAlarmModelRequest.h:47
AlarmCapabilities.h
Aws::IoTEvents::Model::UpdateAlarmModelRequest::WithAlarmEventActions
UpdateAlarmModelRequest & WithAlarmEventActions(AlarmEventActions &&value)
Definition: UpdateAlarmModelRequest.h:297
Aws::IoTEvents::Model::AlarmCapabilities
Definition: AlarmCapabilities.h:34
Aws::IoTEvents::Model::UpdateAlarmModelRequest::SetAlarmModelDescription
void SetAlarmModelDescription(const char *value)
Definition: UpdateAlarmModelRequest.h:103
Aws::IoTEvents::Model::UpdateAlarmModelRequest::UpdateAlarmModelRequest
UpdateAlarmModelRequest()
Aws::IoTEvents::Model::UpdateAlarmModelRequest::SetAlarmCapabilities
void SetAlarmCapabilities(const AlarmCapabilities &value)
Definition: UpdateAlarmModelRequest.h:313
Aws::IoTEvents::Model::UpdateAlarmModelRequest::WithAlarmRule
UpdateAlarmModelRequest & WithAlarmRule(AlarmRule &&value)
Definition: UpdateAlarmModelRequest.h:235
Aws::IoTEvents::Model::UpdateAlarmModelRequest::WithAlarmModelName
UpdateAlarmModelRequest & WithAlarmModelName(const Aws::String &value)
Definition: UpdateAlarmModelRequest.h:67
Aws::IoTEvents::Model::UpdateAlarmModelRequest::SetAlarmModelName
void SetAlarmModelName(const Aws::String &value)
Definition: UpdateAlarmModelRequest.h:52
Aws::IoTEvents::Model::UpdateAlarmModelRequest::SetRoleArn
void SetRoleArn(const Aws::String &value)
Definition: UpdateAlarmModelRequest.h:143
Aws::IoTEvents::Model::UpdateAlarmModelRequest::GetAlarmModelDescription
const Aws::String & GetAlarmModelDescription() const
Definition: UpdateAlarmModelRequest.h:83
Aws::IoTEvents::Model::UpdateAlarmModelRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoTEvents::Model::UpdateAlarmModelRequest::SetAlarmRule
void SetAlarmRule(AlarmRule &&value)
Definition: UpdateAlarmModelRequest.h:225
Aws::IoTEvents::Model::UpdateAlarmModelRequest::WithAlarmNotification
UpdateAlarmModelRequest & WithAlarmNotification(const AlarmNotification &value)
Definition: UpdateAlarmModelRequest.h:261
Aws::IoTEvents::Model::UpdateAlarmModelRequest::GetRoleArn
const Aws::String & GetRoleArn() const
Definition: UpdateAlarmModelRequest.h:127
Aws::IoTEvents::Model::UpdateAlarmModelRequest::WithSeverity
UpdateAlarmModelRequest & WithSeverity(int value)
Definition: UpdateAlarmModelRequest.h:204
Aws::IoTEvents::Model::UpdateAlarmModelRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateAlarmModelRequest.h:34
Aws::IoTEvents::Model::UpdateAlarmModelRequest::WithAlarmNotification
UpdateAlarmModelRequest & WithAlarmNotification(AlarmNotification &&value)
Definition: UpdateAlarmModelRequest.h:266
AlarmNotification.h
Aws::IoTEvents::Model::UpdateAlarmModelRequest
Definition: UpdateAlarmModelRequest.h:26
Aws::IoTEvents::Model::UpdateAlarmModelRequest::SeverityHasBeenSet
bool SeverityHasBeenSet() const
Definition: UpdateAlarmModelRequest.h:194
Aws::IoTEvents::Model::UpdateAlarmModelRequest::GetAlarmCapabilities
const AlarmCapabilities & GetAlarmCapabilities() const
Definition: UpdateAlarmModelRequest.h:303
Aws::IoTEvents::Model::UpdateAlarmModelRequest::SetAlarmModelName
void SetAlarmModelName(const char *value)
Definition: UpdateAlarmModelRequest.h:62
Aws::IoTEvents::Model::AlarmNotification
Definition: AlarmNotification.h:34
Aws::IoTEvents::Model::AlarmRule
Definition: AlarmRule.h:32
Aws::IoTEvents::Model::AlarmEventActions
Definition: AlarmEventActions.h:34
Aws::IoTEvents::Model::UpdateAlarmModelRequest::SetRoleArn
void SetRoleArn(const char *value)
Definition: UpdateAlarmModelRequest.h:159
Aws::IoTEvents::Model::UpdateAlarmModelRequest::WithAlarmModelName
UpdateAlarmModelRequest & WithAlarmModelName(const char *value)
Definition: UpdateAlarmModelRequest.h:77
Aws::IoTEvents::Model::UpdateAlarmModelRequest::WithAlarmModelDescription
UpdateAlarmModelRequest & WithAlarmModelDescription(Aws::String &&value)
Definition: UpdateAlarmModelRequest.h:113
AWSString.h
Aws::IoTEvents::Model::UpdateAlarmModelRequest::SetAlarmRule
void SetAlarmRule(const AlarmRule &value)
Definition: UpdateAlarmModelRequest.h:220
Aws::IoTEvents::IoTEventsRequest
Definition: IoTEventsRequest.h:17
Aws::IoTEvents::Model::UpdateAlarmModelRequest::AlarmEventActionsHasBeenSet
bool AlarmEventActionsHasBeenSet() const
Definition: UpdateAlarmModelRequest.h:277
Aws::IoTEvents::Model::UpdateAlarmModelRequest::GetAlarmNotification
const AlarmNotification & GetAlarmNotification() const
Definition: UpdateAlarmModelRequest.h:241
Aws::IoTEvents::Model::UpdateAlarmModelRequest::SetSeverity
void SetSeverity(int value)
Definition: UpdateAlarmModelRequest.h:199
Aws::IoTEvents::Model::UpdateAlarmModelRequest::WithAlarmModelName
UpdateAlarmModelRequest & WithAlarmModelName(Aws::String &&value)
Definition: UpdateAlarmModelRequest.h:72
Aws::IoTEvents::Model::UpdateAlarmModelRequest::GetAlarmEventActions
const AlarmEventActions & GetAlarmEventActions() const
Definition: UpdateAlarmModelRequest.h:272
Aws::IoTEvents::Model::UpdateAlarmModelRequest::SetAlarmModelName
void SetAlarmModelName(Aws::String &&value)
Definition: UpdateAlarmModelRequest.h:57
Aws::IoTEvents::Model::UpdateAlarmModelRequest::WithAlarmRule
UpdateAlarmModelRequest & WithAlarmRule(const AlarmRule &value)
Definition: UpdateAlarmModelRequest.h:230
Aws::IoTEvents::Model::UpdateAlarmModelRequest::WithAlarmEventActions
UpdateAlarmModelRequest & WithAlarmEventActions(const AlarmEventActions &value)
Definition: UpdateAlarmModelRequest.h:292
Aws::IoTEvents::Model::UpdateAlarmModelRequest::AlarmNotificationHasBeenSet
bool AlarmNotificationHasBeenSet() const
Definition: UpdateAlarmModelRequest.h:246
Aws
Definition: AccessManagementClient.h:15
IoTEvents_EXPORTS.h
Aws::IoTEvents::Model::UpdateAlarmModelRequest::GetSeverity
int GetSeverity() const
Definition: UpdateAlarmModelRequest.h:189
Aws::IoTEvents::Model::UpdateAlarmModelRequest::SetAlarmModelDescription
void SetAlarmModelDescription(const Aws::String &value)
Definition: UpdateAlarmModelRequest.h:93
AWS_IOTEVENTS_API
#define AWS_IOTEVENTS_API
Definition: IoTEvents_EXPORTS.h:28
Aws::IoTEvents::Model::UpdateAlarmModelRequest::WithAlarmCapabilities
UpdateAlarmModelRequest & WithAlarmCapabilities(const AlarmCapabilities &value)
Definition: UpdateAlarmModelRequest.h:323
Aws::IoTEvents::Model::UpdateAlarmModelRequest::WithAlarmCapabilities
UpdateAlarmModelRequest & WithAlarmCapabilities(AlarmCapabilities &&value)
Definition: UpdateAlarmModelRequest.h:328
Aws::IoTEvents::Model::UpdateAlarmModelRequest::GetAlarmRule
const AlarmRule & GetAlarmRule() const
Definition: UpdateAlarmModelRequest.h:210
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoTEvents::Model::UpdateAlarmModelRequest::SetAlarmNotification
void SetAlarmNotification(AlarmNotification &&value)
Definition: UpdateAlarmModelRequest.h:256
Aws::IoTEvents::Model::UpdateAlarmModelRequest::SetAlarmCapabilities
void SetAlarmCapabilities(AlarmCapabilities &&value)
Definition: UpdateAlarmModelRequest.h:318
Aws::IoTEvents::Model::UpdateAlarmModelRequest::SetAlarmEventActions
void SetAlarmEventActions(const AlarmEventActions &value)
Definition: UpdateAlarmModelRequest.h:282
Aws::IoTEvents::Model::UpdateAlarmModelRequest::SetAlarmModelDescription
void SetAlarmModelDescription(Aws::String &&value)
Definition: UpdateAlarmModelRequest.h:98
Aws::IoTEvents::Model::UpdateAlarmModelRequest::WithAlarmModelDescription
UpdateAlarmModelRequest & WithAlarmModelDescription(const char *value)
Definition: UpdateAlarmModelRequest.h:118
AlarmRule.h
Aws::IoTEvents::Model::UpdateAlarmModelRequest::GetAlarmModelName
const Aws::String & GetAlarmModelName() const
Definition: UpdateAlarmModelRequest.h:42
Aws::IoTEvents::Model::UpdateAlarmModelRequest::WithRoleArn
UpdateAlarmModelRequest & WithRoleArn(const char *value)
Definition: UpdateAlarmModelRequest.h:183
Aws::IoTEvents::Model::UpdateAlarmModelRequest::SetAlarmEventActions
void SetAlarmEventActions(AlarmEventActions &&value)
Definition: UpdateAlarmModelRequest.h:287