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>
17namespace CloudWatchOmni {
42 template <
typename SpaceIdT = Aws::String>
44 m_spaceIdHasBeenSet =
true;
45 m_spaceId = std::forward<SpaceIdT>(value);
47 template <
typename SpaceIdT = Aws::String>
60 template <
typename AlertIdT = Aws::String>
62 m_alertIdHasBeenSet =
true;
63 m_alertId = std::forward<AlertIdT>(value);
65 template <
typename AlertIdT = Aws::String>
78 template <
typename ProfileIdT = Aws::String>
80 m_profileIdHasBeenSet =
true;
81 m_profileId = std::forward<ProfileIdT>(value);
83 template <
typename ProfileIdT = Aws::String>
98 template <
typename NameT = Aws::String>
100 m_nameHasBeenSet =
true;
101 m_name = std::forward<NameT>(value);
103 template <
typename NameT = Aws::String>
105 SetName(std::forward<NameT>(value));
116 template <
typename DescriptionT = Aws::String>
118 m_descriptionHasBeenSet =
true;
119 m_description = std::forward<DescriptionT>(value);
121 template <
typename DescriptionT = Aws::String>
139 template <
typename RuleT = Rule>
141 m_ruleHasBeenSet =
true;
142 m_rule = std::forward<RuleT>(value);
144 template <
typename RuleT = Rule>
146 SetRule(std::forward<RuleT>(value));
159 m_notificationsEnabledHasBeenSet =
true;
160 m_notificationsEnabled = value;
176 template <
typename NotificationRulesT = Aws::Vector<NotificationRule>>
178 m_notificationRulesHasBeenSet =
true;
179 m_notificationRules = std::forward<NotificationRulesT>(value);
181 template <
typename NotificationRulesT = Aws::Vector<NotificationRule>>
186 template <
typename NotificationRulesT = NotificationRule>
188 m_notificationRulesHasBeenSet =
true;
189 m_notificationRules.emplace_back(std::forward<NotificationRulesT>(value));
206 bool m_notificationsEnabled{
false};
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;
void SetRule(RuleT &&value)
const Rule & GetRule() const
bool NotificationsEnabledHasBeenSet() const
bool ProfileIdHasBeenSet() const
AWS_CLOUDWATCHOMNI_API Aws::String SerializePayload() const override
bool GetNotificationsEnabled() const
UpdateAlertRequest & WithAlertId(AlertIdT &&value)
void SetSpaceId(SpaceIdT &&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 SetDescription(DescriptionT &&value)
const Aws::String & GetDescription() const
void SetNotificationRules(NotificationRulesT &&value)
const Aws::String & GetAlertId() const
bool NotificationRulesHasBeenSet() const
const Aws::String & GetName() const
UpdateAlertRequest & WithDescription(DescriptionT &&value)
bool SpaceIdHasBeenSet() const
const Aws::Vector< NotificationRule > & GetNotificationRules() const
const Aws::String & GetProfileId() const
bool RuleHasBeenSet() const
void SetNotificationsEnabled(bool value)
const Aws::String & GetSpaceId() const
AWS_CLOUDWATCHOMNI_API UpdateAlertRequest()=default
bool NameHasBeenSet() const
void SetProfileId(ProfileIdT &&value)
bool DescriptionHasBeenSet() const
bool AlertIdHasBeenSet() const
UpdateAlertRequest & WithProfileId(ProfileIdT &&value)
void SetName(NameT &&value)
void SetAlertId(AlertIdT &&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