AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
GetHealthEventResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/internetmonitor/InternetMonitor_EXPORTS.h>
12#include <aws/internetmonitor/model/HealthEventImpactType.h>
13#include <aws/internetmonitor/model/HealthEventStatus.h>
14#include <aws/internetmonitor/model/ImpactedLocation.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace InternetMonitor {
28namespace Model {
30 public:
31 AWS_INTERNETMONITOR_API GetHealthEventResult() = default;
34
36
39 inline const Aws::String& GetEventArn() const { return m_eventArn; }
40 template <typename EventArnT = Aws::String>
41 void SetEventArn(EventArnT&& value) {
42 m_eventArnHasBeenSet = true;
43 m_eventArn = std::forward<EventArnT>(value);
44 }
45 template <typename EventArnT = Aws::String>
46 GetHealthEventResult& WithEventArn(EventArnT&& value) {
47 SetEventArn(std::forward<EventArnT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetEventId() const { return m_eventId; }
57 template <typename EventIdT = Aws::String>
58 void SetEventId(EventIdT&& value) {
59 m_eventIdHasBeenSet = true;
60 m_eventId = std::forward<EventIdT>(value);
61 }
62 template <typename EventIdT = Aws::String>
63 GetHealthEventResult& WithEventId(EventIdT&& value) {
64 SetEventId(std::forward<EventIdT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
74 template <typename StartedAtT = Aws::Utils::DateTime>
75 void SetStartedAt(StartedAtT&& value) {
76 m_startedAtHasBeenSet = true;
77 m_startedAt = std::forward<StartedAtT>(value);
78 }
79 template <typename StartedAtT = Aws::Utils::DateTime>
80 GetHealthEventResult& WithStartedAt(StartedAtT&& value) {
81 SetStartedAt(std::forward<StartedAtT>(value));
82 return *this;
83 }
85
87
91 inline const Aws::Utils::DateTime& GetEndedAt() const { return m_endedAt; }
92 template <typename EndedAtT = Aws::Utils::DateTime>
93 void SetEndedAt(EndedAtT&& value) {
94 m_endedAtHasBeenSet = true;
95 m_endedAt = std::forward<EndedAtT>(value);
96 }
97 template <typename EndedAtT = Aws::Utils::DateTime>
98 GetHealthEventResult& WithEndedAt(EndedAtT&& value) {
99 SetEndedAt(std::forward<EndedAtT>(value));
100 return *this;
101 }
103
105
108 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
109 template <typename CreatedAtT = Aws::Utils::DateTime>
110 void SetCreatedAt(CreatedAtT&& value) {
111 m_createdAtHasBeenSet = true;
112 m_createdAt = std::forward<CreatedAtT>(value);
113 }
114 template <typename CreatedAtT = Aws::Utils::DateTime>
115 GetHealthEventResult& WithCreatedAt(CreatedAtT&& value) {
116 SetCreatedAt(std::forward<CreatedAtT>(value));
117 return *this;
118 }
120
122
125 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
126 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
127 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
128 m_lastUpdatedAtHasBeenSet = true;
129 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
130 }
131 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
132 GetHealthEventResult& WithLastUpdatedAt(LastUpdatedAtT&& value) {
133 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
134 return *this;
135 }
137
139
142 inline const Aws::Vector<ImpactedLocation>& GetImpactedLocations() const { return m_impactedLocations; }
143 template <typename ImpactedLocationsT = Aws::Vector<ImpactedLocation>>
144 void SetImpactedLocations(ImpactedLocationsT&& value) {
145 m_impactedLocationsHasBeenSet = true;
146 m_impactedLocations = std::forward<ImpactedLocationsT>(value);
147 }
148 template <typename ImpactedLocationsT = Aws::Vector<ImpactedLocation>>
149 GetHealthEventResult& WithImpactedLocations(ImpactedLocationsT&& value) {
150 SetImpactedLocations(std::forward<ImpactedLocationsT>(value));
151 return *this;
152 }
153 template <typename ImpactedLocationsT = ImpactedLocation>
154 GetHealthEventResult& AddImpactedLocations(ImpactedLocationsT&& value) {
155 m_impactedLocationsHasBeenSet = true;
156 m_impactedLocations.emplace_back(std::forward<ImpactedLocationsT>(value));
157 return *this;
158 }
160
162
165 inline HealthEventStatus GetStatus() const { return m_status; }
166 inline void SetStatus(HealthEventStatus value) {
167 m_statusHasBeenSet = true;
168 m_status = value;
169 }
171 SetStatus(value);
172 return *this;
173 }
175
177
184 inline double GetPercentOfTotalTrafficImpacted() const { return m_percentOfTotalTrafficImpacted; }
185 inline void SetPercentOfTotalTrafficImpacted(double value) {
186 m_percentOfTotalTrafficImpactedHasBeenSet = true;
187 m_percentOfTotalTrafficImpacted = value;
188 }
191 return *this;
192 }
194
196
199 inline HealthEventImpactType GetImpactType() const { return m_impactType; }
201 m_impactTypeHasBeenSet = true;
202 m_impactType = value;
203 }
205 SetImpactType(value);
206 return *this;
207 }
209
211
216 inline double GetHealthScoreThreshold() const { return m_healthScoreThreshold; }
217 inline void SetHealthScoreThreshold(double value) {
218 m_healthScoreThresholdHasBeenSet = true;
219 m_healthScoreThreshold = value;
220 }
223 return *this;
224 }
226
228
229 inline const Aws::String& GetRequestId() const { return m_requestId; }
230 template <typename RequestIdT = Aws::String>
231 void SetRequestId(RequestIdT&& value) {
232 m_requestIdHasBeenSet = true;
233 m_requestId = std::forward<RequestIdT>(value);
234 }
235 template <typename RequestIdT = Aws::String>
236 GetHealthEventResult& WithRequestId(RequestIdT&& value) {
237 SetRequestId(std::forward<RequestIdT>(value));
238 return *this;
239 }
241 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
242
243 private:
244 Aws::String m_eventArn;
245
246 Aws::String m_eventId;
247
248 Aws::Utils::DateTime m_startedAt{};
249
250 Aws::Utils::DateTime m_endedAt{};
251
252 Aws::Utils::DateTime m_createdAt{};
253
254 Aws::Utils::DateTime m_lastUpdatedAt{};
255
256 Aws::Vector<ImpactedLocation> m_impactedLocations;
257
259
260 double m_percentOfTotalTrafficImpacted{0.0};
261
263
264 double m_healthScoreThreshold{0.0};
265
266 Aws::String m_requestId;
267 Aws::Http::HttpResponseCode m_HttpResponseCode;
268 bool m_eventArnHasBeenSet = false;
269 bool m_eventIdHasBeenSet = false;
270 bool m_startedAtHasBeenSet = false;
271 bool m_endedAtHasBeenSet = false;
272 bool m_createdAtHasBeenSet = false;
273 bool m_lastUpdatedAtHasBeenSet = false;
274 bool m_impactedLocationsHasBeenSet = false;
275 bool m_statusHasBeenSet = false;
276 bool m_percentOfTotalTrafficImpactedHasBeenSet = false;
277 bool m_impactTypeHasBeenSet = false;
278 bool m_healthScoreThresholdHasBeenSet = false;
279 bool m_requestIdHasBeenSet = false;
280};
281
282} // namespace Model
283} // namespace InternetMonitor
284} // namespace Aws
const Aws::Utils::DateTime & GetLastUpdatedAt() const
GetHealthEventResult & WithEventId(EventIdT &&value)
const Aws::Utils::DateTime & GetStartedAt() const
GetHealthEventResult & WithStartedAt(StartedAtT &&value)
AWS_INTERNETMONITOR_API GetHealthEventResult()=default
const Aws::Vector< ImpactedLocation > & GetImpactedLocations() const
GetHealthEventResult & AddImpactedLocations(ImpactedLocationsT &&value)
GetHealthEventResult & WithImpactedLocations(ImpactedLocationsT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_INTERNETMONITOR_API GetHealthEventResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetHealthEventResult & WithRequestId(RequestIdT &&value)
GetHealthEventResult & WithImpactType(HealthEventImpactType value)
GetHealthEventResult & WithHealthScoreThreshold(double value)
GetHealthEventResult & WithPercentOfTotalTrafficImpacted(double value)
GetHealthEventResult & WithCreatedAt(CreatedAtT &&value)
GetHealthEventResult & WithStatus(HealthEventStatus value)
GetHealthEventResult & WithLastUpdatedAt(LastUpdatedAtT &&value)
GetHealthEventResult & WithEndedAt(EndedAtT &&value)
GetHealthEventResult & WithEventArn(EventArnT &&value)
const Aws::Utils::DateTime & GetEndedAt() const
const Aws::Utils::DateTime & GetCreatedAt() const
AWS_INTERNETMONITOR_API GetHealthEventResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue