7#include <aws/cloudwatchomni/CloudWatchOmni_EXPORTS.h>
8#include <aws/cloudwatchomni/model/AlertStateInfo.h>
9#include <aws/cloudwatchomni/model/NotificationRule.h>
10#include <aws/cloudwatchomni/model/NotificationStatus.h>
11#include <aws/cloudwatchomni/model/Rule.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15#include <aws/crt/cbor/Cbor.h>
25namespace CloudWatchOmni {
38 AWS_CLOUDWATCHOMNI_API
Alert() =
default;
39 AWS_CLOUDWATCHOMNI_API
Alert(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
40 AWS_CLOUDWATCHOMNI_API
Alert&
operator=(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
41 AWS_CLOUDWATCHOMNI_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
49 template <
typename NameT = Aws::String>
51 m_nameHasBeenSet =
true;
52 m_name = std::forward<NameT>(value);
54 template <
typename NameT = Aws::String>
56 SetName(std::forward<NameT>(value));
69 template <
typename AlertIdT = Aws::String>
71 m_alertIdHasBeenSet =
true;
72 m_alertId = std::forward<AlertIdT>(value);
74 template <
typename AlertIdT = Aws::String>
87 template <
typename DescriptionT = Aws::String>
89 m_descriptionHasBeenSet =
true;
90 m_description = std::forward<DescriptionT>(value);
92 template <
typename DescriptionT = Aws::String>
105 template <
typename AccountIdT = Aws::String>
107 m_accountIdHasBeenSet =
true;
108 m_accountId = std::forward<AccountIdT>(value);
110 template <
typename AccountIdT = Aws::String>
123 template <
typename SpaceIdT = Aws::String>
125 m_spaceIdHasBeenSet =
true;
126 m_spaceId = std::forward<SpaceIdT>(value);
128 template <
typename SpaceIdT = Aws::String>
141 template <
typename ProfileIdT = Aws::String>
143 m_profileIdHasBeenSet =
true;
144 m_profileId = std::forward<ProfileIdT>(value);
146 template <
typename ProfileIdT = Aws::String>
159 template <
typename RuleT = Rule>
161 m_ruleHasBeenSet =
true;
162 m_rule = std::forward<RuleT>(value);
164 template <
typename RuleT = Rule>
166 SetRule(std::forward<RuleT>(value));
178 m_notificationStatusHasBeenSet =
true;
179 m_notificationStatus = value;
199 template <
typename StateT = AlertStateInfo>
201 m_stateHasBeenSet =
true;
202 m_state = std::forward<StateT>(value);
204 template <
typename StateT = AlertStateInfo>
206 SetState(std::forward<StateT>(value));
217 template <
typename NotificationRulesT = Aws::Vector<NotificationRule>>
219 m_notificationRulesHasBeenSet =
true;
220 m_notificationRules = std::forward<NotificationRulesT>(value);
222 template <
typename NotificationRulesT = Aws::Vector<NotificationRule>>
227 template <
typename NotificationRulesT = NotificationRule>
229 m_notificationRulesHasBeenSet =
true;
230 m_notificationRules.emplace_back(std::forward<NotificationRulesT>(value));
241 template <
typename CreatedAtT = Aws::Utils::DateTime>
243 m_createdAtHasBeenSet =
true;
244 m_createdAt = std::forward<CreatedAtT>(value);
246 template <
typename CreatedAtT = Aws::Utils::DateTime>
259 template <
typename UpdatedAtT = Aws::Utils::DateTime>
261 m_updatedAtHasBeenSet =
true;
262 m_updatedAt = std::forward<UpdatedAtT>(value);
264 template <
typename UpdatedAtT = Aws::Utils::DateTime>
277 template <
typename AlertArnT = Aws::String>
279 m_alertArnHasBeenSet =
true;
280 m_alertArn = std::forward<AlertArnT>(value);
282 template <
typename AlertArnT = Aws::String>
305 AlertStateInfo m_state;
314 bool m_nameHasBeenSet =
false;
315 bool m_alertIdHasBeenSet =
false;
316 bool m_descriptionHasBeenSet =
false;
317 bool m_accountIdHasBeenSet =
false;
318 bool m_spaceIdHasBeenSet =
false;
319 bool m_profileIdHasBeenSet =
false;
320 bool m_ruleHasBeenSet =
false;
321 bool m_notificationStatusHasBeenSet =
false;
322 bool m_stateHasBeenSet =
false;
323 bool m_notificationRulesHasBeenSet =
false;
324 bool m_createdAtHasBeenSet =
false;
325 bool m_updatedAtHasBeenSet =
false;
326 bool m_alertArnHasBeenSet =
false;
bool ProfileIdHasBeenSet() const
void SetNotificationRules(NotificationRulesT &&value)
void SetRule(RuleT &&value)
const Aws::String & GetSpaceId() const
const Aws::Utils::DateTime & GetCreatedAt() const
const AlertStateInfo & GetState() const
const Aws::Vector< NotificationRule > & GetNotificationRules() const
AWS_CLOUDWATCHOMNI_API Alert(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
NotificationStatus GetNotificationStatus() const
void SetState(StateT &&value)
bool UpdatedAtHasBeenSet() const
Alert & WithNotificationRules(NotificationRulesT &&value)
void SetAccountId(AccountIdT &&value)
Alert & WithDescription(DescriptionT &&value)
void SetSpaceId(SpaceIdT &&value)
Alert & WithNotificationStatus(NotificationStatus value)
bool SpaceIdHasBeenSet() const
const Aws::String & GetProfileId() const
void SetUpdatedAt(UpdatedAtT &&value)
bool NotificationRulesHasBeenSet() const
bool RuleHasBeenSet() const
void SetDescription(DescriptionT &&value)
const Aws::String & GetAlertId() const
void SetAlertArn(AlertArnT &&value)
AWS_CLOUDWATCHOMNI_API Alert()=default
Alert & WithUpdatedAt(UpdatedAtT &&value)
void SetNotificationStatus(NotificationStatus value)
bool AlertArnHasBeenSet() const
bool DescriptionHasBeenSet() const
bool StateHasBeenSet() const
bool NotificationStatusHasBeenSet() const
bool AlertIdHasBeenSet() const
Alert & WithName(NameT &&value)
Alert & WithProfileId(ProfileIdT &&value)
const Aws::String & GetDescription() const
Alert & AddNotificationRules(NotificationRulesT &&value)
const Rule & GetRule() const
void SetName(NameT &&value)
Alert & WithAlertArn(AlertArnT &&value)
const Aws::String & GetAccountId() const
AWS_CLOUDWATCHOMNI_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
Alert & WithCreatedAt(CreatedAtT &&value)
Alert & WithAccountId(AccountIdT &&value)
bool CreatedAtHasBeenSet() const
Alert & WithRule(RuleT &&value)
bool NameHasBeenSet() const
void SetProfileId(ProfileIdT &&value)
bool AccountIdHasBeenSet() const
void SetCreatedAt(CreatedAtT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
Alert & WithSpaceId(SpaceIdT &&value)
void SetAlertId(AlertIdT &&value)
const Aws::String & GetAlertArn() const
AWS_CLOUDWATCHOMNI_API Alert & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
Alert & WithAlertId(AlertIdT &&value)
const Aws::String & GetName() const
Alert & WithState(StateT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector