AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
38
39
41
44 inline const Aws::String& GetEventArn() const{ return m_eventArn; }
45 inline void SetEventArn(const Aws::String& value) { m_eventArn = value; }
46 inline void SetEventArn(Aws::String&& value) { m_eventArn = std::move(value); }
47 inline void SetEventArn(const char* value) { m_eventArn.assign(value); }
48 inline GetHealthEventResult& WithEventArn(const Aws::String& value) { SetEventArn(value); return *this;}
49 inline GetHealthEventResult& WithEventArn(Aws::String&& value) { SetEventArn(std::move(value)); return *this;}
50 inline GetHealthEventResult& WithEventArn(const char* value) { SetEventArn(value); return *this;}
52
54
57 inline const Aws::String& GetEventId() const{ return m_eventId; }
58 inline void SetEventId(const Aws::String& value) { m_eventId = value; }
59 inline void SetEventId(Aws::String&& value) { m_eventId = std::move(value); }
60 inline void SetEventId(const char* value) { m_eventId.assign(value); }
61 inline GetHealthEventResult& WithEventId(const Aws::String& value) { SetEventId(value); return *this;}
62 inline GetHealthEventResult& WithEventId(Aws::String&& value) { SetEventId(std::move(value)); return *this;}
63 inline GetHealthEventResult& WithEventId(const char* value) { SetEventId(value); return *this;}
65
67
70 inline const Aws::Utils::DateTime& GetStartedAt() const{ return m_startedAt; }
71 inline void SetStartedAt(const Aws::Utils::DateTime& value) { m_startedAt = value; }
72 inline void SetStartedAt(Aws::Utils::DateTime&& value) { m_startedAt = std::move(value); }
73 inline GetHealthEventResult& WithStartedAt(const Aws::Utils::DateTime& value) { SetStartedAt(value); return *this;}
74 inline GetHealthEventResult& WithStartedAt(Aws::Utils::DateTime&& value) { SetStartedAt(std::move(value)); return *this;}
76
78
82 inline const Aws::Utils::DateTime& GetEndedAt() const{ return m_endedAt; }
83 inline void SetEndedAt(const Aws::Utils::DateTime& value) { m_endedAt = value; }
84 inline void SetEndedAt(Aws::Utils::DateTime&& value) { m_endedAt = std::move(value); }
85 inline GetHealthEventResult& WithEndedAt(const Aws::Utils::DateTime& value) { SetEndedAt(value); return *this;}
86 inline GetHealthEventResult& WithEndedAt(Aws::Utils::DateTime&& value) { SetEndedAt(std::move(value)); return *this;}
88
90
93 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
94 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAt = value; }
95 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAt = std::move(value); }
96 inline GetHealthEventResult& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
97 inline GetHealthEventResult& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
99
101
104 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; }
105 inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAt = value; }
106 inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAt = std::move(value); }
108 inline GetHealthEventResult& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;}
110
112
115 inline const Aws::Vector<ImpactedLocation>& GetImpactedLocations() const{ return m_impactedLocations; }
116 inline void SetImpactedLocations(const Aws::Vector<ImpactedLocation>& value) { m_impactedLocations = value; }
117 inline void SetImpactedLocations(Aws::Vector<ImpactedLocation>&& value) { m_impactedLocations = std::move(value); }
120 inline GetHealthEventResult& AddImpactedLocations(const ImpactedLocation& value) { m_impactedLocations.push_back(value); return *this; }
121 inline GetHealthEventResult& AddImpactedLocations(ImpactedLocation&& value) { m_impactedLocations.push_back(std::move(value)); return *this; }
123
125
128 inline const HealthEventStatus& GetStatus() const{ return m_status; }
129 inline void SetStatus(const HealthEventStatus& value) { m_status = value; }
130 inline void SetStatus(HealthEventStatus&& value) { m_status = std::move(value); }
131 inline GetHealthEventResult& WithStatus(const HealthEventStatus& value) { SetStatus(value); return *this;}
132 inline GetHealthEventResult& WithStatus(HealthEventStatus&& value) { SetStatus(std::move(value)); return *this;}
134
136
143 inline double GetPercentOfTotalTrafficImpacted() const{ return m_percentOfTotalTrafficImpacted; }
144 inline void SetPercentOfTotalTrafficImpacted(double value) { m_percentOfTotalTrafficImpacted = value; }
147
149
152 inline const HealthEventImpactType& GetImpactType() const{ return m_impactType; }
153 inline void SetImpactType(const HealthEventImpactType& value) { m_impactType = value; }
154 inline void SetImpactType(HealthEventImpactType&& value) { m_impactType = std::move(value); }
155 inline GetHealthEventResult& WithImpactType(const HealthEventImpactType& value) { SetImpactType(value); return *this;}
156 inline GetHealthEventResult& WithImpactType(HealthEventImpactType&& value) { SetImpactType(std::move(value)); return *this;}
158
160
165 inline double GetHealthScoreThreshold() const{ return m_healthScoreThreshold; }
166 inline void SetHealthScoreThreshold(double value) { m_healthScoreThreshold = value; }
167 inline GetHealthEventResult& WithHealthScoreThreshold(double value) { SetHealthScoreThreshold(value); return *this;}
169
171
172 inline const Aws::String& GetRequestId() const{ return m_requestId; }
173 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
174 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
175 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
176 inline GetHealthEventResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
177 inline GetHealthEventResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
178 inline GetHealthEventResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
180 private:
181
182 Aws::String m_eventArn;
183
184 Aws::String m_eventId;
185
186 Aws::Utils::DateTime m_startedAt;
187
188 Aws::Utils::DateTime m_endedAt;
189
190 Aws::Utils::DateTime m_createdAt;
191
192 Aws::Utils::DateTime m_lastUpdatedAt;
193
194 Aws::Vector<ImpactedLocation> m_impactedLocations;
195
196 HealthEventStatus m_status;
197
198 double m_percentOfTotalTrafficImpacted;
199
200 HealthEventImpactType m_impactType;
201
202 double m_healthScoreThreshold;
203
204 Aws::String m_requestId;
205 };
206
207} // namespace Model
208} // namespace InternetMonitor
209} // namespace Aws
void SetImpactedLocations(const Aws::Vector< ImpactedLocation > &value)
GetHealthEventResult & WithLastUpdatedAt(Aws::Utils::DateTime &&value)
GetHealthEventResult & WithStatus(HealthEventStatus &&value)
GetHealthEventResult & WithLastUpdatedAt(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetLastUpdatedAt() const
void SetLastUpdatedAt(Aws::Utils::DateTime &&value)
GetHealthEventResult & WithEndedAt(Aws::Utils::DateTime &&value)
GetHealthEventResult & WithStartedAt(Aws::Utils::DateTime &&value)
GetHealthEventResult & WithImpactType(const HealthEventImpactType &value)
GetHealthEventResult & WithEventId(const Aws::String &value)
GetHealthEventResult & WithImpactType(HealthEventImpactType &&value)
GetHealthEventResult & WithEventArn(const char *value)
GetHealthEventResult & WithRequestId(const char *value)
GetHealthEventResult & WithStartedAt(const Aws::Utils::DateTime &value)
GetHealthEventResult & WithRequestId(const Aws::String &value)
GetHealthEventResult & AddImpactedLocations(const ImpactedLocation &value)
const Aws::Utils::DateTime & GetStartedAt() const
GetHealthEventResult & WithImpactedLocations(Aws::Vector< ImpactedLocation > &&value)
GetHealthEventResult & WithEventId(const char *value)
const Aws::Vector< ImpactedLocation > & GetImpactedLocations() const
GetHealthEventResult & AddImpactedLocations(ImpactedLocation &&value)
GetHealthEventResult & WithCreatedAt(const Aws::Utils::DateTime &value)
GetHealthEventResult & WithEventArn(const Aws::String &value)
void SetEndedAt(const Aws::Utils::DateTime &value)
GetHealthEventResult & WithRequestId(Aws::String &&value)
const HealthEventImpactType & GetImpactType() const
AWS_INTERNETMONITOR_API GetHealthEventResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetHealthEventResult & WithEventId(Aws::String &&value)
void SetImpactedLocations(Aws::Vector< ImpactedLocation > &&value)
GetHealthEventResult & WithStatus(const HealthEventStatus &value)
GetHealthEventResult & WithCreatedAt(Aws::Utils::DateTime &&value)
GetHealthEventResult & WithHealthScoreThreshold(double value)
void SetLastUpdatedAt(const Aws::Utils::DateTime &value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
GetHealthEventResult & WithPercentOfTotalTrafficImpacted(double value)
void SetStartedAt(const Aws::Utils::DateTime &value)
GetHealthEventResult & WithImpactedLocations(const Aws::Vector< ImpactedLocation > &value)
GetHealthEventResult & WithEndedAt(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetEndedAt() const
const Aws::Utils::DateTime & GetCreatedAt() const
GetHealthEventResult & WithEventArn(Aws::String &&value)
void SetImpactType(const HealthEventImpactType &value)
void SetImpactType(HealthEventImpactType &&value)
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