AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetHealthEventResult.h
1
6#pragma once
7#include <aws/internetmonitor/InternetMonitor_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/internetmonitor/model/HealthEventStatus.h>
12#include <aws/internetmonitor/model/HealthEventImpactType.h>
13#include <aws/internetmonitor/model/ImpactedLocation.h>
14#include <utility>
15
16namespace Aws
17{
18template<typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace InternetMonitor
29{
30namespace Model
31{
33 {
34 public:
35 AWS_INTERNETMONITOR_API GetHealthEventResult() = default;
38
39
41
44 inline const Aws::String& GetEventArn() const { return m_eventArn; }
45 template<typename EventArnT = Aws::String>
46 void SetEventArn(EventArnT&& value) { m_eventArnHasBeenSet = true; m_eventArn = std::forward<EventArnT>(value); }
47 template<typename EventArnT = Aws::String>
48 GetHealthEventResult& WithEventArn(EventArnT&& value) { SetEventArn(std::forward<EventArnT>(value)); return *this;}
50
52
55 inline const Aws::String& GetEventId() const { return m_eventId; }
56 template<typename EventIdT = Aws::String>
57 void SetEventId(EventIdT&& value) { m_eventIdHasBeenSet = true; m_eventId = std::forward<EventIdT>(value); }
58 template<typename EventIdT = Aws::String>
59 GetHealthEventResult& WithEventId(EventIdT&& value) { SetEventId(std::forward<EventIdT>(value)); return *this;}
61
63
66 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
67 template<typename StartedAtT = Aws::Utils::DateTime>
68 void SetStartedAt(StartedAtT&& value) { m_startedAtHasBeenSet = true; m_startedAt = std::forward<StartedAtT>(value); }
69 template<typename StartedAtT = Aws::Utils::DateTime>
70 GetHealthEventResult& WithStartedAt(StartedAtT&& value) { SetStartedAt(std::forward<StartedAtT>(value)); return *this;}
72
74
78 inline const Aws::Utils::DateTime& GetEndedAt() const { return m_endedAt; }
79 template<typename EndedAtT = Aws::Utils::DateTime>
80 void SetEndedAt(EndedAtT&& value) { m_endedAtHasBeenSet = true; m_endedAt = std::forward<EndedAtT>(value); }
81 template<typename EndedAtT = Aws::Utils::DateTime>
82 GetHealthEventResult& WithEndedAt(EndedAtT&& value) { SetEndedAt(std::forward<EndedAtT>(value)); return *this;}
84
86
89 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
90 template<typename CreatedAtT = Aws::Utils::DateTime>
91 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
92 template<typename CreatedAtT = Aws::Utils::DateTime>
93 GetHealthEventResult& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
95
97
100 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
101 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
102 void SetLastUpdatedAt(LastUpdatedAtT&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value); }
103 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
104 GetHealthEventResult& WithLastUpdatedAt(LastUpdatedAtT&& value) { SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value)); return *this;}
106
108
111 inline const Aws::Vector<ImpactedLocation>& GetImpactedLocations() const { return m_impactedLocations; }
112 template<typename ImpactedLocationsT = Aws::Vector<ImpactedLocation>>
113 void SetImpactedLocations(ImpactedLocationsT&& value) { m_impactedLocationsHasBeenSet = true; m_impactedLocations = std::forward<ImpactedLocationsT>(value); }
114 template<typename ImpactedLocationsT = Aws::Vector<ImpactedLocation>>
115 GetHealthEventResult& WithImpactedLocations(ImpactedLocationsT&& value) { SetImpactedLocations(std::forward<ImpactedLocationsT>(value)); return *this;}
116 template<typename ImpactedLocationsT = ImpactedLocation>
117 GetHealthEventResult& AddImpactedLocations(ImpactedLocationsT&& value) { m_impactedLocationsHasBeenSet = true; m_impactedLocations.emplace_back(std::forward<ImpactedLocationsT>(value)); return *this; }
119
121
124 inline HealthEventStatus GetStatus() const { return m_status; }
125 inline void SetStatus(HealthEventStatus value) { m_statusHasBeenSet = true; m_status = value; }
126 inline GetHealthEventResult& WithStatus(HealthEventStatus value) { SetStatus(value); return *this;}
128
130
137 inline double GetPercentOfTotalTrafficImpacted() const { return m_percentOfTotalTrafficImpacted; }
138 inline void SetPercentOfTotalTrafficImpacted(double value) { m_percentOfTotalTrafficImpactedHasBeenSet = true; m_percentOfTotalTrafficImpacted = value; }
141
143
146 inline HealthEventImpactType GetImpactType() const { return m_impactType; }
147 inline void SetImpactType(HealthEventImpactType value) { m_impactTypeHasBeenSet = true; m_impactType = value; }
150
152
157 inline double GetHealthScoreThreshold() const { return m_healthScoreThreshold; }
158 inline void SetHealthScoreThreshold(double value) { m_healthScoreThresholdHasBeenSet = true; m_healthScoreThreshold = value; }
159 inline GetHealthEventResult& WithHealthScoreThreshold(double value) { SetHealthScoreThreshold(value); return *this;}
161
163
164 inline const Aws::String& GetRequestId() const { return m_requestId; }
165 template<typename RequestIdT = Aws::String>
166 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
167 template<typename RequestIdT = Aws::String>
168 GetHealthEventResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
170 private:
171
172 Aws::String m_eventArn;
173 bool m_eventArnHasBeenSet = false;
174
175 Aws::String m_eventId;
176 bool m_eventIdHasBeenSet = false;
177
178 Aws::Utils::DateTime m_startedAt{};
179 bool m_startedAtHasBeenSet = false;
180
181 Aws::Utils::DateTime m_endedAt{};
182 bool m_endedAtHasBeenSet = false;
183
184 Aws::Utils::DateTime m_createdAt{};
185 bool m_createdAtHasBeenSet = false;
186
187 Aws::Utils::DateTime m_lastUpdatedAt{};
188 bool m_lastUpdatedAtHasBeenSet = false;
189
190 Aws::Vector<ImpactedLocation> m_impactedLocations;
191 bool m_impactedLocationsHasBeenSet = false;
192
194 bool m_statusHasBeenSet = false;
195
196 double m_percentOfTotalTrafficImpacted{0.0};
197 bool m_percentOfTotalTrafficImpactedHasBeenSet = false;
198
200 bool m_impactTypeHasBeenSet = false;
201
202 double m_healthScoreThreshold{0.0};
203 bool m_healthScoreThresholdHasBeenSet = false;
204
205 Aws::String m_requestId;
206 bool m_requestIdHasBeenSet = false;
207 };
208
209} // namespace Model
210} // namespace InternetMonitor
211} // 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_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