AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
HealthEvent.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{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace InternetMonitor
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_INTERNETMONITOR_API HealthEvent() = default;
41 AWS_INTERNETMONITOR_API HealthEvent(Aws::Utils::Json::JsonView jsonValue);
42 AWS_INTERNETMONITOR_API HealthEvent& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_INTERNETMONITOR_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetEventArn() const { return m_eventArn; }
51 inline bool EventArnHasBeenSet() const { return m_eventArnHasBeenSet; }
52 template<typename EventArnT = Aws::String>
53 void SetEventArn(EventArnT&& value) { m_eventArnHasBeenSet = true; m_eventArn = std::forward<EventArnT>(value); }
54 template<typename EventArnT = Aws::String>
55 HealthEvent& WithEventArn(EventArnT&& value) { SetEventArn(std::forward<EventArnT>(value)); return *this;}
57
59
63 inline const Aws::String& GetEventId() const { return m_eventId; }
64 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
65 template<typename EventIdT = Aws::String>
66 void SetEventId(EventIdT&& value) { m_eventIdHasBeenSet = true; m_eventId = std::forward<EventIdT>(value); }
67 template<typename EventIdT = Aws::String>
68 HealthEvent& WithEventId(EventIdT&& value) { SetEventId(std::forward<EventIdT>(value)); return *this;}
70
72
75 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
76 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
77 template<typename StartedAtT = Aws::Utils::DateTime>
78 void SetStartedAt(StartedAtT&& value) { m_startedAtHasBeenSet = true; m_startedAt = std::forward<StartedAtT>(value); }
79 template<typename StartedAtT = Aws::Utils::DateTime>
80 HealthEvent& WithStartedAt(StartedAtT&& value) { SetStartedAt(std::forward<StartedAtT>(value)); return *this;}
82
84
88 inline const Aws::Utils::DateTime& GetEndedAt() const { return m_endedAt; }
89 inline bool EndedAtHasBeenSet() const { return m_endedAtHasBeenSet; }
90 template<typename EndedAtT = Aws::Utils::DateTime>
91 void SetEndedAt(EndedAtT&& value) { m_endedAtHasBeenSet = true; m_endedAt = std::forward<EndedAtT>(value); }
92 template<typename EndedAtT = Aws::Utils::DateTime>
93 HealthEvent& WithEndedAt(EndedAtT&& value) { SetEndedAt(std::forward<EndedAtT>(value)); return *this;}
95
97
100 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
101 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
102 template<typename CreatedAtT = Aws::Utils::DateTime>
103 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
104 template<typename CreatedAtT = Aws::Utils::DateTime>
105 HealthEvent& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
107
109
112 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
113 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
114 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
115 void SetLastUpdatedAt(LastUpdatedAtT&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value); }
116 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
117 HealthEvent& WithLastUpdatedAt(LastUpdatedAtT&& value) { SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value)); return *this;}
119
121
124 inline const Aws::Vector<ImpactedLocation>& GetImpactedLocations() const { return m_impactedLocations; }
125 inline bool ImpactedLocationsHasBeenSet() const { return m_impactedLocationsHasBeenSet; }
126 template<typename ImpactedLocationsT = Aws::Vector<ImpactedLocation>>
127 void SetImpactedLocations(ImpactedLocationsT&& value) { m_impactedLocationsHasBeenSet = true; m_impactedLocations = std::forward<ImpactedLocationsT>(value); }
128 template<typename ImpactedLocationsT = Aws::Vector<ImpactedLocation>>
129 HealthEvent& WithImpactedLocations(ImpactedLocationsT&& value) { SetImpactedLocations(std::forward<ImpactedLocationsT>(value)); return *this;}
130 template<typename ImpactedLocationsT = ImpactedLocation>
131 HealthEvent& AddImpactedLocations(ImpactedLocationsT&& value) { m_impactedLocationsHasBeenSet = true; m_impactedLocations.emplace_back(std::forward<ImpactedLocationsT>(value)); return *this; }
133
135
138 inline HealthEventStatus GetStatus() const { return m_status; }
139 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
140 inline void SetStatus(HealthEventStatus value) { m_statusHasBeenSet = true; m_status = value; }
141 inline HealthEvent& WithStatus(HealthEventStatus value) { SetStatus(value); return *this;}
143
145
152 inline double GetPercentOfTotalTrafficImpacted() const { return m_percentOfTotalTrafficImpacted; }
153 inline bool PercentOfTotalTrafficImpactedHasBeenSet() const { return m_percentOfTotalTrafficImpactedHasBeenSet; }
154 inline void SetPercentOfTotalTrafficImpacted(double value) { m_percentOfTotalTrafficImpactedHasBeenSet = true; m_percentOfTotalTrafficImpacted = value; }
157
159
162 inline HealthEventImpactType GetImpactType() const { return m_impactType; }
163 inline bool ImpactTypeHasBeenSet() const { return m_impactTypeHasBeenSet; }
164 inline void SetImpactType(HealthEventImpactType value) { m_impactTypeHasBeenSet = true; m_impactType = value; }
165 inline HealthEvent& WithImpactType(HealthEventImpactType value) { SetImpactType(value); return *this;}
167
169
174 inline double GetHealthScoreThreshold() const { return m_healthScoreThreshold; }
175 inline bool HealthScoreThresholdHasBeenSet() const { return m_healthScoreThresholdHasBeenSet; }
176 inline void SetHealthScoreThreshold(double value) { m_healthScoreThresholdHasBeenSet = true; m_healthScoreThreshold = value; }
177 inline HealthEvent& WithHealthScoreThreshold(double value) { SetHealthScoreThreshold(value); return *this;}
179 private:
180
181 Aws::String m_eventArn;
182 bool m_eventArnHasBeenSet = false;
183
184 Aws::String m_eventId;
185 bool m_eventIdHasBeenSet = false;
186
187 Aws::Utils::DateTime m_startedAt{};
188 bool m_startedAtHasBeenSet = false;
189
190 Aws::Utils::DateTime m_endedAt{};
191 bool m_endedAtHasBeenSet = false;
192
193 Aws::Utils::DateTime m_createdAt{};
194 bool m_createdAtHasBeenSet = false;
195
196 Aws::Utils::DateTime m_lastUpdatedAt{};
197 bool m_lastUpdatedAtHasBeenSet = false;
198
199 Aws::Vector<ImpactedLocation> m_impactedLocations;
200 bool m_impactedLocationsHasBeenSet = false;
201
203 bool m_statusHasBeenSet = false;
204
205 double m_percentOfTotalTrafficImpacted{0.0};
206 bool m_percentOfTotalTrafficImpactedHasBeenSet = false;
207
209 bool m_impactTypeHasBeenSet = false;
210
211 double m_healthScoreThreshold{0.0};
212 bool m_healthScoreThresholdHasBeenSet = false;
213 };
214
215} // namespace Model
216} // namespace InternetMonitor
217} // namespace Aws
HealthEvent & WithImpactedLocations(ImpactedLocationsT &&value)
AWS_INTERNETMONITOR_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetLastUpdatedAt() const
HealthEvent & AddImpactedLocations(ImpactedLocationsT &&value)
void SetPercentOfTotalTrafficImpacted(double value)
HealthEvent & WithEventArn(EventArnT &&value)
Definition HealthEvent.h:55
void SetCreatedAt(CreatedAtT &&value)
HealthEvent & WithEventId(EventIdT &&value)
Definition HealthEvent.h:68
const Aws::String & GetEventId() const
Definition HealthEvent.h:63
void SetStatus(HealthEventStatus value)
HealthEvent & WithStartedAt(StartedAtT &&value)
Definition HealthEvent.h:80
void SetImpactedLocations(ImpactedLocationsT &&value)
HealthEvent & WithPercentOfTotalTrafficImpacted(double value)
HealthEventStatus GetStatus() const
const Aws::String & GetEventArn() const
Definition HealthEvent.h:50
void SetLastUpdatedAt(LastUpdatedAtT &&value)
void SetStartedAt(StartedAtT &&value)
Definition HealthEvent.h:78
const Aws::Utils::DateTime & GetEndedAt() const
Definition HealthEvent.h:88
const Aws::Vector< ImpactedLocation > & GetImpactedLocations() const
const Aws::Utils::DateTime & GetStartedAt() const
Definition HealthEvent.h:75
void SetEventArn(EventArnT &&value)
Definition HealthEvent.h:53
HealthEvent & WithLastUpdatedAt(LastUpdatedAtT &&value)
HealthEvent & WithEndedAt(EndedAtT &&value)
Definition HealthEvent.h:93
HealthEvent & WithHealthScoreThreshold(double value)
HealthEvent & WithCreatedAt(CreatedAtT &&value)
AWS_INTERNETMONITOR_API HealthEvent()=default
const Aws::Utils::DateTime & GetCreatedAt() const
void SetImpactType(HealthEventImpactType value)
HealthEventImpactType GetImpactType() const
AWS_INTERNETMONITOR_API HealthEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_INTERNETMONITOR_API HealthEvent(Aws::Utils::Json::JsonView jsonValue)
HealthEvent & WithStatus(HealthEventStatus value)
HealthEvent & WithImpactType(HealthEventImpactType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue