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/UUID.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
19namespace CloudWatchOmni {
44 template <
typename SpaceIdT = Aws::String>
46 m_spaceIdHasBeenSet =
true;
47 m_spaceId = std::forward<SpaceIdT>(value);
49 template <
typename SpaceIdT = Aws::String>
64 template <
typename ProfileIdT = Aws::String>
66 m_profileIdHasBeenSet =
true;
67 m_profileId = std::forward<ProfileIdT>(value);
69 template <
typename ProfileIdT = Aws::String>
85 template <
typename NameT = Aws::String>
87 m_nameHasBeenSet =
true;
88 m_name = std::forward<NameT>(value);
90 template <
typename NameT = Aws::String>
92 SetName(std::forward<NameT>(value));
103 template <
typename DescriptionT = Aws::String>
105 m_descriptionHasBeenSet =
true;
106 m_description = std::forward<DescriptionT>(value);
108 template <
typename DescriptionT = Aws::String>
121 template <
typename RuleT = Rule>
123 m_ruleHasBeenSet =
true;
124 m_rule = std::forward<RuleT>(value);
126 template <
typename RuleT = Rule>
128 SetRule(std::forward<RuleT>(value));
141 m_notificationsEnabledHasBeenSet =
true;
142 m_notificationsEnabled = value;
156 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
158 m_tagsHasBeenSet =
true;
159 m_tags = std::forward<TagsT>(value);
161 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
163 SetTags(std::forward<TagsT>(value));
166 template <
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
168 m_tagsHasBeenSet =
true;
169 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
181 template <
typename NotificationRulesT = Aws::Vector<NotificationRule>>
183 m_notificationRulesHasBeenSet =
true;
184 m_notificationRules = std::forward<NotificationRulesT>(value);
186 template <
typename NotificationRulesT = Aws::Vector<NotificationRule>>
191 template <
typename NotificationRulesT = NotificationRule>
193 m_notificationRulesHasBeenSet =
true;
194 m_notificationRules.emplace_back(std::forward<NotificationRulesT>(value));
207 template <
typename ClientTokenT = Aws::String>
209 m_clientTokenHasBeenSet =
true;
210 m_clientToken = std::forward<ClientTokenT>(value);
212 template <
typename ClientTokenT = Aws::String>
229 bool m_notificationsEnabled{
false};
236 bool m_spaceIdHasBeenSet =
false;
237 bool m_profileIdHasBeenSet =
false;
238 bool m_nameHasBeenSet =
false;
239 bool m_descriptionHasBeenSet =
false;
240 bool m_ruleHasBeenSet =
false;
241 bool m_notificationsEnabledHasBeenSet =
false;
242 bool m_tagsHasBeenSet =
false;
243 bool m_notificationRulesHasBeenSet =
false;
244 bool m_clientTokenHasBeenSet =
true;
void SetSpaceId(SpaceIdT &&value)
CreateAlertRequest & WithTags(TagsT &&value)
bool RuleHasBeenSet() const
bool NotificationsEnabledHasBeenSet() const
void SetNotificationsEnabled(bool value)
AWS_CLOUDWATCHOMNI_API CreateAlertRequest()=default
CreateAlertRequest & WithProfileId(ProfileIdT &&value)
const Rule & GetRule() const
void SetNotificationRules(NotificationRulesT &&value)
const Aws::String & GetProfileId() const
CreateAlertRequest & WithNotificationRules(NotificationRulesT &&value)
const Aws::String & GetDescription() const
const Aws::Vector< NotificationRule > & GetNotificationRules() const
CreateAlertRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
virtual const char * GetServiceRequestName() const override
bool ClientTokenHasBeenSet() const
bool TagsHasBeenSet() const
const Aws::String & GetSpaceId() const
void SetProfileId(ProfileIdT &&value)
CreateAlertRequest & WithDescription(DescriptionT &&value)
AWS_CLOUDWATCHOMNI_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetName(NameT &&value)
CreateAlertRequest & WithNotificationsEnabled(bool value)
bool NotificationRulesHasBeenSet() const
CreateAlertRequest & WithRule(RuleT &&value)
const Aws::String & GetName() const
AWS_CLOUDWATCHOMNI_API Aws::String SerializePayload() const override
bool ProfileIdHasBeenSet() const
CreateAlertRequest & WithSpaceId(SpaceIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateAlertRequest & WithClientToken(ClientTokenT &&value)
bool SpaceIdHasBeenSet() const
void SetTags(TagsT &&value)
void SetDescription(DescriptionT &&value)
CreateAlertRequest & AddNotificationRules(NotificationRulesT &&value)
CreateAlertRequest & WithName(NameT &&value)
void SetClientToken(ClientTokenT &&value)
bool NameHasBeenSet() const
bool GetNotificationsEnabled() const
void SetRule(RuleT &&value)
bool DescriptionHasBeenSet() const
const Aws::String & GetClientToken() const
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector