AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetEventArn(const Aws::String& value) { m_eventArnHasBeenSet = true; m_eventArn = value; }
53 inline void SetEventArn(Aws::String&& value) { m_eventArnHasBeenSet = true; m_eventArn = std::move(value); }
54 inline void SetEventArn(const char* value) { m_eventArnHasBeenSet = true; m_eventArn.assign(value); }
55 inline HealthEvent& WithEventArn(const Aws::String& value) { SetEventArn(value); return *this;}
56 inline HealthEvent& WithEventArn(Aws::String&& value) { SetEventArn(std::move(value)); return *this;}
57 inline HealthEvent& WithEventArn(const char* value) { SetEventArn(value); return *this;}
59
61
65 inline const Aws::String& GetEventId() const{ return m_eventId; }
66 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
67 inline void SetEventId(const Aws::String& value) { m_eventIdHasBeenSet = true; m_eventId = value; }
68 inline void SetEventId(Aws::String&& value) { m_eventIdHasBeenSet = true; m_eventId = std::move(value); }
69 inline void SetEventId(const char* value) { m_eventIdHasBeenSet = true; m_eventId.assign(value); }
70 inline HealthEvent& WithEventId(const Aws::String& value) { SetEventId(value); return *this;}
71 inline HealthEvent& WithEventId(Aws::String&& value) { SetEventId(std::move(value)); return *this;}
72 inline HealthEvent& WithEventId(const char* value) { SetEventId(value); return *this;}
74
76
79 inline const Aws::Utils::DateTime& GetStartedAt() const{ return m_startedAt; }
80 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
81 inline void SetStartedAt(const Aws::Utils::DateTime& value) { m_startedAtHasBeenSet = true; m_startedAt = value; }
82 inline void SetStartedAt(Aws::Utils::DateTime&& value) { m_startedAtHasBeenSet = true; m_startedAt = std::move(value); }
83 inline HealthEvent& WithStartedAt(const Aws::Utils::DateTime& value) { SetStartedAt(value); return *this;}
84 inline HealthEvent& WithStartedAt(Aws::Utils::DateTime&& value) { SetStartedAt(std::move(value)); return *this;}
86
88
92 inline const Aws::Utils::DateTime& GetEndedAt() const{ return m_endedAt; }
93 inline bool EndedAtHasBeenSet() const { return m_endedAtHasBeenSet; }
94 inline void SetEndedAt(const Aws::Utils::DateTime& value) { m_endedAtHasBeenSet = true; m_endedAt = value; }
95 inline void SetEndedAt(Aws::Utils::DateTime&& value) { m_endedAtHasBeenSet = true; m_endedAt = std::move(value); }
96 inline HealthEvent& WithEndedAt(const Aws::Utils::DateTime& value) { SetEndedAt(value); return *this;}
97 inline HealthEvent& WithEndedAt(Aws::Utils::DateTime&& value) { SetEndedAt(std::move(value)); return *this;}
99
101
104 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
105 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
106 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
107 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
108 inline HealthEvent& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
109 inline HealthEvent& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
111
113
116 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; }
117 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
118 inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = value; }
119 inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::move(value); }
120 inline HealthEvent& WithLastUpdatedAt(const Aws::Utils::DateTime& value) { SetLastUpdatedAt(value); return *this;}
121 inline HealthEvent& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;}
123
125
128 inline const Aws::Vector<ImpactedLocation>& GetImpactedLocations() const{ return m_impactedLocations; }
129 inline bool ImpactedLocationsHasBeenSet() const { return m_impactedLocationsHasBeenSet; }
130 inline void SetImpactedLocations(const Aws::Vector<ImpactedLocation>& value) { m_impactedLocationsHasBeenSet = true; m_impactedLocations = value; }
131 inline void SetImpactedLocations(Aws::Vector<ImpactedLocation>&& value) { m_impactedLocationsHasBeenSet = true; m_impactedLocations = std::move(value); }
133 inline HealthEvent& WithImpactedLocations(Aws::Vector<ImpactedLocation>&& value) { SetImpactedLocations(std::move(value)); return *this;}
134 inline HealthEvent& AddImpactedLocations(const ImpactedLocation& value) { m_impactedLocationsHasBeenSet = true; m_impactedLocations.push_back(value); return *this; }
135 inline HealthEvent& AddImpactedLocations(ImpactedLocation&& value) { m_impactedLocationsHasBeenSet = true; m_impactedLocations.push_back(std::move(value)); return *this; }
137
139
142 inline const HealthEventStatus& GetStatus() const{ return m_status; }
143 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
144 inline void SetStatus(const HealthEventStatus& value) { m_statusHasBeenSet = true; m_status = value; }
145 inline void SetStatus(HealthEventStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
146 inline HealthEvent& WithStatus(const HealthEventStatus& value) { SetStatus(value); return *this;}
147 inline HealthEvent& WithStatus(HealthEventStatus&& value) { SetStatus(std::move(value)); return *this;}
149
151
158 inline double GetPercentOfTotalTrafficImpacted() const{ return m_percentOfTotalTrafficImpacted; }
159 inline bool PercentOfTotalTrafficImpactedHasBeenSet() const { return m_percentOfTotalTrafficImpactedHasBeenSet; }
160 inline void SetPercentOfTotalTrafficImpacted(double value) { m_percentOfTotalTrafficImpactedHasBeenSet = true; m_percentOfTotalTrafficImpacted = value; }
163
165
168 inline const HealthEventImpactType& GetImpactType() const{ return m_impactType; }
169 inline bool ImpactTypeHasBeenSet() const { return m_impactTypeHasBeenSet; }
170 inline void SetImpactType(const HealthEventImpactType& value) { m_impactTypeHasBeenSet = true; m_impactType = value; }
171 inline void SetImpactType(HealthEventImpactType&& value) { m_impactTypeHasBeenSet = true; m_impactType = std::move(value); }
172 inline HealthEvent& WithImpactType(const HealthEventImpactType& value) { SetImpactType(value); return *this;}
173 inline HealthEvent& WithImpactType(HealthEventImpactType&& value) { SetImpactType(std::move(value)); return *this;}
175
177
182 inline double GetHealthScoreThreshold() const{ return m_healthScoreThreshold; }
183 inline bool HealthScoreThresholdHasBeenSet() const { return m_healthScoreThresholdHasBeenSet; }
184 inline void SetHealthScoreThreshold(double value) { m_healthScoreThresholdHasBeenSet = true; m_healthScoreThreshold = value; }
185 inline HealthEvent& WithHealthScoreThreshold(double value) { SetHealthScoreThreshold(value); return *this;}
187 private:
188
189 Aws::String m_eventArn;
190 bool m_eventArnHasBeenSet = false;
191
192 Aws::String m_eventId;
193 bool m_eventIdHasBeenSet = false;
194
195 Aws::Utils::DateTime m_startedAt;
196 bool m_startedAtHasBeenSet = false;
197
198 Aws::Utils::DateTime m_endedAt;
199 bool m_endedAtHasBeenSet = false;
200
201 Aws::Utils::DateTime m_createdAt;
202 bool m_createdAtHasBeenSet = false;
203
204 Aws::Utils::DateTime m_lastUpdatedAt;
205 bool m_lastUpdatedAtHasBeenSet = false;
206
207 Aws::Vector<ImpactedLocation> m_impactedLocations;
208 bool m_impactedLocationsHasBeenSet = false;
209
210 HealthEventStatus m_status;
211 bool m_statusHasBeenSet = false;
212
213 double m_percentOfTotalTrafficImpacted;
214 bool m_percentOfTotalTrafficImpactedHasBeenSet = false;
215
216 HealthEventImpactType m_impactType;
217 bool m_impactTypeHasBeenSet = false;
218
219 double m_healthScoreThreshold;
220 bool m_healthScoreThresholdHasBeenSet = false;
221 };
222
223} // namespace Model
224} // namespace InternetMonitor
225} // namespace Aws
AWS_INTERNETMONITOR_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_INTERNETMONITOR_API HealthEvent()
HealthEvent & WithStartedAt(const Aws::Utils::DateTime &value)
Definition HealthEvent.h:83
const HealthEventImpactType & GetImpactType() const
HealthEvent & WithImpactType(const HealthEventImpactType &value)
void SetImpactType(const HealthEventImpactType &value)
HealthEvent & WithEventArn(Aws::String &&value)
Definition HealthEvent.h:56
const Aws::Utils::DateTime & GetLastUpdatedAt() const
HealthEvent & WithImpactedLocations(Aws::Vector< ImpactedLocation > &&value)
void SetPercentOfTotalTrafficImpacted(double value)
HealthEvent & WithStatus(const HealthEventStatus &value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
HealthEvent & WithLastUpdatedAt(Aws::Utils::DateTime &&value)
HealthEvent & AddImpactedLocations(ImpactedLocation &&value)
void SetEventArn(Aws::String &&value)
Definition HealthEvent.h:53
void SetEndedAt(const Aws::Utils::DateTime &value)
Definition HealthEvent.h:94
void SetEventArn(const char *value)
Definition HealthEvent.h:54
const Aws::String & GetEventId() const
Definition HealthEvent.h:65
void SetEventId(const Aws::String &value)
Definition HealthEvent.h:67
void SetStartedAt(Aws::Utils::DateTime &&value)
Definition HealthEvent.h:82
void SetStartedAt(const Aws::Utils::DateTime &value)
Definition HealthEvent.h:81
HealthEvent & WithPercentOfTotalTrafficImpacted(double value)
void SetImpactedLocations(Aws::Vector< ImpactedLocation > &&value)
void SetLastUpdatedAt(Aws::Utils::DateTime &&value)
void SetImpactedLocations(const Aws::Vector< ImpactedLocation > &value)
HealthEvent & WithEventId(const char *value)
Definition HealthEvent.h:72
HealthEvent & WithImpactType(HealthEventImpactType &&value)
void SetStatus(HealthEventStatus &&value)
void SetEndedAt(Aws::Utils::DateTime &&value)
Definition HealthEvent.h:95
HealthEvent & WithEventArn(const char *value)
Definition HealthEvent.h:57
void SetCreatedAt(Aws::Utils::DateTime &&value)
const HealthEventStatus & GetStatus() const
const Aws::String & GetEventArn() const
Definition HealthEvent.h:50
const Aws::Utils::DateTime & GetEndedAt() const
Definition HealthEvent.h:92
void SetEventId(Aws::String &&value)
Definition HealthEvent.h:68
const Aws::Vector< ImpactedLocation > & GetImpactedLocations() const
HealthEvent & WithEventId(Aws::String &&value)
Definition HealthEvent.h:71
HealthEvent & WithEndedAt(Aws::Utils::DateTime &&value)
Definition HealthEvent.h:97
const Aws::Utils::DateTime & GetStartedAt() const
Definition HealthEvent.h:79
HealthEvent & WithStatus(HealthEventStatus &&value)
void SetLastUpdatedAt(const Aws::Utils::DateTime &value)
HealthEvent & WithHealthScoreThreshold(double value)
HealthEvent & WithCreatedAt(Aws::Utils::DateTime &&value)
HealthEvent & WithImpactedLocations(const Aws::Vector< ImpactedLocation > &value)
void SetEventArn(const Aws::String &value)
Definition HealthEvent.h:52
HealthEvent & WithEventArn(const Aws::String &value)
Definition HealthEvent.h:55
const Aws::Utils::DateTime & GetCreatedAt() const
HealthEvent & WithCreatedAt(const Aws::Utils::DateTime &value)
HealthEvent & WithStartedAt(Aws::Utils::DateTime &&value)
Definition HealthEvent.h:84
AWS_INTERNETMONITOR_API HealthEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
HealthEvent & WithEventId(const Aws::String &value)
Definition HealthEvent.h:70
AWS_INTERNETMONITOR_API HealthEvent(Aws::Utils::Json::JsonView jsonValue)
HealthEvent & WithLastUpdatedAt(const Aws::Utils::DateTime &value)
HealthEvent & WithEndedAt(const Aws::Utils::DateTime &value)
Definition HealthEvent.h:96
void SetImpactType(HealthEventImpactType &&value)
void SetStatus(const HealthEventStatus &value)
HealthEvent & AddImpactedLocations(const ImpactedLocation &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