AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAlarmModelName(const Aws::String& value) { m_alarmModelNameHasBeenSet = true; m_alarmModelName = value; }
49 inline void SetAlarmModelName(Aws::String&& value) { m_alarmModelNameHasBeenSet = true; m_alarmModelName = std::move(value); }
50 inline void SetAlarmModelName(const char* value) { m_alarmModelNameHasBeenSet = true; m_alarmModelName.assign(value); }
51 inline CreateAlarmModelRequest& WithAlarmModelName(const Aws::String& value) { SetAlarmModelName(value); return *this;}
52 inline CreateAlarmModelRequest& WithAlarmModelName(Aws::String&& value) { SetAlarmModelName(std::move(value)); return *this;}
53 inline CreateAlarmModelRequest& WithAlarmModelName(const char* value) { SetAlarmModelName(value); return *this;}
55
57
60 inline const Aws::String& GetAlarmModelDescription() const{ return m_alarmModelDescription; }
61 inline bool AlarmModelDescriptionHasBeenSet() const { return m_alarmModelDescriptionHasBeenSet; }
62 inline void SetAlarmModelDescription(const Aws::String& value) { m_alarmModelDescriptionHasBeenSet = true; m_alarmModelDescription = value; }
63 inline void SetAlarmModelDescription(Aws::String&& value) { m_alarmModelDescriptionHasBeenSet = true; m_alarmModelDescription = std::move(value); }
64 inline void SetAlarmModelDescription(const char* value) { m_alarmModelDescriptionHasBeenSet = true; m_alarmModelDescription.assign(value); }
67 inline CreateAlarmModelRequest& WithAlarmModelDescription(const char* value) { SetAlarmModelDescription(value); return *this;}
69
71
77 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
78 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
79 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
80 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
81 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
82 inline CreateAlarmModelRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
83 inline CreateAlarmModelRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
84 inline CreateAlarmModelRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
86
88
95 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
96 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
97 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
98 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
99 inline CreateAlarmModelRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
100 inline CreateAlarmModelRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
101 inline CreateAlarmModelRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
102 inline CreateAlarmModelRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
104
106
111 inline const Aws::String& GetKey() const{ return m_key; }
112 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
113 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
114 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
115 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
116 inline CreateAlarmModelRequest& WithKey(const Aws::String& value) { SetKey(value); return *this;}
117 inline CreateAlarmModelRequest& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
118 inline CreateAlarmModelRequest& WithKey(const char* value) { SetKey(value); return *this;}
120
122
125 inline int GetSeverity() const{ return m_severity; }
126 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
127 inline void SetSeverity(int value) { m_severityHasBeenSet = true; m_severity = value; }
128 inline CreateAlarmModelRequest& WithSeverity(int value) { SetSeverity(value); return *this;}
130
132
135 inline const AlarmRule& GetAlarmRule() const{ return m_alarmRule; }
136 inline bool AlarmRuleHasBeenSet() const { return m_alarmRuleHasBeenSet; }
137 inline void SetAlarmRule(const AlarmRule& value) { m_alarmRuleHasBeenSet = true; m_alarmRule = value; }
138 inline void SetAlarmRule(AlarmRule&& value) { m_alarmRuleHasBeenSet = true; m_alarmRule = std::move(value); }
139 inline CreateAlarmModelRequest& WithAlarmRule(const AlarmRule& value) { SetAlarmRule(value); return *this;}
140 inline CreateAlarmModelRequest& WithAlarmRule(AlarmRule&& value) { SetAlarmRule(std::move(value)); return *this;}
142
144
147 inline const AlarmNotification& GetAlarmNotification() const{ return m_alarmNotification; }
148 inline bool AlarmNotificationHasBeenSet() const { return m_alarmNotificationHasBeenSet; }
149 inline void SetAlarmNotification(const AlarmNotification& value) { m_alarmNotificationHasBeenSet = true; m_alarmNotification = value; }
150 inline void SetAlarmNotification(AlarmNotification&& value) { m_alarmNotificationHasBeenSet = true; m_alarmNotification = std::move(value); }
152 inline CreateAlarmModelRequest& WithAlarmNotification(AlarmNotification&& value) { SetAlarmNotification(std::move(value)); return *this;}
154
156
159 inline const AlarmEventActions& GetAlarmEventActions() const{ return m_alarmEventActions; }
160 inline bool AlarmEventActionsHasBeenSet() const { return m_alarmEventActionsHasBeenSet; }
161 inline void SetAlarmEventActions(const AlarmEventActions& value) { m_alarmEventActionsHasBeenSet = true; m_alarmEventActions = value; }
162 inline void SetAlarmEventActions(AlarmEventActions&& value) { m_alarmEventActionsHasBeenSet = true; m_alarmEventActions = std::move(value); }
164 inline CreateAlarmModelRequest& WithAlarmEventActions(AlarmEventActions&& value) { SetAlarmEventActions(std::move(value)); return *this;}
166
168
171 inline const AlarmCapabilities& GetAlarmCapabilities() const{ return m_alarmCapabilities; }
172 inline bool AlarmCapabilitiesHasBeenSet() const { return m_alarmCapabilitiesHasBeenSet; }
173 inline void SetAlarmCapabilities(const AlarmCapabilities& value) { m_alarmCapabilitiesHasBeenSet = true; m_alarmCapabilities = value; }
174 inline void SetAlarmCapabilities(AlarmCapabilities&& value) { m_alarmCapabilitiesHasBeenSet = true; m_alarmCapabilities = std::move(value); }
176 inline CreateAlarmModelRequest& WithAlarmCapabilities(AlarmCapabilities&& value) { SetAlarmCapabilities(std::move(value)); return *this;}
178 private:
179
180 Aws::String m_alarmModelName;
181 bool m_alarmModelNameHasBeenSet = false;
182
183 Aws::String m_alarmModelDescription;
184 bool m_alarmModelDescriptionHasBeenSet = false;
185
186 Aws::String m_roleArn;
187 bool m_roleArnHasBeenSet = false;
188
189 Aws::Vector<Tag> m_tags;
190 bool m_tagsHasBeenSet = false;
191
192 Aws::String m_key;
193 bool m_keyHasBeenSet = false;
194
195 int m_severity;
196 bool m_severityHasBeenSet = false;
197
198 AlarmRule m_alarmRule;
199 bool m_alarmRuleHasBeenSet = false;
200
201 AlarmNotification m_alarmNotification;
202 bool m_alarmNotificationHasBeenSet = false;
203
204 AlarmEventActions m_alarmEventActions;
205 bool m_alarmEventActionsHasBeenSet = false;
206
207 AlarmCapabilities m_alarmCapabilities;
208 bool m_alarmCapabilitiesHasBeenSet = false;
209 };
210
211} // namespace Model
212} // namespace IoTEvents
213} // namespace Aws
CreateAlarmModelRequest & WithAlarmModelDescription(const Aws::String &value)
void SetAlarmCapabilities(const AlarmCapabilities &value)
CreateAlarmModelRequest & WithTags(const Aws::Vector< Tag > &value)
CreateAlarmModelRequest & WithAlarmRule(AlarmRule &&value)
CreateAlarmModelRequest & WithAlarmModelName(const Aws::String &value)
const AlarmCapabilities & GetAlarmCapabilities() const
CreateAlarmModelRequest & WithTags(Aws::Vector< Tag > &&value)
CreateAlarmModelRequest & WithAlarmNotification(AlarmNotification &&value)
CreateAlarmModelRequest & AddTags(Tag &&value)
CreateAlarmModelRequest & WithAlarmRule(const AlarmRule &value)
CreateAlarmModelRequest & WithAlarmCapabilities(AlarmCapabilities &&value)
CreateAlarmModelRequest & WithKey(const Aws::String &value)
CreateAlarmModelRequest & WithKey(Aws::String &&value)
void SetAlarmNotification(const AlarmNotification &value)
const AlarmNotification & GetAlarmNotification() const
CreateAlarmModelRequest & AddTags(const Tag &value)
void SetAlarmEventActions(const AlarmEventActions &value)
void SetTags(const Aws::Vector< Tag > &value)
CreateAlarmModelRequest & WithAlarmModelDescription(const char *value)
CreateAlarmModelRequest & WithAlarmModelName(Aws::String &&value)
CreateAlarmModelRequest & WithKey(const char *value)
CreateAlarmModelRequest & WithAlarmNotification(const AlarmNotification &value)
CreateAlarmModelRequest & WithSeverity(int value)
CreateAlarmModelRequest & WithAlarmModelDescription(Aws::String &&value)
CreateAlarmModelRequest & WithRoleArn(const Aws::String &value)
const AlarmEventActions & GetAlarmEventActions() const
CreateAlarmModelRequest & WithRoleArn(const char *value)
CreateAlarmModelRequest & WithAlarmCapabilities(const AlarmCapabilities &value)
AWS_IOTEVENTS_API Aws::String SerializePayload() const override
CreateAlarmModelRequest & WithRoleArn(Aws::String &&value)
CreateAlarmModelRequest & WithAlarmModelName(const char *value)
CreateAlarmModelRequest & WithAlarmEventActions(AlarmEventActions &&value)
virtual const char * GetServiceRequestName() const override
CreateAlarmModelRequest & WithAlarmEventActions(const AlarmEventActions &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector