7#include <aws/cloudwatchomni/CloudWatchOmni_EXPORTS.h>
8#include <aws/cloudwatchomni/model/AlertStateInfo.h>
9#include <aws/cloudwatchomni/model/NotificationStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/crt/cbor/Cbor.h>
22namespace CloudWatchOmni {
34 AWS_CLOUDWATCHOMNI_API
AlertSummary(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_CLOUDWATCHOMNI_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
44 template <
typename NameT = Aws::String>
46 m_nameHasBeenSet =
true;
47 m_name = std::forward<NameT>(value);
49 template <
typename NameT = Aws::String>
51 SetName(std::forward<NameT>(value));
63 template <
typename AlertIdT = Aws::String>
65 m_alertIdHasBeenSet =
true;
66 m_alertId = std::forward<AlertIdT>(value);
68 template <
typename AlertIdT = Aws::String>
81 template <
typename SpaceIdT = Aws::String>
83 m_spaceIdHasBeenSet =
true;
84 m_spaceId = std::forward<SpaceIdT>(value);
86 template <
typename SpaceIdT = Aws::String>
99 template <
typename ProfileIdT = Aws::String>
101 m_profileIdHasBeenSet =
true;
102 m_profileId = std::forward<ProfileIdT>(value);
104 template <
typename ProfileIdT = Aws::String>
118 m_notificationStatusHasBeenSet =
true;
119 m_notificationStatus = value;
133 template <
typename StateT = AlertStateInfo>
135 m_stateHasBeenSet =
true;
136 m_state = std::forward<StateT>(value);
138 template <
typename StateT = AlertStateInfo>
140 SetState(std::forward<StateT>(value));
151 template <
typename CreatedAtT = Aws::Utils::DateTime>
153 m_createdAtHasBeenSet =
true;
154 m_createdAt = std::forward<CreatedAtT>(value);
156 template <
typename CreatedAtT = Aws::Utils::DateTime>
169 template <
typename UpdatedAtT = Aws::Utils::DateTime>
171 m_updatedAtHasBeenSet =
true;
172 m_updatedAt = std::forward<UpdatedAtT>(value);
174 template <
typename UpdatedAtT = Aws::Utils::DateTime>
187 template <
typename AlertArnT = Aws::String>
189 m_alertArnHasBeenSet =
true;
190 m_alertArn = std::forward<AlertArnT>(value);
192 template <
typename AlertArnT = Aws::String>
209 AlertStateInfo m_state;
216 bool m_nameHasBeenSet =
false;
217 bool m_alertIdHasBeenSet =
false;
218 bool m_spaceIdHasBeenSet =
false;
219 bool m_profileIdHasBeenSet =
false;
220 bool m_notificationStatusHasBeenSet =
false;
221 bool m_stateHasBeenSet =
false;
222 bool m_createdAtHasBeenSet =
false;
223 bool m_updatedAtHasBeenSet =
false;
224 bool m_alertArnHasBeenSet =
false;
NotificationStatus GetNotificationStatus() const
AWS_CLOUDWATCHOMNI_API AlertSummary & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::String & GetSpaceId() const
const Aws::String & GetAlertId() const
AlertSummary & WithName(NameT &&value)
bool SpaceIdHasBeenSet() const
bool StateHasBeenSet() const
const AlertStateInfo & GetState() const
AWS_CLOUDWATCHOMNI_API AlertSummary()=default
AlertSummary & WithNotificationStatus(NotificationStatus value)
bool NotificationStatusHasBeenSet() const
const Aws::String & GetProfileId() const
bool UpdatedAtHasBeenSet() const
bool CreatedAtHasBeenSet() const
void SetState(StateT &&value)
AlertSummary & WithProfileId(ProfileIdT &&value)
void SetNotificationStatus(NotificationStatus value)
AlertSummary & WithSpaceId(SpaceIdT &&value)
void SetName(NameT &&value)
void SetUpdatedAt(UpdatedAtT &&value)
AlertSummary & WithState(StateT &&value)
AWS_CLOUDWATCHOMNI_API AlertSummary(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetCreatedAt(CreatedAtT &&value)
AlertSummary & WithUpdatedAt(UpdatedAtT &&value)
bool AlertIdHasBeenSet() const
AlertSummary & WithAlertArn(AlertArnT &&value)
bool ProfileIdHasBeenSet() const
const Aws::Utils::DateTime & GetUpdatedAt() const
const Aws::String & GetAlertArn() const
void SetAlertId(AlertIdT &&value)
AWS_CLOUDWATCHOMNI_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AlertSummary & WithAlertId(AlertIdT &&value)
void SetProfileId(ProfileIdT &&value)
void SetSpaceId(SpaceIdT &&value)
bool NameHasBeenSet() const
AlertSummary & WithCreatedAt(CreatedAtT &&value)
bool AlertArnHasBeenSet() const
void SetAlertArn(AlertArnT &&value)
const Aws::String & GetName() const
const Aws::Utils::DateTime & GetCreatedAt() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String