AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateAlarmModelRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/iotevents/model/AlarmRule.h>
12#include <aws/iotevents/model/AlarmNotification.h>
13#include <aws/iotevents/model/AlarmEventActions.h>
14#include <aws/iotevents/model/AlarmCapabilities.h>
15#include <aws/iotevents/model/Tag.h>
16#include <utility>
17
18namespace Aws
19{
20namespace IoTEvents
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_IOTEVENTS_API CreateAlarmModelRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateAlarmModel"; }
37
38 AWS_IOTEVENTS_API Aws::String SerializePayload() const override;
39
40
42
46 inline const Aws::String& GetAlarmModelName() const { return m_alarmModelName; }
47 inline bool AlarmModelNameHasBeenSet() const { return m_alarmModelNameHasBeenSet; }
48 template<typename AlarmModelNameT = Aws::String>
49 void SetAlarmModelName(AlarmModelNameT&& value) { m_alarmModelNameHasBeenSet = true; m_alarmModelName = std::forward<AlarmModelNameT>(value); }
50 template<typename AlarmModelNameT = Aws::String>
51 CreateAlarmModelRequest& WithAlarmModelName(AlarmModelNameT&& value) { SetAlarmModelName(std::forward<AlarmModelNameT>(value)); return *this;}
53
55
58 inline const Aws::String& GetAlarmModelDescription() const { return m_alarmModelDescription; }
59 inline bool AlarmModelDescriptionHasBeenSet() const { return m_alarmModelDescriptionHasBeenSet; }
60 template<typename AlarmModelDescriptionT = Aws::String>
61 void SetAlarmModelDescription(AlarmModelDescriptionT&& value) { m_alarmModelDescriptionHasBeenSet = true; m_alarmModelDescription = std::forward<AlarmModelDescriptionT>(value); }
62 template<typename AlarmModelDescriptionT = Aws::String>
63 CreateAlarmModelRequest& WithAlarmModelDescription(AlarmModelDescriptionT&& value) { SetAlarmModelDescription(std::forward<AlarmModelDescriptionT>(value)); return *this;}
65
67
73 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
74 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
75 template<typename RoleArnT = Aws::String>
76 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
77 template<typename RoleArnT = Aws::String>
78 CreateAlarmModelRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
80
82
89 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
90 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
91 template<typename TagsT = Aws::Vector<Tag>>
92 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
93 template<typename TagsT = Aws::Vector<Tag>>
94 CreateAlarmModelRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
95 template<typename TagsT = Tag>
96 CreateAlarmModelRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
98
100
105 inline const Aws::String& GetKey() const { return m_key; }
106 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
107 template<typename KeyT = Aws::String>
108 void SetKey(KeyT&& value) { m_keyHasBeenSet = true; m_key = std::forward<KeyT>(value); }
109 template<typename KeyT = Aws::String>
110 CreateAlarmModelRequest& WithKey(KeyT&& value) { SetKey(std::forward<KeyT>(value)); return *this;}
112
114
117 inline int GetSeverity() const { return m_severity; }
118 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
119 inline void SetSeverity(int value) { m_severityHasBeenSet = true; m_severity = value; }
120 inline CreateAlarmModelRequest& WithSeverity(int value) { SetSeverity(value); return *this;}
122
124
127 inline const AlarmRule& GetAlarmRule() const { return m_alarmRule; }
128 inline bool AlarmRuleHasBeenSet() const { return m_alarmRuleHasBeenSet; }
129 template<typename AlarmRuleT = AlarmRule>
130 void SetAlarmRule(AlarmRuleT&& value) { m_alarmRuleHasBeenSet = true; m_alarmRule = std::forward<AlarmRuleT>(value); }
131 template<typename AlarmRuleT = AlarmRule>
132 CreateAlarmModelRequest& WithAlarmRule(AlarmRuleT&& value) { SetAlarmRule(std::forward<AlarmRuleT>(value)); return *this;}
134
136
139 inline const AlarmNotification& GetAlarmNotification() const { return m_alarmNotification; }
140 inline bool AlarmNotificationHasBeenSet() const { return m_alarmNotificationHasBeenSet; }
141 template<typename AlarmNotificationT = AlarmNotification>
142 void SetAlarmNotification(AlarmNotificationT&& value) { m_alarmNotificationHasBeenSet = true; m_alarmNotification = std::forward<AlarmNotificationT>(value); }
143 template<typename AlarmNotificationT = AlarmNotification>
144 CreateAlarmModelRequest& WithAlarmNotification(AlarmNotificationT&& value) { SetAlarmNotification(std::forward<AlarmNotificationT>(value)); return *this;}
146
148
151 inline const AlarmEventActions& GetAlarmEventActions() const { return m_alarmEventActions; }
152 inline bool AlarmEventActionsHasBeenSet() const { return m_alarmEventActionsHasBeenSet; }
153 template<typename AlarmEventActionsT = AlarmEventActions>
154 void SetAlarmEventActions(AlarmEventActionsT&& value) { m_alarmEventActionsHasBeenSet = true; m_alarmEventActions = std::forward<AlarmEventActionsT>(value); }
155 template<typename AlarmEventActionsT = AlarmEventActions>
156 CreateAlarmModelRequest& WithAlarmEventActions(AlarmEventActionsT&& value) { SetAlarmEventActions(std::forward<AlarmEventActionsT>(value)); return *this;}
158
160
163 inline const AlarmCapabilities& GetAlarmCapabilities() const { return m_alarmCapabilities; }
164 inline bool AlarmCapabilitiesHasBeenSet() const { return m_alarmCapabilitiesHasBeenSet; }
165 template<typename AlarmCapabilitiesT = AlarmCapabilities>
166 void SetAlarmCapabilities(AlarmCapabilitiesT&& value) { m_alarmCapabilitiesHasBeenSet = true; m_alarmCapabilities = std::forward<AlarmCapabilitiesT>(value); }
167 template<typename AlarmCapabilitiesT = AlarmCapabilities>
168 CreateAlarmModelRequest& WithAlarmCapabilities(AlarmCapabilitiesT&& value) { SetAlarmCapabilities(std::forward<AlarmCapabilitiesT>(value)); return *this;}
170 private:
171
172 Aws::String m_alarmModelName;
173 bool m_alarmModelNameHasBeenSet = false;
174
175 Aws::String m_alarmModelDescription;
176 bool m_alarmModelDescriptionHasBeenSet = false;
177
178 Aws::String m_roleArn;
179 bool m_roleArnHasBeenSet = false;
180
181 Aws::Vector<Tag> m_tags;
182 bool m_tagsHasBeenSet = false;
183
184 Aws::String m_key;
185 bool m_keyHasBeenSet = false;
186
187 int m_severity{0};
188 bool m_severityHasBeenSet = false;
189
190 AlarmRule m_alarmRule;
191 bool m_alarmRuleHasBeenSet = false;
192
193 AlarmNotification m_alarmNotification;
194 bool m_alarmNotificationHasBeenSet = false;
195
196 AlarmEventActions m_alarmEventActions;
197 bool m_alarmEventActionsHasBeenSet = false;
198
199 AlarmCapabilities m_alarmCapabilities;
200 bool m_alarmCapabilitiesHasBeenSet = false;
201 };
202
203} // namespace Model
204} // namespace IoTEvents
205} // namespace Aws
CreateAlarmModelRequest & WithAlarmNotification(AlarmNotificationT &&value)
CreateAlarmModelRequest & WithKey(KeyT &&value)
void SetAlarmModelDescription(AlarmModelDescriptionT &&value)
CreateAlarmModelRequest & WithAlarmModelDescription(AlarmModelDescriptionT &&value)
CreateAlarmModelRequest & AddTags(TagsT &&value)
const AlarmCapabilities & GetAlarmCapabilities() const
const AlarmNotification & GetAlarmNotification() const
CreateAlarmModelRequest & WithAlarmRule(AlarmRuleT &&value)
AWS_IOTEVENTS_API CreateAlarmModelRequest()=default
CreateAlarmModelRequest & WithSeverity(int value)
CreateAlarmModelRequest & WithAlarmEventActions(AlarmEventActionsT &&value)
const AlarmEventActions & GetAlarmEventActions() const
CreateAlarmModelRequest & WithRoleArn(RoleArnT &&value)
AWS_IOTEVENTS_API Aws::String SerializePayload() const override
CreateAlarmModelRequest & WithAlarmModelName(AlarmModelNameT &&value)
CreateAlarmModelRequest & WithAlarmCapabilities(AlarmCapabilitiesT &&value)
virtual const char * GetServiceRequestName() const override
CreateAlarmModelRequest & WithTags(TagsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector