AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateAlarmModelRequest.h
1
6#pragma once
7#include <aws/iotevents/IoTEvents_EXPORTS.h>
8#include <aws/iotevents/IoTEventsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iotevents/model/AlarmRule.h>
11#include <aws/iotevents/model/AlarmNotification.h>
12#include <aws/iotevents/model/AlarmEventActions.h>
13#include <aws/iotevents/model/AlarmCapabilities.h>
14#include <utility>
15
16namespace Aws
17{
18namespace IoTEvents
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_IOTEVENTS_API UpdateAlarmModelRequest() = default;
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_IOTEVENTS_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetAlarmModelName() const { return m_alarmModelName; }
44 inline bool AlarmModelNameHasBeenSet() const { return m_alarmModelNameHasBeenSet; }
45 template<typename AlarmModelNameT = Aws::String>
46 void SetAlarmModelName(AlarmModelNameT&& value) { m_alarmModelNameHasBeenSet = true; m_alarmModelName = std::forward<AlarmModelNameT>(value); }
47 template<typename AlarmModelNameT = Aws::String>
48 UpdateAlarmModelRequest& WithAlarmModelName(AlarmModelNameT&& value) { SetAlarmModelName(std::forward<AlarmModelNameT>(value)); return *this;}
50
52
55 inline const Aws::String& GetAlarmModelDescription() const { return m_alarmModelDescription; }
56 inline bool AlarmModelDescriptionHasBeenSet() const { return m_alarmModelDescriptionHasBeenSet; }
57 template<typename AlarmModelDescriptionT = Aws::String>
58 void SetAlarmModelDescription(AlarmModelDescriptionT&& value) { m_alarmModelDescriptionHasBeenSet = true; m_alarmModelDescription = std::forward<AlarmModelDescriptionT>(value); }
59 template<typename AlarmModelDescriptionT = Aws::String>
60 UpdateAlarmModelRequest& WithAlarmModelDescription(AlarmModelDescriptionT&& value) { SetAlarmModelDescription(std::forward<AlarmModelDescriptionT>(value)); return *this;}
62
64
70 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
71 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
72 template<typename RoleArnT = Aws::String>
73 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
74 template<typename RoleArnT = Aws::String>
75 UpdateAlarmModelRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
77
79
82 inline int GetSeverity() const { return m_severity; }
83 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
84 inline void SetSeverity(int value) { m_severityHasBeenSet = true; m_severity = value; }
85 inline UpdateAlarmModelRequest& WithSeverity(int value) { SetSeverity(value); return *this;}
87
89
92 inline const AlarmRule& GetAlarmRule() const { return m_alarmRule; }
93 inline bool AlarmRuleHasBeenSet() const { return m_alarmRuleHasBeenSet; }
94 template<typename AlarmRuleT = AlarmRule>
95 void SetAlarmRule(AlarmRuleT&& value) { m_alarmRuleHasBeenSet = true; m_alarmRule = std::forward<AlarmRuleT>(value); }
96 template<typename AlarmRuleT = AlarmRule>
97 UpdateAlarmModelRequest& WithAlarmRule(AlarmRuleT&& value) { SetAlarmRule(std::forward<AlarmRuleT>(value)); return *this;}
99
101
104 inline const AlarmNotification& GetAlarmNotification() const { return m_alarmNotification; }
105 inline bool AlarmNotificationHasBeenSet() const { return m_alarmNotificationHasBeenSet; }
106 template<typename AlarmNotificationT = AlarmNotification>
107 void SetAlarmNotification(AlarmNotificationT&& value) { m_alarmNotificationHasBeenSet = true; m_alarmNotification = std::forward<AlarmNotificationT>(value); }
108 template<typename AlarmNotificationT = AlarmNotification>
109 UpdateAlarmModelRequest& WithAlarmNotification(AlarmNotificationT&& value) { SetAlarmNotification(std::forward<AlarmNotificationT>(value)); return *this;}
111
113
116 inline const AlarmEventActions& GetAlarmEventActions() const { return m_alarmEventActions; }
117 inline bool AlarmEventActionsHasBeenSet() const { return m_alarmEventActionsHasBeenSet; }
118 template<typename AlarmEventActionsT = AlarmEventActions>
119 void SetAlarmEventActions(AlarmEventActionsT&& value) { m_alarmEventActionsHasBeenSet = true; m_alarmEventActions = std::forward<AlarmEventActionsT>(value); }
120 template<typename AlarmEventActionsT = AlarmEventActions>
121 UpdateAlarmModelRequest& WithAlarmEventActions(AlarmEventActionsT&& value) { SetAlarmEventActions(std::forward<AlarmEventActionsT>(value)); return *this;}
123
125
128 inline const AlarmCapabilities& GetAlarmCapabilities() const { return m_alarmCapabilities; }
129 inline bool AlarmCapabilitiesHasBeenSet() const { return m_alarmCapabilitiesHasBeenSet; }
130 template<typename AlarmCapabilitiesT = AlarmCapabilities>
131 void SetAlarmCapabilities(AlarmCapabilitiesT&& value) { m_alarmCapabilitiesHasBeenSet = true; m_alarmCapabilities = std::forward<AlarmCapabilitiesT>(value); }
132 template<typename AlarmCapabilitiesT = AlarmCapabilities>
133 UpdateAlarmModelRequest& WithAlarmCapabilities(AlarmCapabilitiesT&& value) { SetAlarmCapabilities(std::forward<AlarmCapabilitiesT>(value)); return *this;}
135 private:
136
137 Aws::String m_alarmModelName;
138 bool m_alarmModelNameHasBeenSet = false;
139
140 Aws::String m_alarmModelDescription;
141 bool m_alarmModelDescriptionHasBeenSet = false;
142
143 Aws::String m_roleArn;
144 bool m_roleArnHasBeenSet = false;
145
146 int m_severity{0};
147 bool m_severityHasBeenSet = false;
148
149 AlarmRule m_alarmRule;
150 bool m_alarmRuleHasBeenSet = false;
151
152 AlarmNotification m_alarmNotification;
153 bool m_alarmNotificationHasBeenSet = false;
154
155 AlarmEventActions m_alarmEventActions;
156 bool m_alarmEventActionsHasBeenSet = false;
157
158 AlarmCapabilities m_alarmCapabilities;
159 bool m_alarmCapabilitiesHasBeenSet = false;
160 };
161
162} // namespace Model
163} // namespace IoTEvents
164} // namespace Aws
const AlarmCapabilities & GetAlarmCapabilities() const
UpdateAlarmModelRequest & WithAlarmRule(AlarmRuleT &&value)
AWS_IOTEVENTS_API UpdateAlarmModelRequest()=default
AWS_IOTEVENTS_API Aws::String SerializePayload() const override
UpdateAlarmModelRequest & WithAlarmModelDescription(AlarmModelDescriptionT &&value)
UpdateAlarmModelRequest & WithAlarmNotification(AlarmNotificationT &&value)
UpdateAlarmModelRequest & WithRoleArn(RoleArnT &&value)
const AlarmEventActions & GetAlarmEventActions() const
UpdateAlarmModelRequest & WithSeverity(int value)
UpdateAlarmModelRequest & WithAlarmEventActions(AlarmEventActionsT &&value)
UpdateAlarmModelRequest & WithAlarmModelName(AlarmModelNameT &&value)
virtual const char * GetServiceRequestName() const override
void SetAlarmModelDescription(AlarmModelDescriptionT &&value)
const AlarmNotification & GetAlarmNotification() const
UpdateAlarmModelRequest & WithAlarmCapabilities(AlarmCapabilitiesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String