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>
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>
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>
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>
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>>
95 template<
typename TagsT = Tag>
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>
119 inline void SetSeverity(
int value) { m_severityHasBeenSet =
true; m_severity = value; }
129 template<
typename AlarmRuleT = AlarmRule>
130 void SetAlarmRule(AlarmRuleT&& value) { m_alarmRuleHasBeenSet =
true; m_alarmRule = std::forward<AlarmRuleT>(value); }
131 template<
typename AlarmRuleT = AlarmRule>
141 template<
typename AlarmNotificationT = AlarmNotification>
142 void SetAlarmNotification(AlarmNotificationT&& value) { m_alarmNotificationHasBeenSet =
true; m_alarmNotification = std::forward<AlarmNotificationT>(value); }
143 template<
typename AlarmNotificationT = AlarmNotification>
153 template<
typename AlarmEventActionsT = AlarmEventActions>
154 void SetAlarmEventActions(AlarmEventActionsT&& value) { m_alarmEventActionsHasBeenSet =
true; m_alarmEventActions = std::forward<AlarmEventActionsT>(value); }
155 template<
typename AlarmEventActionsT = AlarmEventActions>
165 template<
typename AlarmCapabilitiesT = AlarmCapabilities>
166 void SetAlarmCapabilities(AlarmCapabilitiesT&& value) { m_alarmCapabilitiesHasBeenSet =
true; m_alarmCapabilities = std::forward<AlarmCapabilitiesT>(value); }
167 template<
typename AlarmCapabilitiesT = AlarmCapabilities>
173 bool m_alarmModelNameHasBeenSet =
false;
176 bool m_alarmModelDescriptionHasBeenSet =
false;
179 bool m_roleArnHasBeenSet =
false;
182 bool m_tagsHasBeenSet =
false;
185 bool m_keyHasBeenSet =
false;
188 bool m_severityHasBeenSet =
false;
190 AlarmRule m_alarmRule;
191 bool m_alarmRuleHasBeenSet =
false;
193 AlarmNotification m_alarmNotification;
194 bool m_alarmNotificationHasBeenSet =
false;
196 AlarmEventActions m_alarmEventActions;
197 bool m_alarmEventActionsHasBeenSet =
false;
199 AlarmCapabilities m_alarmCapabilities;
200 bool m_alarmCapabilitiesHasBeenSet =
false;
const Aws::String & GetKey() const
CreateAlarmModelRequest & WithAlarmNotification(AlarmNotificationT &&value)
const Aws::String & GetAlarmModelName() const
CreateAlarmModelRequest & WithKey(KeyT &&value)
void SetRoleArn(RoleArnT &&value)
void SetAlarmModelDescription(AlarmModelDescriptionT &&value)
void SetAlarmNotification(AlarmNotificationT &&value)
bool AlarmNotificationHasBeenSet() const
CreateAlarmModelRequest & WithAlarmModelDescription(AlarmModelDescriptionT &&value)
bool RoleArnHasBeenSet() const
CreateAlarmModelRequest & AddTags(TagsT &&value)
void SetAlarmEventActions(AlarmEventActionsT &&value)
const AlarmCapabilities & GetAlarmCapabilities() const
bool AlarmModelDescriptionHasBeenSet() const
bool KeyHasBeenSet() const
const Aws::String & GetAlarmModelDescription() const
const Aws::Vector< Tag > & GetTags() const
const AlarmNotification & GetAlarmNotification() const
void SetSeverity(int value)
void SetAlarmModelName(AlarmModelNameT &&value)
CreateAlarmModelRequest & WithAlarmRule(AlarmRuleT &&value)
bool AlarmRuleHasBeenSet() const
bool AlarmEventActionsHasBeenSet() const
AWS_IOTEVENTS_API CreateAlarmModelRequest()=default
void SetKey(KeyT &&value)
CreateAlarmModelRequest & WithSeverity(int value)
CreateAlarmModelRequest & WithAlarmEventActions(AlarmEventActionsT &&value)
const AlarmEventActions & GetAlarmEventActions() const
const Aws::String & GetRoleArn() const
CreateAlarmModelRequest & WithRoleArn(RoleArnT &&value)
bool TagsHasBeenSet() const
const AlarmRule & GetAlarmRule() const
void SetTags(TagsT &&value)
void SetAlarmRule(AlarmRuleT &&value)
AWS_IOTEVENTS_API Aws::String SerializePayload() const override
CreateAlarmModelRequest & WithAlarmModelName(AlarmModelNameT &&value)
void SetAlarmCapabilities(AlarmCapabilitiesT &&value)
CreateAlarmModelRequest & WithAlarmCapabilities(AlarmCapabilitiesT &&value)
bool SeverityHasBeenSet() const
bool AlarmModelNameHasBeenSet() const
virtual const char * GetServiceRequestName() const override
bool AlarmCapabilitiesHasBeenSet() const
CreateAlarmModelRequest & WithTags(TagsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector