AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
ImpactedLocation.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/internetmonitor/InternetMonitor_EXPORTS.h>
10#include <aws/internetmonitor/model/HealthEventStatus.h>
11#include <aws/internetmonitor/model/InternetHealth.h>
12#include <aws/internetmonitor/model/NetworkImpairment.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace InternetMonitor {
24namespace Model {
25
36 public:
37 AWS_INTERNETMONITOR_API ImpactedLocation() = default;
38 AWS_INTERNETMONITOR_API ImpactedLocation(Aws::Utils::Json::JsonView jsonValue);
39 AWS_INTERNETMONITOR_API ImpactedLocation& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_INTERNETMONITOR_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline const Aws::String& GetASName() const { return m_aSName; }
47 inline bool ASNameHasBeenSet() const { return m_aSNameHasBeenSet; }
48 template <typename ASNameT = Aws::String>
49 void SetASName(ASNameT&& value) {
50 m_aSNameHasBeenSet = true;
51 m_aSName = std::forward<ASNameT>(value);
52 }
53 template <typename ASNameT = Aws::String>
54 ImpactedLocation& WithASName(ASNameT&& value) {
55 SetASName(std::forward<ASNameT>(value));
56 return *this;
57 }
59
61
65 inline long long GetASNumber() const { return m_aSNumber; }
66 inline bool ASNumberHasBeenSet() const { return m_aSNumberHasBeenSet; }
67 inline void SetASNumber(long long value) {
68 m_aSNumberHasBeenSet = true;
69 m_aSNumber = value;
70 }
71 inline ImpactedLocation& WithASNumber(long long value) {
72 SetASNumber(value);
73 return *this;
74 }
76
78
81 inline const Aws::String& GetCountry() const { return m_country; }
82 inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; }
83 template <typename CountryT = Aws::String>
84 void SetCountry(CountryT&& value) {
85 m_countryHasBeenSet = true;
86 m_country = std::forward<CountryT>(value);
87 }
88 template <typename CountryT = Aws::String>
89 ImpactedLocation& WithCountry(CountryT&& value) {
90 SetCountry(std::forward<CountryT>(value));
91 return *this;
92 }
94
96
102 inline const Aws::String& GetSubdivision() const { return m_subdivision; }
103 inline bool SubdivisionHasBeenSet() const { return m_subdivisionHasBeenSet; }
104 template <typename SubdivisionT = Aws::String>
105 void SetSubdivision(SubdivisionT&& value) {
106 m_subdivisionHasBeenSet = true;
107 m_subdivision = std::forward<SubdivisionT>(value);
108 }
109 template <typename SubdivisionT = Aws::String>
110 ImpactedLocation& WithSubdivision(SubdivisionT&& value) {
111 SetSubdivision(std::forward<SubdivisionT>(value));
112 return *this;
113 }
115
117
124 inline const Aws::String& GetMetro() const { return m_metro; }
125 inline bool MetroHasBeenSet() const { return m_metroHasBeenSet; }
126 template <typename MetroT = Aws::String>
127 void SetMetro(MetroT&& value) {
128 m_metroHasBeenSet = true;
129 m_metro = std::forward<MetroT>(value);
130 }
131 template <typename MetroT = Aws::String>
132 ImpactedLocation& WithMetro(MetroT&& value) {
133 SetMetro(std::forward<MetroT>(value));
134 return *this;
135 }
137
139
142 inline const Aws::String& GetCity() const { return m_city; }
143 inline bool CityHasBeenSet() const { return m_cityHasBeenSet; }
144 template <typename CityT = Aws::String>
145 void SetCity(CityT&& value) {
146 m_cityHasBeenSet = true;
147 m_city = std::forward<CityT>(value);
148 }
149 template <typename CityT = Aws::String>
150 ImpactedLocation& WithCity(CityT&& value) {
151 SetCity(std::forward<CityT>(value));
152 return *this;
153 }
155
157
160 inline double GetLatitude() const { return m_latitude; }
161 inline bool LatitudeHasBeenSet() const { return m_latitudeHasBeenSet; }
162 inline void SetLatitude(double value) {
163 m_latitudeHasBeenSet = true;
164 m_latitude = value;
165 }
166 inline ImpactedLocation& WithLatitude(double value) {
167 SetLatitude(value);
168 return *this;
169 }
171
173
176 inline double GetLongitude() const { return m_longitude; }
177 inline bool LongitudeHasBeenSet() const { return m_longitudeHasBeenSet; }
178 inline void SetLongitude(double value) {
179 m_longitudeHasBeenSet = true;
180 m_longitude = value;
181 }
182 inline ImpactedLocation& WithLongitude(double value) {
183 SetLongitude(value);
184 return *this;
185 }
187
189
193 inline const Aws::String& GetCountryCode() const { return m_countryCode; }
194 inline bool CountryCodeHasBeenSet() const { return m_countryCodeHasBeenSet; }
195 template <typename CountryCodeT = Aws::String>
196 void SetCountryCode(CountryCodeT&& value) {
197 m_countryCodeHasBeenSet = true;
198 m_countryCode = std::forward<CountryCodeT>(value);
199 }
200 template <typename CountryCodeT = Aws::String>
201 ImpactedLocation& WithCountryCode(CountryCodeT&& value) {
202 SetCountryCode(std::forward<CountryCodeT>(value));
203 return *this;
204 }
206
208
212 inline const Aws::String& GetSubdivisionCode() const { return m_subdivisionCode; }
213 inline bool SubdivisionCodeHasBeenSet() const { return m_subdivisionCodeHasBeenSet; }
214 template <typename SubdivisionCodeT = Aws::String>
215 void SetSubdivisionCode(SubdivisionCodeT&& value) {
216 m_subdivisionCodeHasBeenSet = true;
217 m_subdivisionCode = std::forward<SubdivisionCodeT>(value);
218 }
219 template <typename SubdivisionCodeT = Aws::String>
220 ImpactedLocation& WithSubdivisionCode(SubdivisionCodeT&& value) {
221 SetSubdivisionCode(std::forward<SubdivisionCodeT>(value));
222 return *this;
223 }
225
227
230 inline const Aws::String& GetServiceLocation() const { return m_serviceLocation; }
231 inline bool ServiceLocationHasBeenSet() const { return m_serviceLocationHasBeenSet; }
232 template <typename ServiceLocationT = Aws::String>
233 void SetServiceLocation(ServiceLocationT&& value) {
234 m_serviceLocationHasBeenSet = true;
235 m_serviceLocation = std::forward<ServiceLocationT>(value);
236 }
237 template <typename ServiceLocationT = Aws::String>
238 ImpactedLocation& WithServiceLocation(ServiceLocationT&& value) {
239 SetServiceLocation(std::forward<ServiceLocationT>(value));
240 return *this;
241 }
243
245
248 inline HealthEventStatus GetStatus() const { return m_status; }
249 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
250 inline void SetStatus(HealthEventStatus value) {
251 m_statusHasBeenSet = true;
252 m_status = value;
253 }
255 SetStatus(value);
256 return *this;
257 }
259
261
267 inline const NetworkImpairment& GetCausedBy() const { return m_causedBy; }
268 inline bool CausedByHasBeenSet() const { return m_causedByHasBeenSet; }
269 template <typename CausedByT = NetworkImpairment>
270 void SetCausedBy(CausedByT&& value) {
271 m_causedByHasBeenSet = true;
272 m_causedBy = std::forward<CausedByT>(value);
273 }
274 template <typename CausedByT = NetworkImpairment>
275 ImpactedLocation& WithCausedBy(CausedByT&& value) {
276 SetCausedBy(std::forward<CausedByT>(value));
277 return *this;
278 }
280
282
285 inline const InternetHealth& GetInternetHealth() const { return m_internetHealth; }
286 inline bool InternetHealthHasBeenSet() const { return m_internetHealthHasBeenSet; }
287 template <typename InternetHealthT = InternetHealth>
288 void SetInternetHealth(InternetHealthT&& value) {
289 m_internetHealthHasBeenSet = true;
290 m_internetHealth = std::forward<InternetHealthT>(value);
291 }
292 template <typename InternetHealthT = InternetHealth>
293 ImpactedLocation& WithInternetHealth(InternetHealthT&& value) {
294 SetInternetHealth(std::forward<InternetHealthT>(value));
295 return *this;
296 }
298
300
304 inline const Aws::Vector<Aws::String>& GetIpv4Prefixes() const { return m_ipv4Prefixes; }
305 inline bool Ipv4PrefixesHasBeenSet() const { return m_ipv4PrefixesHasBeenSet; }
306 template <typename Ipv4PrefixesT = Aws::Vector<Aws::String>>
307 void SetIpv4Prefixes(Ipv4PrefixesT&& value) {
308 m_ipv4PrefixesHasBeenSet = true;
309 m_ipv4Prefixes = std::forward<Ipv4PrefixesT>(value);
310 }
311 template <typename Ipv4PrefixesT = Aws::Vector<Aws::String>>
312 ImpactedLocation& WithIpv4Prefixes(Ipv4PrefixesT&& value) {
313 SetIpv4Prefixes(std::forward<Ipv4PrefixesT>(value));
314 return *this;
315 }
316 template <typename Ipv4PrefixesT = Aws::String>
317 ImpactedLocation& AddIpv4Prefixes(Ipv4PrefixesT&& value) {
318 m_ipv4PrefixesHasBeenSet = true;
319 m_ipv4Prefixes.emplace_back(std::forward<Ipv4PrefixesT>(value));
320 return *this;
321 }
323 private:
324 Aws::String m_aSName;
325
326 long long m_aSNumber{0};
327
328 Aws::String m_country;
329
330 Aws::String m_subdivision;
331
332 Aws::String m_metro;
333
334 Aws::String m_city;
335
336 double m_latitude{0.0};
337
338 double m_longitude{0.0};
339
340 Aws::String m_countryCode;
341
342 Aws::String m_subdivisionCode;
343
344 Aws::String m_serviceLocation;
345
347
348 NetworkImpairment m_causedBy;
349
350 InternetHealth m_internetHealth;
351
352 Aws::Vector<Aws::String> m_ipv4Prefixes;
353 bool m_aSNameHasBeenSet = false;
354 bool m_aSNumberHasBeenSet = false;
355 bool m_countryHasBeenSet = false;
356 bool m_subdivisionHasBeenSet = false;
357 bool m_metroHasBeenSet = false;
358 bool m_cityHasBeenSet = false;
359 bool m_latitudeHasBeenSet = false;
360 bool m_longitudeHasBeenSet = false;
361 bool m_countryCodeHasBeenSet = false;
362 bool m_subdivisionCodeHasBeenSet = false;
363 bool m_serviceLocationHasBeenSet = false;
364 bool m_statusHasBeenSet = false;
365 bool m_causedByHasBeenSet = false;
366 bool m_internetHealthHasBeenSet = false;
367 bool m_ipv4PrefixesHasBeenSet = false;
368};
369
370} // namespace Model
371} // namespace InternetMonitor
372} // namespace Aws
ImpactedLocation & WithCity(CityT &&value)
ImpactedLocation & WithIpv4Prefixes(Ipv4PrefixesT &&value)
ImpactedLocation & WithASNumber(long long value)
AWS_INTERNETMONITOR_API ImpactedLocation & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSubdivisionCode(SubdivisionCodeT &&value)
ImpactedLocation & WithLatitude(double value)
ImpactedLocation & WithStatus(HealthEventStatus value)
void SetServiceLocation(ServiceLocationT &&value)
const InternetHealth & GetInternetHealth() const
ImpactedLocation & WithCountry(CountryT &&value)
void SetInternetHealth(InternetHealthT &&value)
ImpactedLocation & WithLongitude(double value)
ImpactedLocation & WithCountryCode(CountryCodeT &&value)
const NetworkImpairment & GetCausedBy() const
ImpactedLocation & WithSubdivision(SubdivisionT &&value)
AWS_INTERNETMONITOR_API ImpactedLocation(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetIpv4Prefixes() const
ImpactedLocation & WithMetro(MetroT &&value)
ImpactedLocation & WithSubdivisionCode(SubdivisionCodeT &&value)
ImpactedLocation & WithCausedBy(CausedByT &&value)
ImpactedLocation & WithInternetHealth(InternetHealthT &&value)
ImpactedLocation & AddIpv4Prefixes(Ipv4PrefixesT &&value)
AWS_INTERNETMONITOR_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_INTERNETMONITOR_API ImpactedLocation()=default
ImpactedLocation & WithServiceLocation(ServiceLocationT &&value)
ImpactedLocation & WithASName(ASNameT &&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