AWS SDK for C++

AWS SDK for C++ Version 1.11.900

Loading...
Searching...
No Matches
AlertSummary.h
1
6#pragma once
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>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Cbor {
19class CborValue;
20} // namespace Cbor
21} // namespace Utils
22namespace CloudWatchOmni {
23namespace Model {
24
32 public:
33 AWS_CLOUDWATCHOMNI_API AlertSummary() = default;
34 AWS_CLOUDWATCHOMNI_API AlertSummary(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_CLOUDWATCHOMNI_API AlertSummary& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_CLOUDWATCHOMNI_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
37
39
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template <typename NameT = Aws::String>
45 void SetName(NameT&& value) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
50 AlertSummary& WithName(NameT&& value) {
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetAlertId() const { return m_alertId; }
62 inline bool AlertIdHasBeenSet() const { return m_alertIdHasBeenSet; }
63 template <typename AlertIdT = Aws::String>
64 void SetAlertId(AlertIdT&& value) {
65 m_alertIdHasBeenSet = true;
66 m_alertId = std::forward<AlertIdT>(value);
67 }
68 template <typename AlertIdT = Aws::String>
69 AlertSummary& WithAlertId(AlertIdT&& value) {
70 SetAlertId(std::forward<AlertIdT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetSpaceId() const { return m_spaceId; }
80 inline bool SpaceIdHasBeenSet() const { return m_spaceIdHasBeenSet; }
81 template <typename SpaceIdT = Aws::String>
82 void SetSpaceId(SpaceIdT&& value) {
83 m_spaceIdHasBeenSet = true;
84 m_spaceId = std::forward<SpaceIdT>(value);
85 }
86 template <typename SpaceIdT = Aws::String>
87 AlertSummary& WithSpaceId(SpaceIdT&& value) {
88 SetSpaceId(std::forward<SpaceIdT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetProfileId() const { return m_profileId; }
98 inline bool ProfileIdHasBeenSet() const { return m_profileIdHasBeenSet; }
99 template <typename ProfileIdT = Aws::String>
100 void SetProfileId(ProfileIdT&& value) {
101 m_profileIdHasBeenSet = true;
102 m_profileId = std::forward<ProfileIdT>(value);
103 }
104 template <typename ProfileIdT = Aws::String>
105 AlertSummary& WithProfileId(ProfileIdT&& value) {
106 SetProfileId(std::forward<ProfileIdT>(value));
107 return *this;
108 }
110
112
115 inline NotificationStatus GetNotificationStatus() const { return m_notificationStatus; }
116 inline bool NotificationStatusHasBeenSet() const { return m_notificationStatusHasBeenSet; }
118 m_notificationStatusHasBeenSet = true;
119 m_notificationStatus = value;
120 }
123 return *this;
124 }
126
128
131 inline const AlertStateInfo& GetState() const { return m_state; }
132 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
133 template <typename StateT = AlertStateInfo>
134 void SetState(StateT&& value) {
135 m_stateHasBeenSet = true;
136 m_state = std::forward<StateT>(value);
137 }
138 template <typename StateT = AlertStateInfo>
139 AlertSummary& WithState(StateT&& value) {
140 SetState(std::forward<StateT>(value));
141 return *this;
142 }
144
146
149 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
150 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
151 template <typename CreatedAtT = Aws::Utils::DateTime>
152 void SetCreatedAt(CreatedAtT&& value) {
153 m_createdAtHasBeenSet = true;
154 m_createdAt = std::forward<CreatedAtT>(value);
155 }
156 template <typename CreatedAtT = Aws::Utils::DateTime>
157 AlertSummary& WithCreatedAt(CreatedAtT&& value) {
158 SetCreatedAt(std::forward<CreatedAtT>(value));
159 return *this;
160 }
162
164
167 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
168 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
169 template <typename UpdatedAtT = Aws::Utils::DateTime>
170 void SetUpdatedAt(UpdatedAtT&& value) {
171 m_updatedAtHasBeenSet = true;
172 m_updatedAt = std::forward<UpdatedAtT>(value);
173 }
174 template <typename UpdatedAtT = Aws::Utils::DateTime>
175 AlertSummary& WithUpdatedAt(UpdatedAtT&& value) {
176 SetUpdatedAt(std::forward<UpdatedAtT>(value));
177 return *this;
178 }
180
182
185 inline const Aws::String& GetAlertArn() const { return m_alertArn; }
186 inline bool AlertArnHasBeenSet() const { return m_alertArnHasBeenSet; }
187 template <typename AlertArnT = Aws::String>
188 void SetAlertArn(AlertArnT&& value) {
189 m_alertArnHasBeenSet = true;
190 m_alertArn = std::forward<AlertArnT>(value);
191 }
192 template <typename AlertArnT = Aws::String>
193 AlertSummary& WithAlertArn(AlertArnT&& value) {
194 SetAlertArn(std::forward<AlertArnT>(value));
195 return *this;
196 }
198 private:
199 Aws::String m_name;
200
201 Aws::String m_alertId;
202
203 Aws::String m_spaceId;
204
205 Aws::String m_profileId;
206
208
209 AlertStateInfo m_state;
210
211 Aws::Utils::DateTime m_createdAt{};
212
213 Aws::Utils::DateTime m_updatedAt{};
214
215 Aws::String m_alertArn;
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;
225};
226
227} // namespace Model
228} // namespace CloudWatchOmni
229} // namespace Aws
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)
const AlertStateInfo & GetState() const
AWS_CLOUDWATCHOMNI_API AlertSummary()=default
AlertSummary & WithNotificationStatus(NotificationStatus value)
const Aws::String & GetProfileId() const
AlertSummary & WithProfileId(ProfileIdT &&value)
void SetNotificationStatus(NotificationStatus value)
AlertSummary & WithSpaceId(SpaceIdT &&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)
AlertSummary & WithAlertArn(AlertArnT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
const Aws::String & GetAlertArn() const
AWS_CLOUDWATCHOMNI_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AlertSummary & WithAlertId(AlertIdT &&value)
void SetProfileId(ProfileIdT &&value)
AlertSummary & WithCreatedAt(CreatedAtT &&value)
const Aws::String & GetName() const
const Aws::Utils::DateTime & GetCreatedAt() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String