AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ImpactedLocation.h
1
6#pragma once
7#include <aws/internetmonitor/InternetMonitor_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/internetmonitor/model/HealthEventStatus.h>
10#include <aws/internetmonitor/model/NetworkImpairment.h>
11#include <aws/internetmonitor/model/InternetHealth.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace InternetMonitor
26{
27namespace Model
28{
29
40 {
41 public:
42 AWS_INTERNETMONITOR_API ImpactedLocation() = default;
43 AWS_INTERNETMONITOR_API ImpactedLocation(Aws::Utils::Json::JsonView jsonValue);
44 AWS_INTERNETMONITOR_API ImpactedLocation& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_INTERNETMONITOR_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const Aws::String& GetASName() const { return m_aSName; }
53 inline bool ASNameHasBeenSet() const { return m_aSNameHasBeenSet; }
54 template<typename ASNameT = Aws::String>
55 void SetASName(ASNameT&& value) { m_aSNameHasBeenSet = true; m_aSName = std::forward<ASNameT>(value); }
56 template<typename ASNameT = Aws::String>
57 ImpactedLocation& WithASName(ASNameT&& value) { SetASName(std::forward<ASNameT>(value)); return *this;}
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) { m_aSNumberHasBeenSet = true; m_aSNumber = value; }
68 inline ImpactedLocation& WithASNumber(long long value) { SetASNumber(value); return *this;}
70
72
75 inline const Aws::String& GetCountry() const { return m_country; }
76 inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; }
77 template<typename CountryT = Aws::String>
78 void SetCountry(CountryT&& value) { m_countryHasBeenSet = true; m_country = std::forward<CountryT>(value); }
79 template<typename CountryT = Aws::String>
80 ImpactedLocation& WithCountry(CountryT&& value) { SetCountry(std::forward<CountryT>(value)); return *this;}
82
84
90 inline const Aws::String& GetSubdivision() const { return m_subdivision; }
91 inline bool SubdivisionHasBeenSet() const { return m_subdivisionHasBeenSet; }
92 template<typename SubdivisionT = Aws::String>
93 void SetSubdivision(SubdivisionT&& value) { m_subdivisionHasBeenSet = true; m_subdivision = std::forward<SubdivisionT>(value); }
94 template<typename SubdivisionT = Aws::String>
95 ImpactedLocation& WithSubdivision(SubdivisionT&& value) { SetSubdivision(std::forward<SubdivisionT>(value)); return *this;}
97
99
106 inline const Aws::String& GetMetro() const { return m_metro; }
107 inline bool MetroHasBeenSet() const { return m_metroHasBeenSet; }
108 template<typename MetroT = Aws::String>
109 void SetMetro(MetroT&& value) { m_metroHasBeenSet = true; m_metro = std::forward<MetroT>(value); }
110 template<typename MetroT = Aws::String>
111 ImpactedLocation& WithMetro(MetroT&& value) { SetMetro(std::forward<MetroT>(value)); return *this;}
113
115
118 inline const Aws::String& GetCity() const { return m_city; }
119 inline bool CityHasBeenSet() const { return m_cityHasBeenSet; }
120 template<typename CityT = Aws::String>
121 void SetCity(CityT&& value) { m_cityHasBeenSet = true; m_city = std::forward<CityT>(value); }
122 template<typename CityT = Aws::String>
123 ImpactedLocation& WithCity(CityT&& value) { SetCity(std::forward<CityT>(value)); return *this;}
125
127
130 inline double GetLatitude() const { return m_latitude; }
131 inline bool LatitudeHasBeenSet() const { return m_latitudeHasBeenSet; }
132 inline void SetLatitude(double value) { m_latitudeHasBeenSet = true; m_latitude = value; }
133 inline ImpactedLocation& WithLatitude(double value) { SetLatitude(value); return *this;}
135
137
140 inline double GetLongitude() const { return m_longitude; }
141 inline bool LongitudeHasBeenSet() const { return m_longitudeHasBeenSet; }
142 inline void SetLongitude(double value) { m_longitudeHasBeenSet = true; m_longitude = value; }
143 inline ImpactedLocation& WithLongitude(double value) { SetLongitude(value); return *this;}
145
147
151 inline const Aws::String& GetCountryCode() const { return m_countryCode; }
152 inline bool CountryCodeHasBeenSet() const { return m_countryCodeHasBeenSet; }
153 template<typename CountryCodeT = Aws::String>
154 void SetCountryCode(CountryCodeT&& value) { m_countryCodeHasBeenSet = true; m_countryCode = std::forward<CountryCodeT>(value); }
155 template<typename CountryCodeT = Aws::String>
156 ImpactedLocation& WithCountryCode(CountryCodeT&& value) { SetCountryCode(std::forward<CountryCodeT>(value)); return *this;}
158
160
164 inline const Aws::String& GetSubdivisionCode() const { return m_subdivisionCode; }
165 inline bool SubdivisionCodeHasBeenSet() const { return m_subdivisionCodeHasBeenSet; }
166 template<typename SubdivisionCodeT = Aws::String>
167 void SetSubdivisionCode(SubdivisionCodeT&& value) { m_subdivisionCodeHasBeenSet = true; m_subdivisionCode = std::forward<SubdivisionCodeT>(value); }
168 template<typename SubdivisionCodeT = Aws::String>
169 ImpactedLocation& WithSubdivisionCode(SubdivisionCodeT&& value) { SetSubdivisionCode(std::forward<SubdivisionCodeT>(value)); return *this;}
171
173
176 inline const Aws::String& GetServiceLocation() const { return m_serviceLocation; }
177 inline bool ServiceLocationHasBeenSet() const { return m_serviceLocationHasBeenSet; }
178 template<typename ServiceLocationT = Aws::String>
179 void SetServiceLocation(ServiceLocationT&& value) { m_serviceLocationHasBeenSet = true; m_serviceLocation = std::forward<ServiceLocationT>(value); }
180 template<typename ServiceLocationT = Aws::String>
181 ImpactedLocation& WithServiceLocation(ServiceLocationT&& value) { SetServiceLocation(std::forward<ServiceLocationT>(value)); return *this;}
183
185
188 inline HealthEventStatus GetStatus() const { return m_status; }
189 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
190 inline void SetStatus(HealthEventStatus value) { m_statusHasBeenSet = true; m_status = value; }
191 inline ImpactedLocation& WithStatus(HealthEventStatus value) { SetStatus(value); return *this;}
193
195
201 inline const NetworkImpairment& GetCausedBy() const { return m_causedBy; }
202 inline bool CausedByHasBeenSet() const { return m_causedByHasBeenSet; }
203 template<typename CausedByT = NetworkImpairment>
204 void SetCausedBy(CausedByT&& value) { m_causedByHasBeenSet = true; m_causedBy = std::forward<CausedByT>(value); }
205 template<typename CausedByT = NetworkImpairment>
206 ImpactedLocation& WithCausedBy(CausedByT&& value) { SetCausedBy(std::forward<CausedByT>(value)); return *this;}
208
210
213 inline const InternetHealth& GetInternetHealth() const { return m_internetHealth; }
214 inline bool InternetHealthHasBeenSet() const { return m_internetHealthHasBeenSet; }
215 template<typename InternetHealthT = InternetHealth>
216 void SetInternetHealth(InternetHealthT&& value) { m_internetHealthHasBeenSet = true; m_internetHealth = std::forward<InternetHealthT>(value); }
217 template<typename InternetHealthT = InternetHealth>
218 ImpactedLocation& WithInternetHealth(InternetHealthT&& value) { SetInternetHealth(std::forward<InternetHealthT>(value)); return *this;}
220
222
226 inline const Aws::Vector<Aws::String>& GetIpv4Prefixes() const { return m_ipv4Prefixes; }
227 inline bool Ipv4PrefixesHasBeenSet() const { return m_ipv4PrefixesHasBeenSet; }
228 template<typename Ipv4PrefixesT = Aws::Vector<Aws::String>>
229 void SetIpv4Prefixes(Ipv4PrefixesT&& value) { m_ipv4PrefixesHasBeenSet = true; m_ipv4Prefixes = std::forward<Ipv4PrefixesT>(value); }
230 template<typename Ipv4PrefixesT = Aws::Vector<Aws::String>>
231 ImpactedLocation& WithIpv4Prefixes(Ipv4PrefixesT&& value) { SetIpv4Prefixes(std::forward<Ipv4PrefixesT>(value)); return *this;}
232 template<typename Ipv4PrefixesT = Aws::String>
233 ImpactedLocation& AddIpv4Prefixes(Ipv4PrefixesT&& value) { m_ipv4PrefixesHasBeenSet = true; m_ipv4Prefixes.emplace_back(std::forward<Ipv4PrefixesT>(value)); return *this; }
235 private:
236
237 Aws::String m_aSName;
238 bool m_aSNameHasBeenSet = false;
239
240 long long m_aSNumber{0};
241 bool m_aSNumberHasBeenSet = false;
242
243 Aws::String m_country;
244 bool m_countryHasBeenSet = false;
245
246 Aws::String m_subdivision;
247 bool m_subdivisionHasBeenSet = false;
248
249 Aws::String m_metro;
250 bool m_metroHasBeenSet = false;
251
252 Aws::String m_city;
253 bool m_cityHasBeenSet = false;
254
255 double m_latitude{0.0};
256 bool m_latitudeHasBeenSet = false;
257
258 double m_longitude{0.0};
259 bool m_longitudeHasBeenSet = false;
260
261 Aws::String m_countryCode;
262 bool m_countryCodeHasBeenSet = false;
263
264 Aws::String m_subdivisionCode;
265 bool m_subdivisionCodeHasBeenSet = false;
266
267 Aws::String m_serviceLocation;
268 bool m_serviceLocationHasBeenSet = false;
269
271 bool m_statusHasBeenSet = false;
272
273 NetworkImpairment m_causedBy;
274 bool m_causedByHasBeenSet = false;
275
276 InternetHealth m_internetHealth;
277 bool m_internetHealthHasBeenSet = false;
278
279 Aws::Vector<Aws::String> m_ipv4Prefixes;
280 bool m_ipv4PrefixesHasBeenSet = false;
281 };
282
283} // namespace Model
284} // namespace InternetMonitor
285} // 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