AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
UpdateAlarmModelRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iotevents/IoTEventsRequest.h>
9#include <aws/iotevents/IoTEvents_EXPORTS.h>
10#include <aws/iotevents/model/AlarmCapabilities.h>
11#include <aws/iotevents/model/AlarmEventActions.h>
12#include <aws/iotevents/model/AlarmNotification.h>
13#include <aws/iotevents/model/AlarmRule.h>
14
15#include <utility>
16
17namespace Aws {
18namespace IoTEvents {
19namespace Model {
20
24 public:
25 AWS_IOTEVENTS_API UpdateAlarmModelRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateAlarmModel"; }
32
33 AWS_IOTEVENTS_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::String& GetAlarmModelName() const { return m_alarmModelName; }
40 inline bool AlarmModelNameHasBeenSet() const { return m_alarmModelNameHasBeenSet; }
41 template <typename AlarmModelNameT = Aws::String>
42 void SetAlarmModelName(AlarmModelNameT&& value) {
43 m_alarmModelNameHasBeenSet = true;
44 m_alarmModelName = std::forward<AlarmModelNameT>(value);
45 }
46 template <typename AlarmModelNameT = Aws::String>
47 UpdateAlarmModelRequest& WithAlarmModelName(AlarmModelNameT&& value) {
48 SetAlarmModelName(std::forward<AlarmModelNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetAlarmModelDescription() const { return m_alarmModelDescription; }
58 inline bool AlarmModelDescriptionHasBeenSet() const { return m_alarmModelDescriptionHasBeenSet; }
59 template <typename AlarmModelDescriptionT = Aws::String>
60 void SetAlarmModelDescription(AlarmModelDescriptionT&& value) {
61 m_alarmModelDescriptionHasBeenSet = true;
62 m_alarmModelDescription = std::forward<AlarmModelDescriptionT>(value);
63 }
64 template <typename AlarmModelDescriptionT = Aws::String>
65 UpdateAlarmModelRequest& WithAlarmModelDescription(AlarmModelDescriptionT&& value) {
66 SetAlarmModelDescription(std::forward<AlarmModelDescriptionT>(value));
67 return *this;
68 }
70
72
78 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
79 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
80 template <typename RoleArnT = Aws::String>
81 void SetRoleArn(RoleArnT&& value) {
82 m_roleArnHasBeenSet = true;
83 m_roleArn = std::forward<RoleArnT>(value);
84 }
85 template <typename RoleArnT = Aws::String>
87 SetRoleArn(std::forward<RoleArnT>(value));
88 return *this;
89 }
91
93
96 inline int GetSeverity() const { return m_severity; }
97 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
98 inline void SetSeverity(int value) {
99 m_severityHasBeenSet = true;
100 m_severity = value;
101 }
103 SetSeverity(value);
104 return *this;
105 }
107
109
112 inline const AlarmRule& GetAlarmRule() const { return m_alarmRule; }
113 inline bool AlarmRuleHasBeenSet() const { return m_alarmRuleHasBeenSet; }
114 template <typename AlarmRuleT = AlarmRule>
115 void SetAlarmRule(AlarmRuleT&& value) {
116 m_alarmRuleHasBeenSet = true;
117 m_alarmRule = std::forward<AlarmRuleT>(value);
118 }
119 template <typename AlarmRuleT = AlarmRule>
121 SetAlarmRule(std::forward<AlarmRuleT>(value));
122 return *this;
123 }
125
127
130 inline const AlarmNotification& GetAlarmNotification() const { return m_alarmNotification; }
131 inline bool AlarmNotificationHasBeenSet() const { return m_alarmNotificationHasBeenSet; }
132 template <typename AlarmNotificationT = AlarmNotification>
133 void SetAlarmNotification(AlarmNotificationT&& value) {
134 m_alarmNotificationHasBeenSet = true;
135 m_alarmNotification = std::forward<AlarmNotificationT>(value);
136 }
137 template <typename AlarmNotificationT = AlarmNotification>
138 UpdateAlarmModelRequest& WithAlarmNotification(AlarmNotificationT&& value) {
139 SetAlarmNotification(std::forward<AlarmNotificationT>(value));
140 return *this;
141 }
143
145
148 inline const AlarmEventActions& GetAlarmEventActions() const { return m_alarmEventActions; }
149 inline bool AlarmEventActionsHasBeenSet() const { return m_alarmEventActionsHasBeenSet; }
150 template <typename AlarmEventActionsT = AlarmEventActions>
151 void SetAlarmEventActions(AlarmEventActionsT&& value) {
152 m_alarmEventActionsHasBeenSet = true;
153 m_alarmEventActions = std::forward<AlarmEventActionsT>(value);
154 }
155 template <typename AlarmEventActionsT = AlarmEventActions>
156 UpdateAlarmModelRequest& WithAlarmEventActions(AlarmEventActionsT&& value) {
157 SetAlarmEventActions(std::forward<AlarmEventActionsT>(value));
158 return *this;
159 }
161
163
166 inline const AlarmCapabilities& GetAlarmCapabilities() const { return m_alarmCapabilities; }
167 inline bool AlarmCapabilitiesHasBeenSet() const { return m_alarmCapabilitiesHasBeenSet; }
168 template <typename AlarmCapabilitiesT = AlarmCapabilities>
169 void SetAlarmCapabilities(AlarmCapabilitiesT&& value) {
170 m_alarmCapabilitiesHasBeenSet = true;
171 m_alarmCapabilities = std::forward<AlarmCapabilitiesT>(value);
172 }
173 template <typename AlarmCapabilitiesT = AlarmCapabilities>
174 UpdateAlarmModelRequest& WithAlarmCapabilities(AlarmCapabilitiesT&& value) {
175 SetAlarmCapabilities(std::forward<AlarmCapabilitiesT>(value));
176 return *this;
177 }
179 private:
180 Aws::String m_alarmModelName;
181
182 Aws::String m_alarmModelDescription;
183
184 Aws::String m_roleArn;
185
186 int m_severity{0};
187
188 AlarmRule m_alarmRule;
189
190 AlarmNotification m_alarmNotification;
191
192 AlarmEventActions m_alarmEventActions;
193
194 AlarmCapabilities m_alarmCapabilities;
195 bool m_alarmModelNameHasBeenSet = false;
196 bool m_alarmModelDescriptionHasBeenSet = false;
197 bool m_roleArnHasBeenSet = false;
198 bool m_severityHasBeenSet = false;
199 bool m_alarmRuleHasBeenSet = false;
200 bool m_alarmNotificationHasBeenSet = false;
201 bool m_alarmEventActionsHasBeenSet = false;
202 bool m_alarmCapabilitiesHasBeenSet = false;
203};
204
205} // namespace Model
206} // namespace IoTEvents
207} // 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