AWS SDK for C++

AWS SDK for C++ Version 1.11.900

Loading...
Searching...
No Matches
UpdateAlertRequest.h
1
6#pragma once
7#include <aws/cloudwatchomni/CloudWatchOmniRequest.h>
8#include <aws/cloudwatchomni/CloudWatchOmni_EXPORTS.h>
9#include <aws/cloudwatchomni/model/NotificationRule.h>
10#include <aws/cloudwatchomni/model/Rule.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace CloudWatchOmni {
18namespace Model {
19
23 public:
24 AWS_CLOUDWATCHOMNI_API UpdateAlertRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdateAlert"; }
31
32 AWS_CLOUDWATCHOMNI_API Aws::String SerializePayload() const override;
33
34 AWS_CLOUDWATCHOMNI_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
37
40 inline const Aws::String& GetSpaceId() const { return m_spaceId; }
41 inline bool SpaceIdHasBeenSet() const { return m_spaceIdHasBeenSet; }
42 template <typename SpaceIdT = Aws::String>
43 void SetSpaceId(SpaceIdT&& value) {
44 m_spaceIdHasBeenSet = true;
45 m_spaceId = std::forward<SpaceIdT>(value);
46 }
47 template <typename SpaceIdT = Aws::String>
48 UpdateAlertRequest& WithSpaceId(SpaceIdT&& value) {
49 SetSpaceId(std::forward<SpaceIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetAlertId() const { return m_alertId; }
59 inline bool AlertIdHasBeenSet() const { return m_alertIdHasBeenSet; }
60 template <typename AlertIdT = Aws::String>
61 void SetAlertId(AlertIdT&& value) {
62 m_alertIdHasBeenSet = true;
63 m_alertId = std::forward<AlertIdT>(value);
64 }
65 template <typename AlertIdT = Aws::String>
66 UpdateAlertRequest& WithAlertId(AlertIdT&& value) {
67 SetAlertId(std::forward<AlertIdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetProfileId() const { return m_profileId; }
77 inline bool ProfileIdHasBeenSet() const { return m_profileIdHasBeenSet; }
78 template <typename ProfileIdT = Aws::String>
79 void SetProfileId(ProfileIdT&& value) {
80 m_profileIdHasBeenSet = true;
81 m_profileId = std::forward<ProfileIdT>(value);
82 }
83 template <typename ProfileIdT = Aws::String>
84 UpdateAlertRequest& WithProfileId(ProfileIdT&& value) {
85 SetProfileId(std::forward<ProfileIdT>(value));
86 return *this;
87 }
89
91
96 inline const Aws::String& GetName() const { return m_name; }
97 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
98 template <typename NameT = Aws::String>
99 void SetName(NameT&& value) {
100 m_nameHasBeenSet = true;
101 m_name = std::forward<NameT>(value);
102 }
103 template <typename NameT = Aws::String>
104 UpdateAlertRequest& WithName(NameT&& value) {
105 SetName(std::forward<NameT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::String& GetDescription() const { return m_description; }
115 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
116 template <typename DescriptionT = Aws::String>
117 void SetDescription(DescriptionT&& value) {
118 m_descriptionHasBeenSet = true;
119 m_description = std::forward<DescriptionT>(value);
120 }
121 template <typename DescriptionT = Aws::String>
122 UpdateAlertRequest& WithDescription(DescriptionT&& value) {
123 SetDescription(std::forward<DescriptionT>(value));
124 return *this;
125 }
127
129
137 inline const Rule& GetRule() const { return m_rule; }
138 inline bool RuleHasBeenSet() const { return m_ruleHasBeenSet; }
139 template <typename RuleT = Rule>
140 void SetRule(RuleT&& value) {
141 m_ruleHasBeenSet = true;
142 m_rule = std::forward<RuleT>(value);
143 }
144 template <typename RuleT = Rule>
145 UpdateAlertRequest& WithRule(RuleT&& value) {
146 SetRule(std::forward<RuleT>(value));
147 return *this;
148 }
150
152
156 inline bool GetNotificationsEnabled() const { return m_notificationsEnabled; }
157 inline bool NotificationsEnabledHasBeenSet() const { return m_notificationsEnabledHasBeenSet; }
158 inline void SetNotificationsEnabled(bool value) {
159 m_notificationsEnabledHasBeenSet = true;
160 m_notificationsEnabled = value;
161 }
164 return *this;
165 }
167
169
174 inline const Aws::Vector<NotificationRule>& GetNotificationRules() const { return m_notificationRules; }
175 inline bool NotificationRulesHasBeenSet() const { return m_notificationRulesHasBeenSet; }
176 template <typename NotificationRulesT = Aws::Vector<NotificationRule>>
177 void SetNotificationRules(NotificationRulesT&& value) {
178 m_notificationRulesHasBeenSet = true;
179 m_notificationRules = std::forward<NotificationRulesT>(value);
180 }
181 template <typename NotificationRulesT = Aws::Vector<NotificationRule>>
182 UpdateAlertRequest& WithNotificationRules(NotificationRulesT&& value) {
183 SetNotificationRules(std::forward<NotificationRulesT>(value));
184 return *this;
185 }
186 template <typename NotificationRulesT = NotificationRule>
187 UpdateAlertRequest& AddNotificationRules(NotificationRulesT&& value) {
188 m_notificationRulesHasBeenSet = true;
189 m_notificationRules.emplace_back(std::forward<NotificationRulesT>(value));
190 return *this;
191 }
193 private:
194 Aws::String m_spaceId;
195
196 Aws::String m_alertId;
197
198 Aws::String m_profileId;
199
200 Aws::String m_name;
201
202 Aws::String m_description;
203
204 Rule m_rule;
205
206 bool m_notificationsEnabled{false};
207
208 Aws::Vector<NotificationRule> m_notificationRules;
209 bool m_spaceIdHasBeenSet = false;
210 bool m_alertIdHasBeenSet = false;
211 bool m_profileIdHasBeenSet = false;
212 bool m_nameHasBeenSet = false;
213 bool m_descriptionHasBeenSet = false;
214 bool m_ruleHasBeenSet = false;
215 bool m_notificationsEnabledHasBeenSet = false;
216 bool m_notificationRulesHasBeenSet = false;
217};
218
219} // namespace Model
220} // namespace CloudWatchOmni
221} // namespace Aws
AWS_CLOUDWATCHOMNI_API Aws::String SerializePayload() const override
UpdateAlertRequest & WithAlertId(AlertIdT &&value)
UpdateAlertRequest & WithNotificationsEnabled(bool value)
UpdateAlertRequest & WithSpaceId(SpaceIdT &&value)
UpdateAlertRequest & WithName(NameT &&value)
UpdateAlertRequest & WithRule(RuleT &&value)
virtual const char * GetServiceRequestName() const override
AWS_CLOUDWATCHOMNI_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateAlertRequest & AddNotificationRules(NotificationRulesT &&value)
UpdateAlertRequest & WithNotificationRules(NotificationRulesT &&value)
void SetNotificationRules(NotificationRulesT &&value)
UpdateAlertRequest & WithDescription(DescriptionT &&value)
const Aws::Vector< NotificationRule > & GetNotificationRules() const
AWS_CLOUDWATCHOMNI_API UpdateAlertRequest()=default
UpdateAlertRequest & WithProfileId(ProfileIdT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector